SSG5000A Programming Guide 123
MATLAB Example
Environment:
Win10 64bit system, MATLAB R2021a
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
%Create a VISA-USB object connected to a USB instrument
vu = visa(
'ni','USB0::0xF4EC::0x1503::SSG5ABAC6R0008::INSTR'
);
%Open the VISA object created
fopen(vu);
Содержание SSG5080A Series
Страница 1: ...SSG5080A Series Signal Generator Programming Guide PG0805A E01A ...
Страница 2: ......
Страница 124: ...122 SSG5000A Programming Guide ...
Страница 136: ......