Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-1422 frame grabber and RS232 Question

I am interfacing the 1422 that we bought from you to an Hamamatsu ORCA ER. I could not find any code sample or documentation that uses the NI IMAQ functions imgSessionSerialFlush, imgSessionSerialRead and imgSessionSerialWrite. Can we have some documentation and sample code on how to use the RS232?
0 Kudos
Message 1 of 4
(3,590 Views)
Hello Jess,

You should use the function imgSetCameraAttributeString (Sid, AttributeName, AttributeValue);
or imgSetCameraAttributeNumeric. This is the same as going to Measurement & Automation Explorer(MAX) and setting the value in the Advanced Tab of your camera. The first parameter is the Session ID, the second parameter is the Attribute Name (make sure to pass this exactly as you see it in MAX, and the AttributeValue is listed in the pull-down box (it can be either a string or a numeric and this determines which function to call). Some attributes are buried under multiple levels of attributes, and it's important to set the attributes to the correct value in the same order you would select them from the MAX interface.
Message 2 of 4
(3,590 Views)
Brad

Your suggestion works for imgGetSerial, but I am not sure what attribute I would use to execute imgSessionSerialWrite or imgSessionSerialRead. Could you elaborate, please?

Thanks
0 Kudos
Message 3 of 4
(3,590 Views)
I have VI example for controlling the Orca ER via serial communications, using the PCI/PXI-142X grabbers. Most of the cameras functions are implemented in the example. Send me an email at eastlund@graftek.com, requesting the OrcaER VI and I will forward the example to you.
Robert Eastlund
Graftek Imaging, Inc.
Phone: (512) 416-1099 x101
Email: eastlund@graftek.com
0 Kudos
Message 4 of 4
(3,591 Views)