Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imgSessionLineTrigSource2 ni 1429 with SU-LDH

I am using a PCIe 1429 connected to an SU-LDH line scan camera. The computer interfaces with the PCIe 1429 through a BNC board (2120). I am having a problem with this as the function imgSessionLineTrigSource2 keeps giving an error.

 

Here is the code that I have:

fprintf(fpLog, "\t\tline trigger      : %d\n", imgSessionLineTrigSource2(pAcquisitionInfoS->Sid, IMG_SIGNAL_EXTERNAL, 2, IMG_TRIG_POLAR_ACTIVEH, 0));

 

Here's the error I get:

line trigger      : -1074397015

 

Is there something wrong with my coding?

0 Kudos
Message 1 of 4
(3,198 Views)

Hi masterron1,

 

If you look at the NI-IMAQ error codes here, it is "The requested trigger line is invalid. Please verify that this trigger line exists and is properly connected to your device.". Without looking at your entire code, I don't know exactly what is wrong, but at a least this is a starting point.

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 2 of 4
(3,180 Views)

Thank you for your reply, Joe. I have an additional question, though. According to the specs on the SU-LDH, it could be connected via CC1 or BNC. Could switching between BNC to CC1 have any effect on the error?

0 Kudos
Message 3 of 4
(3,176 Views)

Hi masterron1

 

It should not have any affect, I would make sure that you have configured and are using the correct input though.

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 4 of 4
(3,168 Views)