11-09-2015 04:56 AM
Hi,
I have a very simple program that sends a sine wave function to an analog output channel and moves accordingly a vibrational table. My idea is to take pictures with an external camera at the maximum amplitude of this movement.
Since the frequency I am using to move the table is very high the camera cannot take a picture every cycle and therefore I would have to wait several cycles so that the camera can be used again.
I was thinking to send a pulse to the camera (has a trigger input) every X time depending on the frequency I am using but I am not really sure how to do it, my problem is that I do not really know how to really synch the AO and the trigger.
Any help would be welcome. Thanks!
11-09-2015 07:49 AM
11-09-2015 09:36 AM
Well I have the basic sine generator program but I do not know how to do the trigger thing so you won't find a try here. If it helps, here you have a plot.
11-09-2015 09:46 AM
A few questions:
1. Can you post the actual VI (screen caputures are helpful, but not as helpful as the actual code)?
2. What type of hardware are you using (model # of the card, etc.)?
3. What type of interface does the camera have for the trigger input (TTL, etc.)?
Thanks.
11-09-2015 09:54 AM
Sure
I use a PXI chassis with a PXIe 6341 module and a SCB-68 connector block from where I am generating the sine output reading several channels and -I was hoping- send the trigger signal.
The array of cameras says to have a TTL trigger input available for this sort of synchronization.
Hope it helps
11-09-2015
12:35 PM
- last edited on
10-20-2025
11:03 AM
by
Content Cleaner
6341 has counters that can generate TTL pulses. If software synchronization is enough, just generate single pulse in this loop. if you need pulse every fifth cycle, it will be every 50-th iteration of the loop. Depending on the phase (where is maximum), it can be 3, 53, 103, etc. Precision ~10 ms.
6341 can do hardware synchronization: for example generated pulse triggers camera acquisition and analog task (resumes movement). Check here how to do retriggerable tasks: https://www.ni.com/en/support/documentation/supplemental/21/retriggerable-tasks-in-ni-daqmx.html
To decimate pulses and control phase, use the second trigger. Precision of this pulse position can be ~10 ns,
11-09-2015 12:39 PM
11-19-2015 10:13 AM
Thanks everyone!
Sorry I was extremely busy. I'll try Alexander's solution, seems good enough for my case.
Thanks again!