'Opening multiple resources (Python)
I am trying to use:
rm.open_resource('ASRL7::INSTR')
But I need to open multiple resources and need them to stay open simultaneously. For my functions that apply to these resources I am using threading to operate them simultaneously. But every time I run my code, I see the error:
pyvisa.errors.InvalidSession: Invalid session handle. The resource might be closed.
Is there a way I can keep both resources open?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|