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

USB COM Probe stops if not instr class

$
0
0

USB communications gives intermittent error "The resource is valid but VISA cannot currently access it". The main program accesses the same subroutine to communicate with the USB instrument in two places (ptA and ptB). If the Visa Resource Name line is probed, the program interrupts (breaks) only when the subroutine is accessed from ptB. The reason is that the tab marked 'Condition' has both 'Is session valid?' and 'Is Instr' 'stop if not valid' boxes checked, and it reports both as invalid.  It does not display anything on the 'general' tab for 'Canonical VISA resource name' when it interrupts the program execution.

I placed an 'Instrument Property Node'  and checked the Rsrc Name, Rsrc Class, Intf Type, and Intf Inst Name, and now it is running fine. 

Any ideas on why it runs from ptA but not ptB, and from ptB if instrument property node is checked?


Viewing all articles
Browse latest Browse all 5685

Trending Articles



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