09-11-2017 10:54 AM - edited 09-11-2017 10:58 AM
I have a problem of synchronize my frame grabber PcIe 1433 and line scan camera (Basler Sprint 2048-70km). I searched many old threads in this forum and get more confused.
Basically, what I am trying to do is generating a repeated pulse train (16kHz) and a ramp signal (goes up from -3v to +3v for 520 steps and goes down from +3v to -3v for another 20 steps) from the NI DAQ 6211. I need these two signals to be synced. The pulse train will be output and send to the frame grabber via SMB connector while the ramp signal will be sent to a physical scanner (galvanometer) to drive the scanning. The pulse train will be the trigger for each line of the camera and the frame grabber. My confusion here is how does the camera communicate with the frame grabber to know the exact trigger (pulse train) I have input from the SMB connector? If it is can be done from software perspective by setting the camera control line, I did so but my frame is keep rolling.
So I searched some old threads. Here's the one I believe trying to solve a very similar problem as I do.
Basically, the person is asking how to pull out the pixel clock of the line scan camera to sync the frame grabber and the line scan camera. And one of the answer is and I am quoting here: ''I spoke to one of our developers for these boards and he indicated that it is not possible to route the pixel clock on third generation boards (1429/1430/1427/1433/1435 and later). He mentioned that an alternative you could consider is that the framegrabber can create a pulse up to 2MHz and export that on both RTSI and CC0. Hopefully that gives you a workaround".
so is that mean I don't need the DAQ 6211 to generate the pulse train as the trigger, the right way to do it is to use the 1433 itself to generate a pulse train and export the trigger through camera control line to sync the line scan camera ?
Any suggestions would be greatly appropriated!
09-14-2017 05:38 PM
09-14-2017 05:56 PM
Hi Penny,
I did this couple of times so I might be able to help.
The most simple way is the way you describe your system. I personally like to trigger the camera from NI high speed counter output. I assume you have IN card that generate the ramp signal. Usually it also has high speed counter on board.
Personal preference of mine is to generate known number of pulses from the high speed counter. But constant pulse train will also work.
What you need to do:
1. Configure your Basler camera in trigger acquisition mode from Paylon.
2. Configure the frame grabber in your code to work in trigger acquisition mode.
3. Configure the trigger line to input 0.
4. Configure your high speed counter to output on the correct line that is connected to the smb input.
5. Run the camera from labview