LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger a signal?

I want to feed a sinusoidal signal from the signal generator through daq6009 and trigger that signal ,so that samples from the signal starts getting collected at the risisng edge of that trigger signal for a desired time.

I then want to perform curve fitting on the waveform from the collected samples,so that i can can get the phase change of the signal.

how can i perform this operation?

0 Kudos
Message 1 of 4
(2,620 Views)

I don't use the USB DAQ in this way, but a quick check of the manual shows that the USB DAQ can be triggered in precisely two ways:

 

1) Software Trigger: Your software says: "Start Acquiring".

2) PFI0 Digital Trigger: You place a digital transition on the PFI0 channel to start acquisition on another channel.

 

If you can't do either of these, then your best bet is probably to continuously acquire and look for the "rising edge" in software. Once you find it, continue acquiring until you have enough data, stop the acquisition and then do your curve fitting.

 

Feel free to provide more details, we can handle them!

0 Kudos
Message 2 of 4
(2,607 Views)

I could trigger the signal using Trigger and Gate function.The inbuilt PFIO of DAQ was not giving the desired result.

Now I want to fit a curve on the triggered signal, so that I can find the phase values of the signals.

I have attached a screen shot of the program.

0 Kudos
Message 3 of 4
(2,595 Views)

Excellent.

 

From your data, it looks like this VI will be useful in determining the phase: http://zone.ni.com/reference/en-XX/help/371361H-01/lvwave/extract_single_tone_info/

 

Enjoy!

0 Kudos
Message 4 of 4
(2,575 Views)