This article for the original article, source code for the original code, such as reprint/copy, please in the page/code location clearly marked the original name, author and website, thank you!
This software is based on NI-VISA/VISA32 (Virtual instrument software Architecture) of the instrument programming, support RS232, USB, GPIB and LAN communication SCPI instrument programming.
First, the software is developed using VS2017 (can also be opened with VS2015, but some features may not be supported), based on DotnetFrameWork4.0, if you want to run the software, download from the following website:
Software: Click here to download
Second, need to develop the software, must install Visa-runtime runtime
As shown in the following:
Software: Click here to download
Or go to the NI official website (http://www.ni.com) to download the latest Visa-runtime
Third, through RS232, USB, GPIB and LAN and use the SCPI instruction to communicate with the instrument, such as:
If you do not understand the SCPI directive, please carry out Baidu.
Iv. Software Source code:
Https://github.com/cnxy/VISAInstrument
Clone your C # source code yourself or from
Https://github.com/cnxy/VISAInstrument/releases
Download release version to get the EXE file running separately.
V. Other
RS232: Support common RS232 serial programming, the general address is "ASRL1::INSTR"
USB: Support Common USB Interface programming, general address similar to "USB0::0X2A8D::0X0101::MY57501899::INSTR"
GPIB: Support common USB Interface programming, general address similar to "GPIB0::0X2A8D::0X0101::MY57501899::INSTR" here requires the installation of the GPIB card driver, the recommended use of NI-GPIB card (driver required, Drivers can be downloaded from the official NI website)
LAN: Support common USB Interface programming, general address similar to "tcpip0::34465a-01899::inst0::instr" or "Tcpip0::192.168.0.26::inst0::instr"
[C # source code] uses the SCPI instruction to program the instrumentation of the specified communication port (Rs232/usb/gpib/lan)