You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\code\mcculw\.venv\Scripts\python.exe C:\code\mcculw\examples\console\digital_in.py
Found 1 DAQ device(s):
USB-1024HLS (168B4DE) - Device ID = 127
Active DAQ device: USB-1024HLS (168B4DE)
FIRSTPORTA Value: 0
Bit 0 Value: 0
Process finished with exit code 0
2nd:
C:\code\mcculw\.venv\Scripts\python.exe C:\code\mcculw\examples\console\digital_in.py
Found 1 DAQ device(s):
USB-1024HLS (0) - Device ID = 127
Error: The DAQ device does not support digital I/O
Process finished with exit code 0
It seems some resource is not cleaned up in succeed case, but always be released on failed case.
I have another piece of code bypass the configuration validation but still return the same result. It's just a different error thrown.
Same pattern (1st succeed, 2nd failed) if we continue the execution loop.
Environment:
Run https://github.com/mccdaq/mcculw/blob/master/examples/console/digital_in.py multiple times:
1st:
2nd:
It will keep this pattern if we keep the execution loop.
Please notice that on the error case,
device.unique_id
is always 0 and ports number of device configuration is 0 that cause the error being thrown.https://github.com/mccdaq/mcculw/blob/master/examples/console/console_examples_util.py#L28
It seems some resource is not cleaned up in succeed case, but always be released on failed case.
I have another piece of code bypass the configuration validation but still return the same result. It's just a different error thrown.
Same pattern (1st succeed, 2nd failed) if we continue the execution loop.
1st:
2nd:
The text was updated successfully, but these errors were encountered: