I am writing a python script that requires the state of individual digital inputs on the EasyDaq card. I am able to access the states by channel number as follows:
states = dict(indigo.devices['easydaq'].states)
dnstMotion = states['channel17']
I would like, however, to access the state info using the symbolic label that I assigned to each channel in the EasyDAQ device setup. I could not find the mapping from symbolic label to channel number anywhere in the easydaq object. Is this private information? Do you know of any way to access it?
I can, of course, maintain a dictionary of symbolic names and channel numbers in my code, but this is unsatisfactory as it can potentially get out of sync with the EasyDAQ device setup.
Thanks,
David
David A. Krause
krause@acm.org
303-517-8830