diff 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
line wrap: on
line diff
--- a/rs_fsp7_example.py	Mon Aug 30 12:40:43 2021 +0930
+++ b/rs_fsp7_example.py	Thu Aug 24 16:52:10 2023 +0930
@@ -33,7 +33,7 @@
 def test(r):
     # ID instrument
     r.write('*IDN?')
-    print("ID is " + r.read(5))
+    print("ID is " + r.read(5).decode('ascii'))
 
     # Reset to defaults
     r.write("*RST")