11-03-2009 09:13 AM
Using CVI.
Example ..\IMAQ\Signal IO\pulse.cws
I am trying to have the PCI-1426 IMAQ framegrabber to internally
generate a pulse train that will be routed to the camera's CC1
external trigger line. I have the MAX IMAQ ICD set to External for
the trigger.
I modified the example at this line only and now get this error:
imgPulseCreate2 (timebase, realDelay, realWidth, IMG_SIGNAL_STATUS, IMG_IMMEDIATE, IMG_TRIG_POLAR_ACTIVEH,
IMG_SIGNAL_ISO_IN, 0 IMG_PULSE_POLAR_ACTIVEH, PULSE_MODE_TRAIN, &Pid);
Function imqPulseCreate2: (return value == -1074397008 (0xbff606b0)
The output signal for the pulse in invalid.
Does the PCI-1426 allow for internal routing to the CCx lines?
Thanx
11-04-2009 12:25 PM
Hello csk,
PCI-1426 does not have internal routing to the CC lines. Are you trying to generate pulse to trigger a camera?
11-04-2009 02:15 PM - edited 11-04-2009 02:17 PM
Yes, I may be interpreting the features of this
framegrabber incorrectly.
There is a lack of information on this capability
in any of the documentation NI provides.
Here is what I hope to acheive...
1. Set camera for external trigger via CC1 on IMAQ-1426 interface card #1
2. Set camera for external trigger via CC1 on IMAQ-1426 interface card #2
3. IMAQ-1426 #1 would generate clock internally and route to CC1. Always on. Variable frequency upto 10KHz.
4. IMAQ-1426 #2 would generate clock internally and route to CC1. Always on. Variable frequency upto 10KHz.
I don't care to have the triggers synced with any precision...
Right now I use a function generator tied to both IMAQ-1426 interface cards.
I want to do away with the function generator if possible.
Thanx!
-csk
11-05-2009
01:54 PM
- last edited on
07-01-2024
02:04 PM
by
Content Cleaner
Hello csk,
Depending on the camera file that you are using, you may need to make changes on the Camera Control Tab. This is where you can add Attributes and Actions that you want to perform on a specific CC line. NI Camera File Generator is what you would want to use to make changes in your camera file.
Keep in mind that you cannot directly toggle CC1 with any functions in NI-IMAQ. That being said, the PCI-1426 supports routing external triggers 0-3 to CC lines 1-4 (exttrig0 to cc1, exttrig1 to cc2, and so on). This is configurable in MAX. Try setting the CC1 line to be a route of external TTL trigger 0. You can now control CC1 from an external source. To take this a step further, use the external trigger drive VI to drive TTL0. The output is routed back to the input on the board, so you should effectively be able to control CC1, via TTL_IN(0), via TTL_OUT(0).