LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Write data to measurement file - column headings

Solved!
Go to solution
Highlighted

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

0 Kudos
Message 1 of 5
(547 Views)
Solution
Accepted by topic author davidball85
02-07-2018 07:11 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…

 

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 2 of 5
(542 Views)

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
(535 Views)

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
(527 Views)

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,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 5 of 5
(522 Views)