Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

VISA Closes deletes termination character?

$
0
0

I am currently working on a remote control of a laser using VISA and the actor framework. My Actor (basically an object) holds a VISA address and upon startup the termination character in a "Configure.vi" (see attachement). The object is then passed on and the first query always works but all subsequent ones fail, reason beeing that the termination character is reset from 13 to 10.

 

Also in the attachements is how I currently send my commands to the VISA device. I just write the command, read some data back (it shouldn't really read 256 bytes but that is why I use the termination character) and close the VISA session. So does one of these steps reset the termination character setting of the VISA device? Note that I do not store the VISA address back so I would expect it to be a copy of the one stored in my object. So even if something would change its settings, that should not affect the origial one. But I am clearly missing something here.


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>