LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating arbitry signal

in "SIMULATE ARBITARY SIGNAL>>define signal" is it possible only to enter data manually cell by cell, can't i put all cells from a spreadsheet(tab delimited txt) file
 
thanx
0 Kudos
Message 1 of 6
(3,120 Views)
Unfortunately it is not possible to import the waveform data from an excel or text file in this section of the Simulate Arbitrary Signal express VI. The only file type supported for a save and load operation is the LabVIEW Measurement file (.lvm). What you may be interested in is that you can open an lvm file with a standard text editor. I'd suggest that you save one configuration from the express VI and add to this file the data that you'd like. Notice that the two columns will represent your x array and your y array. You can modify these columns and then re-import this data into the express VI.

To read directly from the text files themselves, you would need to bypass the express VI and use the File I/O VIs. With these you can read data from these text files and build the signal that you need manually. I hope this is useful for you!

Mike D.
National Instruments
Applications Engineer
Message 2 of 6
(3,102 Views)
If you are interested, you can find the specification for the LVM format here.
0 Kudos
Message 3 of 6
(3,089 Views)

Hello DuffmanSays

 

Sir, i am trying to do the same thing. Could you please elaborate on how to build the signal from the text data.

 

Regards

Sachin

0 Kudos
Message 4 of 6
(2,726 Views)

@Sachindian wrote:

@DuffmanSays

 

Sir, i am trying to do the same thing. Could you please elaborate on how to build the signal from the text data.

 

Regards

Sachin


It kind of depends on your text file.  But what I've done in the past is read my csv file and parse it to get a 1D array.  I can then build a waveform using the array and choosing a sample rate.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(2,712 Views)

If you have SignalExpress, you can use the Load from ASCII VI. Alternatively, you can do what crossrulz said by using Read from Spreadsheet File VI, which can read delimited data in .txt files as well.

0 Kudos
Message 6 of 6
(2,706 Views)