EasyManuals Logo
Home>UNI-T>Portable Generator>UTG900E Series

UNI-T UTG900E Series Programming Manual

UNI-T UTG900E Series
41 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #36 background imageLoading...
Page #36 background image
Programming Manual UTG900E Series
Instruments.uni-trend.com
36 / 41
clear vt;
End
Python Example
Condition: Windows System & Python3.8 & PyVISA 1.11.0.
Description: Access the device through the USBTMC and TCP/IP, and send "*IDN?" command in the
NI-VISA to check the device information.
Steps
1. Firstly install the Python, then open its script compiling software, and create a new test.py file.
2. Install PyVISA through the pip install PyVISA command, please refer to
https://pyvisa.readthedocs.io/en/latest/ if any questions.
3. Source Code
a) USBTMC Example
import pyvisa
rm = pyvisa.ResourceManager()
rm.list_resources()
my_instrument = rm.open_resource('USB0::0x5345::0x1234::SN20220718::INSTR')
print(my_instrument.query('*IDN?'))
b) TCP/TP Example
import pyvisa
rm = pyvisa.ResourceManager()
rm.list_resources()
my_instrument = rm.open_resource('TCPIP0::192.168.20.11::inst0::INSTR')
print(my_instrument.query('*IDN?'))

Table of Contents

Other manuals for UNI-T UTG900E Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the UNI-T UTG900E Series and is the answer not in the manual?

UNI-T UTG900E Series Specifications

General IconGeneral
BrandUNI-T
ModelUTG900E Series
CategoryPortable Generator
LanguageEnglish

Related product manuals