Hello everyone,
I would be very grateful if someone could help me.
I am trying to communicate with a spectrometer. All is working correctely until I turn it off.
When I turn it on after, I can not execute my program and I get the following error:
Error -1073807246: The resource is valid, but VISA cannot currently access it
When I go to MAX, my instrument is still existing but It is written "Unknown"
I have found an interesting page on ni.com explaning the reason behind this:
I understood that I am getting this error because the previous sessions are still open.
so I added "close VISA" whenever I got any error when trying to open a session. In this case the instrument is not detected by MAX and I have to disconnect it and reconnect it.
Can anyone help me in finding a way to use my instrument without disconnection and reconnection it again?
Thanks