VB Example
Environment: Windows7 32-bit, Microsoft Visual Basic 6.0
Description: The function of this example: Use the NI-VISA, to control the
device with USBTMC and TCP/IP access to do a write and read.
Steps:
1.Open Visual Basic, and build a standard application program project.
2.Set the project environment to use the NI-VISA lib: Click the Existing tab
of Project>>Add Module, search the visa32.bas file in the "include" folder
under the NI-VISA installation path and add the file, as shown in the figure
below:
3. Coding:
a) USBTMC:
Private Function
' This code demonstrates sending synchronous read & write commands
Usbtmc_test()
As Long
Digital Oscilloscope Series
207