How do I get my GPIB interface to communicate correct values with python? -
i have gotten simulator start communicating me (see past question); however, not know saying me. here simple code sends message simulator.
`import serial port = '/dev/tty.usbserial-pxfo5l2l' baudrate = 9600 timeout = 1 ser = serial.serial(port = port, baudrate = baudrate, timeout = timeout) ser.write('volt:level 4') `
this supposed set voltage 4, returns 12. along other commands, return ints. can tell me means? or if using write command correctly?
Comments
Post a Comment