Hey everyone!
I’m now working on logging data from a pressure/vacuum reader. This particular reader (MKS PDR2000) has two channels/transducers and only one output. Currently, script is simple and looks like this:
import serial
import time
ser.close()
ser = serial.Serial(port='COM9',\
baudrate=9600,
parity=serial.PARITY_NONE,\
stopbits=serial.STOPBITS_ONE,\
bytesize=serial.EIGHTBITS,\
timeout=2)
while True:
ser.write((('p')).encode('utf-8'))
out1 = ser.read_until().decode('utf-8')
print(out1, end="")
time.sleep(1)
ser.close()
Output is:
74.1e-3 72.4e-3
74.1e-3 72.4e-3
74.1e-3 72.4e-3
74.1e-3 72.4e-3
74.1e-3 72.4e-3
74.1e-3 72.4e-3
74.1e-3 72.4e-3
Does anyone know a quick way to assign each of the figures on each output line (eg ‘74.1e-3’ and ‘72.4e-3’) to separate cells on a spreadsheet? Thanks in advance!