Hislip Server in C++20
HiSLIP is an RPC protocol commonly used with test and measurement instruments.
As an excuse to learn some C++20 stuff, I threw this together.
Don't use this in production. Or do. If you dare.
To run the server, you'll need some compiler that supports C++20, and cmake. Currently, this only runs on windows, but the only reason is that sockets are terrible.
I used ninja + clang 11.
$ mkdir build && cd ./build
$ cmake -G Ninja ..
$ cmake --build .
$ ./hislip_server
You'll need a client to interact with the server.
The easiest way to get that is:
- get a VISA library. I use RS-VISA because it's minimal, and it works fine.
- install pyvisa into your python environment
And from your python interpreter, run this:
import pyvisa
rm = pyvisa.ResourceManager()
i = rm.open_resource("TCPIP::localhost::hislip::INSTR")
print(i.query("*IDN?"))