Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

NI PCI-1428: Use NI-IMAQ and Camera configuration simultaneously (Camera Link)

Hello,
 
we use the NI PCI-1428 board to configure and control our self-made camera. We use NI Measurement and Automation Explorer (MAX) to grab the images, and we use our own little application to configure and control the camera corresponding to the Camera Link Specification. This works fine as long as we use both applications separately. But this fails if we try to use both together. If MAX is active, our application fails calling the Camera Link function clSerialInit() (error code -10021). If our application is active, MAX fails with the IMAQ error 0xBFF600BD.
 
MAX supports serialized communication with the plugged camera, but only at the beginning of each image acquisition. We want to use our own configuration tool, but we can't if MAX is active. The disabling of the "Enable Serial Commands" option doesn't help, but it should help according to the MAX documentation. We tried other applications instead of MAX, like the NI Camera File Generator and some sample applications delivered with NI-IMAQ, with the same result: It seems that the IMAQ device blocks an open channel to any application except the one who had opened the channel.
 
We used our camera and application together with image acquisiton boards and software of other manufacturers (e.g. Euresys, Matrox), and all works fine like we expected. Only with NI-IMAQ there seems to be no way.
 
Our questions: Is there an option in MAX or the camera configuration file to tell IMAQ to give free the serial interface? Is there another application which can grab images and do serial communication via IMAQ at the same time (perhaps LabView/LabWindows)?
 
In hope of helpful hints
 
Uwe.
 
 
P.S.: some versions: MAX V3.1.1.3004, NI Camera File Generator V2.0, NI-IMAQ V3.1.3, clsernat.dll V3.1.2.49152
0 Kudos
Message 1 of 8
(5,183 Views)
Hi!
 
This is a problem of the IMAQ 3.1.3 driver!
It doesn't affect if you disable the option "Enable Serial Commands"!
The neweset driver, which will released next days (IMAQ 3.5) works well!
 
Now, IMAQ 3.5 beta is the only way to work!
 
If you install afterwards the released IMAQ 3.5, deinstall the beta version before!
 
regards,
ThSa
Message 2 of 8
(5,164 Views)

Hello,

now it works indeed, thank you for the beta.

Greetings, until the next problem Smiley Wink

Uwe.

0 Kudos
Message 3 of 8
(5,137 Views)

Hi,

I am new in vision. I have problems in acquiring CMOS sensor image. My project would like to acquire CMOS image sensor digital data by using camera link protocol. I am sure that COMS sensor output is correct and the LVDS transmitter generates signals(I am not sure if the output is correct, it's hard to me to identify them).

The camera file generator always said "Cannot detect valid timing signals. Make sure the camera is turned on, outputing video (not waiting for a trigger). and connect correctly." I had checked my pin assignment between sensor and transmitter IC, and set the Pclk output at 24MHz(The LVDS transmitter IC work at 20MHz~85MHz).

Is there any initial sequence when connecting CMOS camera to a Frame grabber?
Is is possible to acquire the image for a normal CMOS image sensor by using NI frame grabber?

Any advise will be appreciated.

OS:WinXP SP2
Frame grabber: NI-1426
CMOS image sensor: 1.3M pixel CMOS sensor
NI Camea File Generator v2.0

Neal
hyz1230@gmail.com

0 Kudos
Message 4 of 8
(5,093 Views)

I am having a similar problem with the PCI-1426 that I believe is due to clsernat opening an interface at a lower level which in turn prevents me from opening another (actually the same) interface with my application.  The flip side is also true if I open an interface first then I can not open a serial port via the clsernat library.

Will the IMAQ 3.5b or ultimate release solve this problem as well?

How can I get a copy of the beta to test? (the copy I have is password protected).

Thanks,

Mike Haberle 

0 Kudos
Message 5 of 8
(5,073 Views)

Hi Mike!

Please let me know you email adress. I will send you the password for IMAQ 3.5b.

Regards,

Wolfgang

0 Kudos
Message 6 of 8
(5,046 Views)
Wolfgang,
 
 
Thanks,
Mike
0 Kudos
Message 7 of 8
(5,037 Views)
Version 3.5b1 also solved my communication problem when using both clsernat and imaq dll libraries.
0 Kudos
Message 8 of 8
(5,033 Views)