LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do create an analog signal from a text or binary file?

Solved!
Go to solution

I'm trying to output an analog signal from a file on an NI-DAQ 6251 card using labview 8.5. I've found the examples on building a waveform, but I'm stuck at how to read a text file and make a 1-D array to input my amplitudes into the buildwaveform.vi and I can't find any information on how to do so. Any help or direction is greatly appreciated.

 

thanks,

David

0 Kudos
Message 1 of 2
(2,571 Views)
Solution
Accepted by topic author LSUgrad85

If all that you want in the file is the Y values, then a text file with a value on each line could be read. The Read From Spreadsheet File can be used. It will return a 2D that you can then use the index array function to get a column or if you select Transpose, the returned 1D array would be used.

 

If you want to create an example, use a 1D array constant in a VI and pass it to the Write to Spreadsheet File.

0 Kudos
Message 2 of 2
(2,567 Views)