Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imgOpenSession IMG_ERR_SERIAL_TIMO

Hi All,

Using a PCI1422 under XP and programming using VC++, with nothing plugged into the card.

My code currently does nothing but open an interface (which it does okay) and then try to open a session, but I get a IMG_ERR_SERIAL_TIMO error. Does the creation of a session handle require hardware to be present? I have run diagnostics on the card and it is fine. Can someone please clarify the session handle issue for me?
0 Kudos
Message 1 of 5
(3,168 Views)
You have to have a camera connected to open a session. Opening the interface just connects to the card, but opening a session communicates with the camera. There are usually some camera initialization commands that are sent at this time using serial communication, which explains your error.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 5
(3,168 Views)
Thanks for your reply Bruce. The initialisation commands you mention - surely they are not actually sent as part of the OpenSession command? This implies the function is retrieving information about the camera from a resource that has not been specified, otherwise how does the card (in this case the LVDS version) know the protocols etc to use for communication?

Whilst the card claims compatability with LVDS cameras, I am currently working with a camera development board and not an off-the-shelf camera, so if the OpenSession command is attempting to communicate where do I find information regarding what it is sending to the target device?
0 Kudos
Message 3 of 5
(3,168 Views)
In Measurement and Automation Explorer (MAX), you select the camera that is connected to the board. In your case, you will need a custom camera file that has the information that describes how your camera sends data, including protocols.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 5
(3,168 Views)
Hi Bruce. Now I understand what is happening I see that you are entirely correct. As a matter of fact, a *very* close read of the development board documentation says exactly the same thing. Thanks again for your help.
0 Kudos
Message 5 of 5
(3,168 Views)