Sampling rate - too much data points

Hello community,

I use a sensor signal strength of pressure on DAQmx labview through 2014. My rate from the hardware synchronization function is 50 KHz. The samples per channel of timing and read screws are the same set to 5 Khz when the channels are a continuous sampling. The problem I'm having is that when I run labview for a few seconds, say 5 seconds, I'm half million points of data. I tried to run for 10 seconds and points were more than a million where it is difficult to analyze. I think that the vi generates too much data points and the buffer is large. Am I wrong? Can you please help me solve this problem?

Kind regards

Mike

You are now ready to learn a little of the power of LabVIEW and data flow programming.  LabVIEW is an inherently parallel language - two loops can run independently and in parallel, allowing you to make time-sensitive (such as sampling data) and a lot of time (such as data logging and tracing) at the same time, using queues to pass data between the loops and ensure the buffering required.

If you open LabVIEW and click on the file menu in the toolbar, and then select new... (the points are important!), you will be able to create new ones (VI) from the model.  Choose a Framework, Design Patterns, producer/consumer Design Pattern (data).  It's what you want to do.

You basically set up a "pure DAQ Acquisition Loop" (without logging TDMS) as producer, creation of 5000-element arrays of data every tenth of a second (if you are sampling at 50 kHz).  You create a queue of data outside the loop of producer whose elements are an array of 1 D of waveforms (the output of your Read DAQmx) and instead to send the data to a waveform graph, you put it in the queue.

You are under this loop, a parallel loop that gets the same queue and remove items.  This loop will be sitting idle (no time taking CPU) until the data is queued.  He then it takes away the poster and registers (logs) in a PDM file.  Either way, you should open the TDMS file before entering this loop (consumer), write to the file inside the loop and close the file when the loop exits.  Study the example of the VI, you create with the model and see how it works.

The beauty of this is that you can certainly 'keep up' with the writing of the data points in a TDMS file to 50 kHz.  You might not be able to display all the points, but there is nothing to prevent you from data processing (by, say, decimating or "block average" it) to a more 'user-friendly' display (your eyes ' sees' a 50 KHz signal?) -you have a set of 100 msec prior to the next package arrives in the queue.  Also note that the loop of producer probably takes very little time CPU - most of the time the material is waiting for its clock to 'tick', collection of points in a buffer, then transferring to the loop.

Now you can have your cake and the computer display, too.

Bob Schor

Tags: NI Software

