LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to create .lvm file

hello all...

I am new to LABView.... i am trying to generate an arbitrary waveform. for that i have used a "simulate arbitrary signal" control and an "waveform graph"

we need to manually input the (x,y) values.

how ever,we can upload .lvm file containing (x,y) points. How can i create .lvm file to generate my wave??

Any help is appreciated ...

 

Regards

Sush

0 Kudos
Message 1 of 5
(4,500 Views)

Have you tried the LabVIEW Help? It explains .lvm files.

0 Kudos
Message 2 of 5
(4,490 Views)

If you are entering data by hand, an LVM file is probably overkill, especially for XY data sets.  LVM was created for waveform data types, so includes header data for timestamp and data collection period (t0 and Δt), among other things.  I would suggest a simple tab separated text file.  For XY data, this would be two numbers (X and Y) per line.  Separate the numbers with a tab.  Use any text editor to enter the data and save with file extension *.txt.  You can easily read this into LabVIEW using the Read from Spreadsheet File.vi or the Read from Measurement File Express VI.  Read the LabVIEW help on the XY graph and array operations so you can figure out how to take the 2D array you get from the file read and convert it to data the XY graph can read.

 

If you want to enter an actual LVM file, you can find the specification here.  This can also be created with a simple text editor.

 

Good luck.  If you run into problems, post your code so we can help you out.

0 Kudos
Message 3 of 5
(4,473 Views)

Hello

Thanks for a helpful reply....

i felt Read from Measurement File is a better way to update my records to the software. But which control do i use to simulate my arbitary signal?

0 Kudos
Message 4 of 5
(4,458 Views)

Your question does not make much sense. There is no control for simulating data. If you want to read a file to read in your simulated data then that's what you'd do. This is done programmatically. If you want to create a control that does this then you can look into creating an XControl.

0 Kudos
Message 5 of 5
(4,455 Views)