Showing results for 
Search instead for 
Did you mean: 

Write data to measurement file - column headings

Go to solution



I am having an issue with the write to measurement


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?



0 Kudos
Message 1 of 5
Accepted by topic author davidball85

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…


Best regards,

using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win10+cRIO
Message 2 of 5

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 Smiley Happy

0 Kudos
Message 3 of 5

Short answer: Write your column headers to the file before you enter your acquisition loop.

Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
0 Kudos
Message 4 of 5

Hi David,


I have not had any training at all with labview

Then you should take the free online resources for LabVIEW beginners!

Best regards,

using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win10+cRIO
0 Kudos
Message 5 of 5