LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating a single pulse in response to an external trigger

Solved!
Go to solution

Hello,

 

I have a PXI-5412 arbitrary waveform generator, a PXI-6115 simultaneous sampler, and a PXI-6652 timing module. I'd like the PXI-5412 to produce a square pulse and the PXI-6115 to acquire a set of data in response to a digital trigger. (In the future I might want to generate a slightly more complex wavelet, but for now a square pulse will do).

 

I used this example as my reference. So far, I've successfully used NI-Sync to initiate data acquisition through DAQmx whenever the trigger arrives. However, I'm having trouble doing the same with the pulse generation. I've only been able to get NI-FGEN to produce continuous square waves, not single pulses.

 

The NI-FGEN Arbitrary Waveform Generator Express VI lets me select Finite Generation Mode. How do I set the same using non-express VIs?

 

While we're at it, is there a better way to accomplish my syncrhonization the the procedure I described (NI-Sync + DAQmx + NI-FGEN)?

 

 

Thanks!

Certified LabVIEW Developer
0 Kudos
Message 1 of 2
(2,897 Views)
Solution
Accepted by topic author JKSH

You can achieve this by set trigger mode to single. You could also learn how express VI do that by right click on it>>Open Frontpanel.

Message 2 of 2
(2,887 Views)