LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-FGEN user-defined wave

I am trying to generate a sine signal with a triangular envelope with NI PXI-5412.

The idea is that a user sets the frequency of the sine wave and the amplitude of the triangular wave, but the period of the triangular wave is always 500 ms. Please see the pictures below.

 

amp = 10, freq = 100 Hz, period = 0,5 samp = 10, freq = 100 Hz, period = 0,5 s

amp = 1, freq = 15 Hz, period = 0,5 samp = 1, freq = 15 Hz, period = 0,5 s

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The output waveforms produced by the controller are exactly what I need. However, NI-FGEN VIs do not generate anything similar to the constructed waveform.

Am I right in thinking that I should use the instrument “niFgen Create Waveform” for this particular task?

The code is attached. Any comments are welcome and appreciated.

0 Kudos
Message 1 of 1
(2,063 Views)