LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write results from mathscript

I had successfully written continuous signals from my daq using "write to measurement file".

However, when i connected these signal to the mathscript and did some calculations,
the output results from the mathscript only produce ONE data (only one data was written).
Can i know what i did wrong for my code ?


0 Kudos
Message 1 of 3
(2,221 Views)

Please post your original code.  The express VIs you show can have multiple configurations, and the configuration you chose will determine what the problem is.  That said, I speculate that you chose the LVM file format, which is a text-based, tab-separated file designed for easy reading into a spreadsheet.  If you stream data using that format, the data is saved as segments.  Each segment is separated by a header giving acquisition information for the segment.  If you use the Read From Measurement File Express VI to read from this file, it will read one segment every time you call it, not the entire data set.  You need to call the VI in a loop and it will read the segments as they were written.  You can open LVM files in any text or spreadsheet editor and look at them (e.g. Notepad++, VIM, Excel, LibreOffice Calc).

 

If you have further questions, please ask.

0 Kudos
Message 2 of 3
(2,195 Views)

i already solved the problem but thanks for the suggestion you made Smiley Happy .

0 Kudos
Message 3 of 3
(2,190 Views)