Teledyne T3DSO1000 Programming Manual page 211

Digital oscilloscopes
Hide thumbs Also See for T3DSO1000:
Table of Contents

Advertisement

Dim
outputBuffer
As String
Dim
defaultRM
As Long
Dim
instrsesn
As Long
Dim
status
As Long
Dim
count
As Long
' First we will need to open the default resource manager.
status = viOpenDefaultRM (defaultRM)
If
(status < VI_SUCCESS)
Debug.Print "Could not open a session to the VISA Resource Manager!"
TCP_IP_Test = status
Exit Function
End If
' Now we will open a session via TCP/IP device
status = viOpen(defaultRM, "TCPIP0::" + ip + "::INSTR", VI_LOAD_CONFIG,
VI_NULL, instrsesn)
If
(status < VI_SUCCESS)
Debug.Print "An error occurred opening the session"
viClose (defaultRM)
TCP_IP_Test = status
Exit Function
End If
status = viWrite(instrsesn, "*IDN?", 5, count)
(status < VI_SUCCESS)
Debug.Print "Error writing to the device."
End If
status = viRead(instrsesn, outputBuffer, VI_FIND_BUFLEN, count)
(status < VI_SUCCESS)
Debug.Print "Error reading a response from the device.", i + 1
* VI_FIND_BUFLEN
Then
Then
Then
Then
Digital Oscilloscope Series
If
If
211

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

T3dso2000

Table of Contents