Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-VISA Serial Port Example For Linux

Solved!
Go to solution

Are there any examples for serial port communications under Linux using NI-VISA and C/C++?

I am trying to interface with a NI-8431/8 card (RS485/RS422)

0 Kudos
Message 1 of 3
(1,194 Views)
Solution
Accepted by topic author ~knightwhosaysNI~

NI VISA is platform independent. Provided you get NI VISA installed on your Linux box and can use the interactive control program to test that it works, there is really nothing special about creating a C program on Linux instead of Windows to access the VISA API. The source code as far as the VISA API is concerned is EXACTLY the same. So pretty much any command line C example that accesses VISA will be fine to refer to for your own work.

 

https://documentation.help/NI-VISA/SerialPortSupport.html

 

Rolf Kalbermatter
My Blog
Message 2 of 3
(1,150 Views)
0 Kudos
Message 3 of 3
(1,127 Views)