Using the VISA (Virtual Instrument Software Architecture) library is the most common approach. The VISA library is a widely used software input-output interface in the field of testing and measurement for controlling devices from a PC. It is a library of functions for C/C ++, C #, Visual Basic, MATLAB, LabVIEW and others.
The VISA Library unifies access to all measuring instruments, regardless of the protocol and equipment used.
The VISA library is installed on the client side, on the PC where the user program is executed. The VISA library is available on the websites of many companies for free download. There are versions for Linux, Mac OS, Windows.