![UNI-T MSO/UPO2000 Series Скачать руководство пользователя страница 150](http://html1.mh-extra.com/html/uni-t/mso-upo2000-series/mso-upo2000-series_programming-manual_3695095150.webp)
Programming Manual MSO/UPO2000 Series
150 / 156
Instruments.uni-trend.com
LabVIEW
Example
Environment: Window system, LabVIEW
Description: Access the instrument via USBTMC and TCP/IP, and send "*IDN?" command on NI-VISA
to query the device information.
Steps:
1.
Open LabVIEW software and create a VI file.
2.
Add control, press the front panel interface, select and add VISA resource name, error input, error
output and partial indetifier on control flow diagram.
3.
Open diagram, press VISA resource name and then select and add function VISA Write, VISA Read,
VISA Open and VISA Close on pop-out menu.
4.
VI open a VISA session of USBTMC device and wrote *IDN? command and read back the response
value. When all communication is complete, VI will close the VISA session.
5.
Communication with the device via TCP/IP is similar with USBTMC, it need to set VISA write and
read function to synchronous I/O, set LabVIEW to asynchronous IO by default. Right click on the
node and select "Synchronous I/O Mode>>Synchronous" from shortcut menu to enable synchronous
writing or reading of data, as shown in the following figure.