From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-24-2015 02:19 PM
Hello,
I have an application where I want to acquire analog input data with NI USB 6352 DAQ; at sampling rate of 50 ksamples/second, using 8 analog input channels of NI USB 6352 DAQ and I have to display that data on a single Chart and at the same time I have to save that data into file for future record and analysis.
My questions are: 1. Which file format would be most efficient and suitable for this application? either text or xlsx.
2. Which preferred execution system to select? from the category of Execution.
3. What priority should be set? either normal or time critical.
Regards
Solved! Go to Solution.
12-24-2015 02:27 PM
12-24-2015 03:05 PM
You definitely want a Producer/Consumer design, with the 50KHz acquisition (in large "chunks", say at least 1000 samples) in the Producer loop, sending it (via a Queue) to the Consumer which (a) saves it (I agree that both Excel and Text formats are not what you want for this sort of data -- I haven't used TDMS, myself, but I suspect this will serve you well when you go to get the data back out) and (b) plotting on a Chart. Note that you do not want to plot all of the points (you can't "see" 50K points/second) -- if, however, you plotted the average of those 1000 samples (easy and quick to compute), you would be updating your chart at 50 Hz, which is not too unreasonable.
Bob Schor
12-24-2015 03:45 PM
12-24-2015 03:50 PM
I'm in full agreement with Dennis here. Use the DAQmx Configure Logging to have DAQmx stream the data straight to a TDMS file. Makes the programming A LOT simpler. In fact, you can almost go with just the Analog Input example in the LabVIEW Example Finder (Help->Find Examples).
When you install LabVIEW, it should come with a TDMS plugin for Excel. So you can look at your data in Excel still if you so desire.
12-25-2015 01:59 AM - edited 12-25-2015 02:00 AM
1. I have to acquire and write data into file for 30 minutes continuously. I am using LabVIEW 2013 (64 bit) with Windows 8.1 OS.
2. I have to perform post data acquisition analysis into Matlab or Tecplot.
3. I have to update chart every second and I have to keep 5 seconds data display continuously onto chart.
I couldn't find "DAQmx data streaming" into "Help--->Find Examples". Could you plz upload a snippet or link to that example? so that I could see how to configure DAQmx data streaming.
Regards
12-25-2015 06:52 AM
"Voltage - Continuous Input" is the example you want.
01-01-2016 07:41 AM
I could not find this example "Voltage - Continuous Input" into LabVIEW examples. Could you pls refer the path or just upload VI of that example?
Regards
Jamal
01-01-2016 09:03 AM
Jamal,
Nowhere in the earlier Posts do you show your code, nor do you tell us what version of LabVIEW you are using. I opened LabVIEW 2015, clicked on Help, Find Examples, did a search on the word Voltage, and chose Voltage - Continuous Input.
Right between the DAQmx Timing and the DAQmx Start Trigger and Start Task functions is the following function (I created the Task control to avoid a broken wire in the Snippet):
Hope this helps.
Bob Schor
01-01-2016 09:27 AM - edited 01-01-2016 09:28 AM
Jamal_IE wrote: I could not find this example "Voltage - Continuous Input" into LabVIEW examples. Could you pls refer the path or just upload VI of that example?
Either you do not have DAQmx installed for your version of LabVIEW or you just did not do a proper search. It is right there for me.