SIGLENT
138 SSG5000X Programming Guide
4.1.2
VB Example
Environment: Win7 32bit system, Microsoft Visual Basic 6.0
The function of this example: Use National Instruments NI-VISA to control the device
with USBTMC and TCP/IP access and perform write and read operations.
Follow the steps to complete the example:
1.
Open Visual Basic, build a standard application program project (Standard EXE)
2.
Set the project environment to use the NI-VISA lib, Click the Existing tab of
Project>>Add Existing Item. Search for the visa32.bas file in the include folder under the
NI-VISA installation path and add the file.
This allows the VISA functions and VISA data types to be used in a program.
3.
Add the following code:
(1)
USBTMC access code.