Is there C# example code to communicate with a device through an RS-232 serial port using VISA?
I just want to issue some simple commands and queries to the device as well as open and close it, of course.
Is there C# example code to communicate with a device through an RS-232 serial port using VISA?
I just want to issue some simple commands and queries to the device as well as open and close it, of course.
There is sample code here:
C# and Visual Basic .NET Instrument Control Tutorial
It uses National Instrument software:
"The VISA .NET API is an object-oriented interface made up of a set of .NET classes to communicate with instruments with VISA. You can use .NET compliant languages such as C# and Visual Basic .NET."
I finally got the answer I was looking for.
It appears all you need to do to access an RS-232 serial port instead of a USB port in VISA is change the USB id string to the RS-232 string (ASRL1::INSTR).
I knew it was going to be simple, just not that simple.
Thanks for all the other ideas.