comparison rs_fsp7_example.py @ 71:00800345fbae default tip

Python3ise RSIB code
author Daniel O'Connor <doconnor@gsoft.com.au>
date Thu, 24 Aug 2023 16:52:10 +0930
parents 91b476ebc0f2
children
comparison
equal deleted inserted replaced
70:6ffa6fcf278e 71:00800345fbae
31 import scpi 31 import scpi
32 32
33 def test(r): 33 def test(r):
34 # ID instrument 34 # ID instrument
35 r.write('*IDN?') 35 r.write('*IDN?')
36 print("ID is " + r.read(5)) 36 print("ID is " + r.read(5).decode('ascii'))
37 37
38 # Reset to defaults 38 # Reset to defaults
39 r.write("*RST") 39 r.write("*RST")
40 40
41 # Set to single sweep mode 41 # Set to single sweep mode