05-21-2008 10:32 AM
05-21-2008 03:55 PM
05-27-2008 09:36 AM
I have worked with Dalsa Linescan cameras before and gotten them to work with some nonstandard tricks. I don't know if they changed how their trigger modes work since we released some of the older camera files, or if they have always behaved like this, but the camera requires pulses BEFORE NI-IMAQ sends the serial command to put the camera in a trigger mode. This is a problem because NI-IMAQ sends all the serial commands and then sends pulses, and if you look at the serial response from the camera after sending the Mode 6 command (or some other trigger mode command), it's an error about no trigger signals available. We are working on updating Camera Advisor to contain this information for Dalsa Linescan cameras, but here are some workarounds:
1 - Don't send serial commands through the camera file. If you unselect the checkbox in MAX to Send Serial commands, this will avoid the error that is usually generated when trying to put the camera in a triggered mode when sending serial commands. Keep mode 6 selected in the camera file though so pulses will still be generated, the camera just won't be in a triggered mode yet since the serial command won't be sent. Then in your application, after starting the acquisition, while triggers are going to the camera, use the low level IMAQ Serial Write to send the command that puts the camera in trigger mode 6. It's important that pulses are already going to the camera at a valid rate. Now the camera will be triggered.
2 - For framegrabbers that allow to route external pulses to the Control Lines (1426, 1427, 1429, 1430), you can configure one of the external lines to route it's signal to CC1. As long as this signal is pulsing before you start the acquisition, you can leave the serial commands from the camera file enabled. You could even generate a pulse train or rearmed pulse on the external line from an application and then you don't even need to wire up anything (jut make sure you configure an immeditate pulse train before trying to configure the acquisition since this is when the serial commands are sent).
Hope this helps and sorry for all the confusion. The Dalsa Linescan cameras make it a little difficult to work with in triggered mode. Let me know if you need more details on how to use the Dalsa camera in eihter of these ways.
Thanks,
Brad
05-27-2008 10:40 AM
05-27-2008 11:35 AM
05-27-2008 01:55 PM
05-27-2008 04:37 PM
Glad to hear it worked. Haven't been hiding, just don't read these forums as often as I'd like to. Let me know if anything else comes up related to camera files/NI-IMAQ that doesn't get supported well.
Thanks,
Brad
05-27-2008 05:39 PM
05-28-2008 08:19 AM
05-28-2008 03:48 PM