Instructions

80 T3VNA Programming Guide
time.sleep(.300)
def main():
global remote_ip
global port
global count
# Body: send the SCPI commands *IDN? 10 times and print the return message
s = SocketConnect()
for i in range(10):
qStr = SocketQuery(s, b'*IDN?')
print (str(count) + ":: " + str(qStr))
count = count + 1 SocketClose(s)
input('Press "Enter" to exit')
if __name__ == '__main__':
proc = main()
Run result:
4.2.2Example of Telnet
Telnet SCPI: Provides the ability to send single SCPI commands from a remote PC to the
analyzer using LAN port number 5024.
How to send single SCPI commands using Telnet:
1.On the remote PC, click Start, then Run
2.Type: telnet <ip address> 5024
3.A Telnet window with a >> prompt should appear on the remote PC screen.
4.From the SCPI prompt:
Welcome to the SCPI instrument ‘Teledyne T3VNA1500’
>>
0:: Teledyne,T3VNA1500,T3V1XEAX2R0030,2.0.1.9
1::
*
Teledyne,T3VNA1500,T3V1XEAX2R0030,2.0.1.9
2::
*
Teledyne,T3VNA1500,T3V1XEAX2R0030,2.0.1.9
3::
*
Teledyne,T3VNA1500,T3V1XEAX2R0030,2.0.1.9
4::
*
Teledyne,T3VNA1500,T3V1XEAX2R0030,2.0.1.9
5::
*
Teledyne,T3VNA1500,T3V1XEAX2R0030,2.0.1.9
6::
*
Teledyne,T3VNA1500,T3V1XEAX2R0030,2.0.1.9
7::
*
Teledyne,T3VNA1500,T3V1XEAX2R0030,2.0.1.9
8::
*
Teledyne,T3VNA1500,T3V1XEAX2R0030,2.0.1.9
9::
*
Teledyne,T3VNA1500,T3V1XEAX2R0030,2.0.1.9
Press “Enter” to exit
Welcome to the SCPI instrument ‘Teledyne T3VNA1500’
>>