[C # source code] uses the SCPI instruction to program the instrumentation of the specified communication port (Rs232/usb/gpib/lan)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.