LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sampling sine wave and saving the samples in an array.

helo..

I am new to Labview and i need some help regarding sampling the sine wave.

I have generated the sinewave in labview and now i want to sample it.(do i need an ADC for sampling?) and the samples should be saved in an array.

I dont know how to do this.

Please tell me how to do this or post some related examples..

 

Thanks in advance 

0 Kudos
Message 1 of 2
(3,808 Views)

All of the functions that generate a sine wave in software do save all of the samples in an array. You just need to know how to get them. Since you did not mention the function you used to create the sine wave, lets assume it's the Express VI Simulate Signal. On the signal output, wire a Convert From Dynamic Data type function and select the default 1d Array of Scalars. Right click on the output of this and select Create Indicator. You now have the array. If you are using Sine Waveform which outputs a waveform data type, just wire up a Get Waveform Components function and select the item 'Y'.

 

 

 

For learning the basics, please see the free tutorials

Message Edited by Dennis Knutson on 10-28-2008 08:23 PM
0 Kudos
Message 2 of 2
(3,797 Views)