SIGLENT
SSG5000X Programming Guide 143
4.1.3
MATLAB Example
Environment: Win7 32bit system, MATLAB R2013a
The function of this example: Use National Instruments NI-VISA to control the device
with USBTMC or TCP/IP access and perform write and read operations.
Follow the steps to complete the example:
1.
Open MATLAB, modify the current directory. In this demo, the current directory is
modified to D:\USBTMC_TCPIP_Demo.
2.
Click File>>New>>Script in the Matlab interface to create an empty M file
3.
Add codes:
(1)
USBTMC access code
Write a function
Usbtmc_test.
function
USBTMC_test()
% This code demonstrates sending synchronous read & write commands
% to an USB Test & Measurement Class (USBTMC) instrument using
% NI-VISA