SIGLENT
150 SSG5000X Programming Guide
# 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?\n')
print (str(count) + ":: " + str(qStr))
count = count +
1
SocketClose(s)
input('Press "Enter" to exit')
if __name__ == '__main__':
proc = main()
The run result
:
4.2.2
Telnet Example
Telnet SCPI: Provides the ability to send single SCPI commands from a remote PC to the
signal generator
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.