02-07-2018 08:52 AM
Hi
I am having an issue with the write to measurement file.vi
When I use the DAQassistant data output as the data source, it works exactly as I want - column headers, time stamps, correct sample rate etc
However, if I connect my array (I'm certain that's not the correct way to do this), I only get 2 columns - one with timestamp, and one with one single reading from each indicator.
What would be the best way to 1) take the output from each indicator into a separate column, and 2) sample this data at a specified rate, continuously until I hit stop?
Thanks
Solved! Go to Solution.
02-07-2018 09:03 AM - edited 02-07-2018 09:04 AM
Hi David,
you need to convert your data to proper DDT wires! (I never thought I would write something like this…)
Each values has to become one DDT wire, then use JoinSignals before saving them.
The (much) better approach will be to stay away from ExpressVIs as much as possible.
- For a start you could replace formula4&5 by simple Sub and Div operations…
- Please use IndexArray when you want to index array elements. No need to convert to a cluster first!
The sample rate is determined in your DAQAssistent, you have set it to 0.5Hz…
02-07-2018 09:13 AM
Thanks Gerd - apologies if it seems obvious, I have not had any training at all with labview so I have to try to make it up as I go along
02-07-2018 09:18 AM
Short answer: Write your column headers to the file before you enter your acquisition loop.
02-07-2018 09:24 AM
Hi David,
I have not had any training at all with labview
Then you should take the free online resources for LabVIEW beginners!