Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

why do I get error -10401 without the while loop

When I use the while loop version, the program will work, but when I remove the while loop, I get an error -10401?

thanks
0 Kudos
Message 1 of 2
(2,672 Views)
Hello scott-e,

In the version with the while loop, how are you stopping the program? My guess is that you are getting the error but since the error is not being handled at at all in the while loop, you do not realize that the error has occured. One thing you can try is to put the code in a while loop (or foor loop) that only runs once. I'm sure that you will see the error propogate out of the loop and into the error handler.

Take care,
E.Lee
Eric
DE For Life!
0 Kudos
Message 2 of 2
(2,644 Views)