11-09-2006 01:41 PM
11-10-2006 10:54 AM
11-10-2006 01:34 PM
I am indeed attempting to trigger the camera with an external trigger line connected directly to the camera. I am not using the trigger VI, but was merely mentioning that it is not possible to do so because the VI does not support the triggering scheme we require. In addition to a frame trigger, I am also triggering each individual line on the camera. In order to put the camera into the proper mode, I must first set up the proper registers in the camera which are, by the way, are not standard DCAM registers and are outside of the DCAM register space. This setting up of the registers works OK, as I can read the values back. As mentioned before, the camera manufacturer has stated that I am setting the registers up properly, and everything works fine with their software. I am using the GRAB vi to get an image. I do get an image, but it is clear that the frame grab is not working. The trigger signal to the camera is a simple TTL level signal hooked up to a mechanical switch. There is an indicator light on the back of the camera which changes states when the camera receives the signal to begin a frame. This light toggles in conjunction with the mechanical switch when using the camera manufacturer's software. However, the actions of the light do not correspond to the mechanical switch when using LabView. Instead, the camera begins a frame grab, in what seems like a random fashion. The trigger line has no effect, and, in fact, the camera will take a picture even if there is no trigger signal at all when using LabView, regardless of how the registers are set. In addition, some other functionality that is set up by these registers also does not seem to work properly. It is important to note that the line trigger works and is set up with these same registers.
11-13-2006 01:15 PM
11-13-2006 03:13 PM
Mark T.,
Thanks for your help so far. When using the trigger vi, most of the modes give the following error:
"NI-IMAQ IEEE-1394: (Hex 0xBFF68008) Feature not present in the camera"
The only exceptions are "Disabled" and "Mode 0". Obviously, Disabled isn't intended to do anything. Mode 0 doesn't appear to do anything. Looking at the frame trigger indicator on the back of the camera, it is apparent that the camera is getting a signal to trigger, but it is not from the mechanical switch. The signal the camera is getting is not consistent. In other words, the trigger doesn't appear to be happening at a consistent time.
Trying to use the trigger vi as you suggested does not work, and seems to cause more problems with timeouts. It is hard to say exactly, because there is no consistency. The example program I tried doesn't really do much because the available trigger modes are not supported on the camera.
The registers are set up using the low level register write vi available in the IMAQ1394 palette. I am setting the registers up the way the camera manufacturer specifies. They have verified the values I am using. I have no reason to assume that their software is using anything else besides the registers they are indicating.
As for any interaction between the camera manufacturer's software and the camera, it is not possible. Their software will not work at all with the NI driver installed. They need a different driver. Their software does not run in the background or anything like that.
Thanks,
John
11-14-2006 06:33 PM
11-15-2006 02:26 PM
11-21-2006 02:02 PM
Mark T.
Thanks for your help so far. I have created a few simple VIs for your inspection. However, I do not know how to post them, although I would like to. As for your suggestion, I tried the Mode 0 triggering, which from the description states "The camera starts integration on every falling edge of the external trigger input". However, with no external trigger hooked up to the camera, the image is happily snapped, with no complaints such as a timeout error. In other words, the camera does the same thing whether or not the trigger is disabled or in mode 1. Remember, that none of the other modes work with this camera. It should be noted that I power cycled the camera before attempting to trigger the camera using the trigger vi so that any of the registers I previously set up were reset to factory default values.
Thanks again,
John P.
11-22-2006 02:58 PM
John P.
So are you saying that the image is taken even though it's not triggering? That mode 1 behaves the same as disabled (or did you mean mode 0)?
As far as attachments, below the Message Body window in the authoring window on the forums there is an Attachment section, there you can browse to a afile to attach it.
-Allison S.
Applications Engineering
11-27-2006 02:23 PM
Yes, I meant mode 0. Even with no trigger cable attached, the camera still takes a picture. There is no difference if the trigger is set to 'disabled' or 'mode 0'. The issue, however, is that I am trying to use two separate triggers, one for the frame and one for the lines, and that this should be set up by adjusting the camera's registers. The line trigger works, but the frame trigger does not.
I am attaching three VI's. One uses the IMAQ high level snap. One uses low level VI's to take the snapshot, and one uses the trigger VI to set up the trigger. The frame trigger does not work with any of them.
My thanks for taking a look at these VI's. Possibly, I am doing something wrong, but I am at a loss to see what that could be.
Your help is greatly appreciated.
John P.