02-13-2013 02:06 PM
The computer on which I am building my VI doesn't have access to the internet, so I can't post any of my code (so I'll use as much detail as possible)
I am taking DAQ measurements for four devices that come in as (I believe) an array of dynamic data type. I split the signal and I have each channel outputting its own dynamic data type. After a user-specified time interval, a timed while loop will trigger the DAQ to take a measurement and write the data to a file and plot the data. The file writing was easy, but I am stuck on the plotting aspect.
What I have: Since efficiency won't be an issue (~15 minute average time delay), I have created a shift register of dynamic data type. Each iteration of the while loop, I append the newly acquired data to an array of dynamic data using the BuildArray function. I need to be able to take this and plot it in a graph, but every time I try it tells me that the dimensions of the source and sink don't match. Also, I need to do this for each of the four sets of data (and put them on the same plot).
What can I do to get plottable data from my shift register?
I cannot open .VI files, so I would really appreciate it if I could get responses in pictures of block diagrams or text. Thanks.
Solved! Go to Solution.
02-13-2013 02:07 PM
Sorry, I wrote waveforms in the title because I was originally converting my dynamic data type to waveform before trying to plot.
02-13-2013 02:15 PM
Hi nc61,
stay away from DDT (dynamic datatype) and you will be fine. Especially when trying to collect data by building up arrays of DDT (which probably isn't doing what you really want)...
- Use DAQmxRead to get either arrays of data or waveform(s). Use BuildArray for simple data or waveform functions for waveforms to collect data in shift register. Plotting will be easy with those data!
- There's the well-known example finder in LabVIEW's help menu. Try it...
02-13-2013 02:28 PM
Where is the DAQmxRead function? Right now I am just using a DAQ assistant to output the data.
02-13-2013 02:30 PM
Nevermind, I found it. So this will just read the ouput only and I will have to add my own time stamps? Is that the only difference?
02-13-2013 02:38 PM