Hi,
Here are a couple of suggestions about how to troubleshoot this. If this does not solve the problem or you would like more specific help please contact Support at www.ni.com/ask
First, just refreshing Explorer will not clear a SYSFAIL. Something else may be happening to make it appear that refreshing is solving the problem, but the Explorer code cannot clear the SYSFAIL. This raises another question: How are you refreshing T&M Explorer? You can refresh our newer configuration software, Measurement & Automation Explorer (MAX), but not T&M. If you are in fact using T&M, and therefore NI-VXI 2.1.1 or earlier, you might want to consider upgrading to NI-VXI 3.2. NI-VXI 3.2 is a more stable driver and installs MAX, which is used by all of our other hardwa
re and software. It is available on the Drivers and Updates page off of www.ni.com.
Second, have you tried using NI-SPY to capture a log of your VXI and VISA calls? This will help pinpoint where the error is occurring.
Third, try using the VISA Interactive Control to make the calls and see if the error occurs. This will help you to narrow down where the mistake is: in the functions or your code.
Forth, in the sample of code you posted it looks like you are trying to open a session to the controller, not an instrument. You will only be able to do an In if memory has been shared correctly on the controller.
Hope this helps. If you have any further questions, please contact Support at www.ni.com/ask.
Thank you,
Katie Shiels
National Instruments