Similar Questions

  • iCloud drive hides too much data locally?

    iCloud drive hides too much data locally?

    I just started using icloud drive to store very large files, but now my local storage on my MBA has dropped way to several concerts less than a gigabyte. Icloud tent hiding too well locally? I can't find a setting for this.

    JimJon wrote:

    iCloud drive hides too much data locally?

    I just started using icloud drive to store very large files, but now my local storage on my MBA has dropped way to several concerts less than a gigabyte. Icloud tent hiding too well locally? I can't find a setting for this.

    iCloud drive holds shadow copies of all the files on your Mac so you can always access your documents, even in offline mode. It is supposed to keep your documents synced to your devices, not as only an off-site storage to save space on the mac.

    You can't stop the shadow - on iCloud drive all files will be downloaded to your Mac, if you enable iCloud drive.

    If you want to iCloud drive as an external storage without the shadow, don't turn on your Mac, but only use the web interface at www.iCloud.com to download and view the documents there. But then you will not be able to see iCloud drive as a drive in the Finder.

  • BlackBerry Z10 too much data usage

    Nice day... I use Z10STL100-1/10.2.1.3247 and it really is using too much data.

    Is there a way... Maybe the settings I have change so that it does not use the data so much. In the last three days, I've been through 3Gigs already.

    Help, please.

    In BBworld slide down - settings - network and the limitations of data - use WiFi only = we

    To ensure that applications are not installed using data.

    Downloading movies is the only thing that I can imagine would consume / 3GB in 3 days.

  • What is the maximum number of characters that a 2D barcode can have with the symbology PDF417 Matrix? How to solve the problem of code bar having too much data?

    What is the maximum number of characters that a 2D barcode can have with the symbology PDF417 Matrix? How to solve the problem of code bar having too much data? I'm incorporating data of the bar code under a button field. But when the data is large, the problem occurs.

    Apparently the theoretical capacity of the PDF417 barcode is 1850 characters or numbers in 2710. Of course, the actual capacity depends on the size - more square inches, more data. But before the theoretical limit, that you can reach practical limits in scanning technology so test carefully with all models of planned barcode scanner.

  • DAQmx task Read DAQmx with sampling frequency of 10 Hz produced much too much data

    I have a simple configuration with a strain of channel 4 OR-9237 amp holds a carrier of series C of WLS - 9163 (wired ethernet mode) - Details probably does not matter.

    I used MAX to create a DAQmx task associated with which all four gauges samples.  The calendar setting is "Scan Loads" is continuous sampling, 2 k buffer (read samples) and 10 Hz rate.  I guess that this task would generate 40 data values per second - 10 for each channel.

    I have a simple loop of reading using DAQmx Read.vi that works always (without any stimulation time).  Playback is set to read all available data and then pump it into a table.
    In the attached example, I also added a few words of debugging to stop the loop after N iterations.

    As the loop is programmed with a 0.2 second period, I expect each pass of the loop to read about 8 samples or 2 samples per sensor.  Instead, I get hundreds each passage.  It's like reading has substituted the sampling frequency specified in the task of the unit.  I absolutely need data to be material to the rhythm.

    Where have I lost?

    Thanks Adnan,

    I changed your example I selected 'Strain gage' entry analog and then lowered the minimum and maximum thresholds to +-1-2.  What happens is that each other in the loop, I 2048 samples or zero samples.  The display flashes a whole line and then it clears any other past.

    In response to your second post, I understand that the loop cannot run quite right that I select.  I think that, but at a sampling frequency of 10 Hz, I have to sleep on the software side for nearly a minute before I built 2 K samples.

    I played with the frequency of sampling, assigning to various values from 0.1 to 10000Hz.  The behavior is the same until I approach the high rates where available samples remains to 2048-4096 sometimes, the display becomes continuous.

    Ahhh, Darn.  Yet another search was this link that points to the root of my confusion.  The 9237 can taste arbitrary rates using its internal clock.  Duoh!  I wish that the pilots are smart enough to warn you if there is a discrepancy between the selected sampling rate and capabilities of the device

  • MacBook Air storage issues - I have iCloud but using too much data, which is a better solution?

    I have a Macbook Air processor intel and storage 4 GB, I use iCloud for storing all my data, but recently I had a problem with too much use of my data internet home. We are limited because we live in a rural area. So I guess I have two questions: 1) can I use an external hard drive to avoid having to use my iCloud? and if I do which is the best to use external storage drive? I have a lot of files and photos, I am a real estate agent. I got this Macbook Air since September 2015 still invite us to her also. Next question, can I use another Mac with a bigger hard drive instead of the MacBook Air? My son told me in the Macbook air because of its features, but the storage for me is imperative. Please notify

    Use many small external drives that you can carry in your pocket that connect to the computer via USB 3.0. Shop for them at Amazon.com.

    BTW, 4 GBs is the memory of the computer, no storage. MBA come with built-in SSD from 128, 256 or 512 GB capacity. You choose the MBA with the SSD model that best fits. However, once you make the computer cannot be updated.

  • Encoder Adobe too much data to the media how to adjust within the encoder

    I'm trying to export a project still / bluray via format first mpeg encoder 3. This project is 2 hours 20 minutes long and average quality I get 26 shows how to bring the amount of data down to facillatate burning in encore. All my chapters are established are menued in yet.

    The second part is which is the best route to encode h264 or mpeg

    Thank you

    Joan

    Joan,

    The only way to reduce the space is by lowering rates at the expense of quality.

    Use this calculator: http://dvd-hq.info/bitrate_calculator.php to get the optimal bitrate for your hardware.

  • Too much data for Apex 3.2.1.00.10 report?

    Hi all
    We use the APEX to run financial reports. If we have a lot of data returned by the report beiing, get us Internet Explorer cannot display this webpage.
    The url shows
    http://myserver.mycompany.ca:PortNumber / pls/apex/f? p = 103:36:5732430065126621:FLOW_EXCEL_OUTPUT_R25866509899691810_en - us.
    Has anyone else encountered this problem?

    Please notify

    Thank you

    Check the web server error logs.

    http://www.inside-Oracle-apex.com/Oracle-Apex-got-404-not-found-2/

  • Too much use of background data in moto g3

    The operating system and other system applications using too much data background. After limiting data use background notification inviting always in the notification area. And exclamation always on top. He looks irritating... How to solve this problem...

    You can not delete notifications. What you can do is to disable database for individual applications instead of everything - that will remove the notification. And you are right, there are system applications so that you can not do this.

    If you are close to your data limit, then live with the notification, or get a larger data plan.

  • Analog LabVIEW myRIO data sampling rate

    I have been using the myRIO to acquire the audio input from a microphone.

    In LabView, I use the VI Express Analog Input to get the data.
    I wanted to know if there was a way to increase the sampling rate of the data of this VI, or any what VI to whom?

    Hi ykhali,

    Try to put the VI in a timed loop and set the loop to your sampling rate.

    Kind regards

  • Save the high sampling rate data

    Hello!

    I use NI PXI-4462. (204.8kS, input analog 4 / s sampling frequency)

    I want to collect data from "load" (channel 1) and "acceleration sensor" (2nd, 3rd, 4th channel).

    I also want to save data to a text file.

    So I do a front pannel and block diagram. You can see in the attached file.

    The program works well in a low sampling rate.

    However, when I put up to 204800 s/s sample rate, the program gives me "error-200279".»

    I don't know what means this error, and I know why this happened in the high sampling rate.

    I want to know how I can fix it.

    Is there any problem in my diagram?

    Is it possible to save high sampling rate data?

    I really want to samplling more than 200000 s/s rate.

    I would appreciate if you can help me.

    Thank you.

    NH,

    You have provided excellent documentation.  So what has happened is that the amount of time it takes to run the other portion of the loop results in a number of samples to be taken is greater than the size of the buffer you provided (I don't know exactly what it is, but it will happen at high frequencies of sampling high) resulting in samples are crushed.  You might be best served in this case to take a loop of producer-consumer - have the loop you have acquire the data but then have an additional loop that processes the data in parallel with the acquisition. The data would be shipped from the producer to the consumer via a queue.  However, a caveat is that, if you have a queue that is infinitely deep and you start to fall behind, you will find at the sampling frequency, you specify that you will begin to use more and more memory.  In this case, you will need to find a way to optimise your calculations or allow acquisition with loss.

    I hope this helps.  Matt

  • acquisition of data with different sampling rates high

    I have a few questions on the use of the OMB-DAQ-3005 with different sampling rates high.

    For our application, we have 8 analog inputs. Which two are a quick response and should be sampled frequently.  We have an encoder quadrature (CPR 1000 running at 1800 rpm).  We plan to sample X 4 encoder.  For the analog inputs for the quick response, we want to trigger a sample of each pulse or each a few pulses, thus creating a timestamp with the position of the encoder with respect to position index as well as two fast analog inputs.  We have data correlating the analog inputs with the position of the encoder.   Other analog inputs, we want to measure relatively slowly (for example once every 5 dry or similar).

    How can I go on the configuration of the two (or more) sampling rates different wherein I can taste entered at different frequencies?  Also, is there a way to reset the encoder count after outbreak of the index as I have the position of the encoder with respect to the index?

    Maybe you'll find someone here who uses the OMB-DAQ-3005, but this forum is really more designed for LabVIEW programming issues.

    I've never used the OMB-DAQ-3005, but out of curiosity, I took a glance at the Manual of OMB-DAQ-3005.  The answer to both your questions are:

    1. you cannot run a hardware DQA Multiplex (like this one) at independent rates by channel.

    2. the OMB-DAQ-3005 supports an Index Z feature to reset the counter - look for documentation on how to configure any software interface you are using.  If you get stuck, you can try to discover media appropriate for instrument channel.

    Best regards

  • determination of the sampling rate and the frequency waveform data record

    Hello

    I write a simple program that collect data from a triaxial accelerometer input, convert it to a frequency spectrum, and then save the time domain and the frequency of the waveforms in an external file separated.  I don't understand how to set the sampling frequency, however.  On the DAQ Assistant, I updated the acquisition mode "Samples continues" and read samples is 2 k, which corresponds to the total number of data points that are collected.  How can I program sampling for awhile, it 30 seconds, for example?  Wouldn't be better to set up a trigger, as it will continue to collect data up to what I told it to stop?

    I also want to save waveform data in a separate file that can be easily seen by other computers that have not installed Labview.  I have currently the program put in place to convert a text string of the waveform of the time domain and then save it in a text file or a spreadsheet.  It works fine, but I would also like to record the frequency wave, which is a different type of data.  How can I do this or is there a better way?

    My program is attached.  Thanks for your help!

    Here's how you can use the shift register to build the table, and also where you can choose to play exactly 100 samples per while the loop iteration.

    Brian

  • URGENT - Data rate "TOO HIGH FAILURE" - BUT this isn't the two videos, it takes 9 subtitles tracks! Help, please!

    I'm a standard definition DVD authoring using Encore CS6. I imported two videos high definition (1920 x 1080) (63 min and 4 min.) directly to a calendar. There are 9 subtitles.

    I have converted video high-def exactly like these while encoding several times with success. I use this custom setting: Codec: MPEG2 - quality: 5 - VBR 2 pass - Progressive - Min BR: 7.2 - target BR: 8, Max BR: 9 - 23.96 EN matches source. Due to the fact that I used this predetermined dozens of times, I don't think lowering the Min, the target or the Max BR is going to solve the problem of data failure rate.

    I am inclined to believe it's 9 subtitles after that review "Data rate too high failure" messages here.

    As ALWAYS, I'm on a deadline to customer.

    Okay, this preset has always worked in the past, but I would have thought you were pushing things with him.  Subtitles can be the proverbial drop of water!

    I had problems in the past with that high bit rates and also during the definition of quality to 5, instead of 4.  For example, I always use 4 quality and will never more than 7 for target BR.  Even with these settings, I had problems earlier this year with a chronology which contained a series of 20 JPEG images - there were always reluctant to the second jpeg, and I had to down to 6.5 before it was OK.

    Have you tried a lower BR?

  • A query that takes too much time with the dates?

    Hello people,
    I'm trying to pull some data using the status date, and for somereason its taking too long to return the data
       and trunc(al.activity_date) = TRUNC (SYSDATE, 'DD') - 1     --If i use this its takes too much time
    
    
      and al.activity_date >= to_date('20101123 000000', 'YYYYMMDD HH24MISS')
       and al.activity_date <= to_date('20101123 235959', 'YYYYMMDD HH24MISS') -- If i use this it returns the data in a second. why is that?
    
    How do i get the previous day without using the hardcoded to_date('20101123 000000', 'YYYYMMDD HH24MISS'), if i need to retrieve it faster??

    It seems that al.activity_date is indexed and is not TRUNC (al.activity_date). Your problem is not with the TRUNC(sysdate,'dd')-1. So use:

    and al.activity_date >= TRUNC(SYSDATE)-1
    and al.activity_date < TRUNC(SYSDATE)
    

Maybe you are looking for

  • Envy of HP Touch Smart 17: HP Mobile Data Protection sensor missing in Device Manager

    I had a HP 3D drive guard error after installing drivers of devices in Device Manager in the control panel.  I looked on Google for answers and they said to find the right driver on the HP website, sp71811, uninstall the old drivers and install a new

  • Wie kann ich die Systemfotomediathek neu zuordnen?

    El Capitan takes die erste angelegte Foto-Meidathek als Systemfotomediathek-und das lasst sich offenbar nicht mehr hand- Oder doch? Wie kann ich das selbst bestimmen oder q? Wie man looks, ist das fragliche non accessible Menu:

  • How to output of Bravia KDL32BX300 is on demo mode

    Our TV has suddenly started to go into demo mode. I chat with Sony Online support. He gave me instructions to reset the TV to factory settings. It did not help me. I could see TV had "RESET" and restarted. But right now, it's happened in demo mode. W

  • How to access the counters in cDAQ9174 / NI9403 with C / Matlab

    Hello I read that the cDAQ9174 has four available counters. However, they need to be interfaced via another card and they are now directly available to the user. How do I with e/s digital NI9403 card? How could I do with LabVIEW but with C/Matlab? Th

  • I can't change the settings of automatic update on

    I continue to be careful that my automatic update is disabled.  Whenever I have try to change the setting to on it fails and a window opens stating «Security Center can't change your automatic update»  I then try to do it manually and get the same pr