LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate a self-defined waveform by reading an excel file

Solved!
Go to solution

Hi all,

 

I am now trying to generate a sel-defined waveform through a PXI. As attached is a vi I built for AC signal generation, in the vi, I used a waveform generator to generrate a sinnusoidal wave for AC voltage. I suppose that I can replace this waveform generator with a block that can read an excel file that contains time instances and their corresponding voltage.

 

Can you please tell me whether this idea will work. If it will, which block can do this job?

 

Thank you very much.

0 Kudos
Message 1 of 3
(3,366 Views)
Solution
Accepted by topic author pokenan

Yes you can.

 

The easiest is to have Excel save the data as a CSV file.  Use Read from Spreadsheet File to get the data into LabVIEW.

 

(Search the forums for Excel.  This question has come up thousands of times before.)

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

 

PS:  They are called functions or SubVI's, not "blocks".

Message 2 of 3
(3,360 Views)

Thank you very much for your suggetion. I am looking into excel forum and the link you sent

0 Kudos
Message 3 of 3
(3,346 Views)