DCx Thorlab camera image processing

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

Have you tried asking Thorlabs for MATLAB code that works with their camera?
Which model of DCx ?
DCC3260M
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 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.
Sorry, I did not describe my question well.
I know how to do external trigger. My question was if the trigger and image processing are controlled by different device, how do I let the computer responsible for image processing know that a trigger has occurred and it is ready to copy image from memory?
Didn't your MATLAB code send the trigger signal? So it would know when it's done that.
I have one computer sends trigger signals to many devices and another computer does the data processing.
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. "
I am looking at the "Messaging" class in the DCx .Net Manual. It might be it!

Sign in to comment.

Answers (0)

Asked:

PW
on 9 Mar 2018

Commented:

PW
on 9 Mar 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!