Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use the RS232 port on the PCI-1424?

I am developing using MS C and IMAQ v2.5.3.
0 Kudos
Message 1 of 3
(3,580 Views)
Here is a link to a post that is very similar to your question:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000A22A0000&ECategory=Vision

There are 3 serial commands included in niiamq.h. They are imgSessionSerialFlush,imgSessionSerialRead,imgSessionSerialWrite. I recommend looking at the niimaq.h file to see how the calls are made. You can find this file in the following directory:

C:\Program Files\National Instruments\NI-IMAQ\Include

Jack Arnold
Application Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,580 Views)

We have SU640KTSX-1.7RT and use NI PCIe-1430.

 

I do this in c. It does  compile and run  but does not change anything.

 

uInt32 L=13;

uInt32 timeout=1000;

error=imgSessionSerialWrite(sessionID, "AGC:ENABLE ON", &L, timeout);

0 Kudos
Message 3 of 3
(3,105 Views)