Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Low level serial communication imaq c++

I have a PCIe-1427 and am making an application  which can set camera configuration parameters via serial communication through camera link. I am using visual c++ with window vista. Can  I get an example that uses imgSessionSerialRead, imgSessionSerialWrite, imgSessionSerialFlush, and imgSessionSerialReadBytes. For example I would like to get a camera information by sending a command of "opr?". I tried to find an example in the folder of c:\Program Files\National Instruments\NI-IMAQ\sample\MSVC but I couldn't. How can I define a buffer and buffer size to contain "opr?"? How can I define settings for serial communication like baud rate etc.
 
Thank you
 
Ahn
0 Kudos
Message 1 of 2
(2,913 Views)
Hello Ahn,

We do not have any examples shipped with LabVIEW that use the 'imgSession' functions. I would recommend taking a look at this forum post, as it addresses your questions very clearly. As mentioned in this post, settings for serial communication such as baud rate are defined by the camera file.

I hope this helps. Please post if you have any other questions.
Vivek Nath
National Instruments
Applications Engineer

Machine Vision
0 Kudos
Message 2 of 2
(2,902 Views)