Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronising analog input with pulse train generation

Hello,
 
I am new at this forum, and a beginner with Labview, so I hope I can find some help here 🙂
 
In order to generate a trigger signal for a high speed camera, I want to synchronise a pulse train at one of the counter ouputs with an analog input acquisition. It can be an acquisition of a fixed number of samples (and a generation of a fixed number of pulses) or a continuous acquisition (and continuous generation of pulses), as long as the sampling of the input is synchronised with the generation of the pulses (a small delay is no problem).
 
I am working with a 6024E board.
 
A have experimented allready
- with the STARTSCAN signal that can be used as an output by means of the Route Signal.VI, but the pulses that are generated are too short for my framegrabber (the pulses are about 40 ns wide, and my framegrabber needs pulse with a width of at least 100 ns)
- with the Generate Pulsetrain VI; this generates good pulses which the framegrabber can use, however it is nog clear how I can synchronise the pulse train output with sampling of the analog inputs
- with combined analog input and output; I use the analog output to generate a pulse train; this solution seems to work, but does not satisfy me, sine I loose an output channel that I might need in the future
 
Any suggestions?
 
Thanks in advance!
 
Peter
0 Kudos
Message 1 of 2
(3,172 Views)
Peter,
 
Attached is a screenshot of an idea that ought to work in traditonal NI-DAQ.  The idea is that you generate a pulsetrain with a counter and tell the Analog Input task to use that same pulsetrain as its sampling clock.  Then they've got to be in sync!  Note that the AI task is started first so it'll be ready to start sampling as soon as the Counter starts generating its pulse train.
 
AI Config and AI Start are in the Analog Input-->Intermediate palette.
Clock Config is in the Analog Input-->Advanced palette.
Pulse Config and Counter Start are in the Counter-->Intermediate palette.
 
Note: this is just to illustrate how to get started -- it isn't a complete working example...
 
Good luck!
 
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 2
(3,169 Views)