DCx Thorlab camera image processing
Show older comments
This is how I want to use the camera: computer 1 sends trigger to the camera, and computer 2 sets the camera parameters and processes image data. The two computers are separated from each other.
How to set up event, listener and callback, or use any other method on computer 2, so that when computer 1 sends the trigger, computer 2 copies the image to array and process the image automatically?
9 Comments
Image Analyst
on 9 Mar 2018
Have you tried asking Thorlabs for MATLAB code that works with their camera?
Walter Roberson
on 9 Mar 2018
Which model of DCx ?
PW
on 9 Mar 2018
Walter Roberson
on 9 Mar 2018
It appears that external trigger is possible with that camera if you use the CAB-DCU-T3 GPIO cable. That would require that you had a GPIO interface connector on the first host; the MATLAB on that host would probably need the Instrument Control Toolbox to talk to the GPIO device.
There are a lot of details at https://www.thorlabs.com/drawings/8cb50c673356eb89-7EF6B4F8-9414-6321-F93F5BA7FBCD3BDF/DCC3260M-Manual.pdf
There does appear to be a built in mode for video capture with external trigger. I do not know at the moment if that can be configured from within MATLAB.
PW
on 9 Mar 2018
Image Analyst
on 9 Mar 2018
Didn't your MATLAB code send the trigger signal? So it would know when it's done that.
PW
on 9 Mar 2018
Walter Roberson
on 9 Mar 2018
Image Analyst: the code sending the trigger signal is on a different host from the recording system.
The host sending the trigger could potentially use TCP or the like to notify the other host.
But at the moment I do not know that any notification is needed. It appears to me that getdata() will wait for frames to become available, up to timeout. This is specifically contrasted with getsnapshot() which is for immediately returning frames and is documented with the note,
"If obj is running but not logging, and has been configured with a hardware trigger, a timeout error will occur. "
PW
on 9 Mar 2018
Answers (0)
Categories
Find more on Image Preview and Device Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!