From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Chirp Signal Using NI-FGEN Arbitrary Waveform Mode

Solved!
Go to solution

I have a function generator NI PXI 5412. I need to generate a Chirp signal (not swept sine) where the frequency linearly increases in the signal.  I have created the chirp signal by updating the LabVIEW example "Fgen Arbitrary Waveform.vi". The program can generate chirp signal properly.

 

But, the chirp signal repeats itself after finishing the sweep.  It can only be stopped manually by clicking the stop button.  I need to run the Chirp signal only once.   The total number of samples and total time for one chirp sweep are known.  

 

How can I stop the program automatically after one run?  I have attached the code for chirp signal generation. 

 

0 Kudos
Message 1 of 3
(3,971 Views)
Solution
Accepted by topic author a_haque

Continuous is the default Trigger Mode is on most NI Fgen devices. This means the signal wraps around and continues to play from the beginning until you tell it to stop. If you only want it to output once, use single trigger mode: http://zone.ni.com/reference/en-XX/help/370524P-01/siggenhelp/5412_smc_single_trigger/

 

http://zone.ni.com/reference/en-XX/help/370524P-01/nifgenlv/nifgen_configure_trigger_mode/

Brian Morgan | NI Software Engineer, R&D
0 Kudos
Message 2 of 3
(3,954 Views)

Hi Brian,

 

Thanks for the suggestion.  It works.

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