LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading lvm file

Hi there,

 

During data acquisition, I write data to a .lvm file. The data is written as tab delimited. First column is time in seconds, second and third columns are waveform data. All numbers in this .lvm file are floating point.

 

In a new VI, I try to read this .lvm file as an array and be able to do some Matlab-like analysis on the data. I am using the Mathscript node. However, I am not able to transfer data from my .lvm file to this Mathscript node. 

 

Please see screenshot attached.

 

I assume there is a simple solution for this porblem?

 

Thanks in advance!

 

cheers,

 

Saif

0 Kudos
Message 1 of 4
(2,616 Views)

Hi Saif,

 

The output of this Express VI is of type "Dynamic Data", which is typically only used by other Express VIs.  Since the MathScript node does not support this data type, you'll want to use an intermediate step to convert it to a supported data type.

 

For information on this conversion, please see the following links:

https://www.ni.com/docs/en-US/bundle/labview/page/using-the-dynamic-data-type.html

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/express/express-signal-manip/conver...

 

I hope this helps!

Che T.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,577 Views)

Thanks a lot Che! I used Convert From Dynamic Data Express VI & it works now 🙂

 

Cheers,

 

Saif

0 Kudos
Message 3 of 4
(2,561 Views)

Hey Saif,

 

Glad to hear that!  Good luck with your project.

Che T.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,546 Views)