Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI 485/2 serial programming with c/c++

Hello,

I am currently trying to write a program which communicates with a PCI 485/2 card. I was planning on writing the program in c/c++, but I have not been able to find an api which allows me to do this. Could anyone advise me on where I can find the api, or otherwise solve this problem? I am working on windows now, but my program is meant to run on linux.

Thanks in advance,
Rehan
0 Kudos
Message 1 of 2
(3,043 Views)
Hi Rehan,

If you install NI-Serial, you should find an NISerial.h file in

C:\Program Files\National Instruments\NI-Serial

This file will provide you with all of the functions you need.  This file location will be different in Linux (of course), but the same header file should install in the serial directory.

Help for all of the functions can be found in the NI-Serial Help.

I hope this helps!

Regards,
Matt S.

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
0 Kudos
Message 2 of 2
(3,036 Views)