I’m able to read via Python the channels string registers for named IO channels, but seem to only ever get one channel at a time (always returned a single byte array character string of 1 char.
I’m using this to read in python 3.9:
device = optommp.O22MMP(‘127.0.0.1’) #or a static IP when read remotely
RAW = device.ReadRawOffset(0xF0100030, 32, ‘s’) #reads the first modules first channel
My RAW response is always b’S’ no matter how many characters I set it to read (32).
I can read these in the OptoManage Webpanel under IOServices/GenericMMP
From python, I seem to only get 1 byte at a time, but it does read them correctly. How do I read the whole string at once?
Thanks for any help. My goal, is to synchronize some of channel config with our own app config so a user can modify from our API, but still have it show up in the IO list correctly, and visa versa.
Mike