06-06-2012 06:01 AM
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
06-06-2012 08:53 AM
Have you tried the LabVIEW Help? It explains .lvm files.
06-07-2012 09:05 AM
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.
06-11-2012 06:48 AM
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?
06-11-2012 07:17 AM
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.