06-29-2017 09:07 AM
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.
Solved! Go to Solution.
06-29-2017 10:39 AM
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/
06-29-2017 11:43 AM
Hi Brian,
Thanks for the suggestion. It works.