12-24-2019 11:23 AM - edited 12-24-2019 11:56 AM
All,
I am operating two different Keysight power pupplies (PS), primarily using IVI drivers, but I am experiencing the same issue when I use the Plug-and-Play "traditional" drivers as well.
I am communicating over a USB line.
If I attempt to initialize a PS with the PS power off, my code aborts with an error. When I restart the code, I get an I/O error when the initialize function runs again (with the power on this time). Error code is 1073807298. So far, the only way I have been able to clear that error is by shutting LabVIEW down and restarting, which won't be acceptable once my code is running on the production floor.
Can anyone give me advice on how to reset my system without shutting down LabVIEW?
Thanks very much.
12-24-2019 12:50 PM
The Bad News is that there is no such LabVIEW Error number. The not-so-bad News is that "Signs are important", and that Error -1073807298 does exist, and means VISA could not perform some operation because of an I/O Error.
Do you know precisely which function (I presume it was one of the ones in the picture you attached, but it is extremely difficult to debug a picture -- can't edit, can't run, etc., and we can't discover the names of the unidentified sub-VIs shown there) caused the Error? Was there only one error?
There are a few things you could try. One is write some test code that does nothing except try to Open, then Close, the connection to your device. If it works, add one function (and test) at a time to try to discover the nature of the failure.
Does the Manufacturer (Keysight?) have any suggestions? What does the Manual suggest to do?
Bob Schor
12-24-2019 07:01 PM
Do some error handling: If you see that error, close the VISA resource ref. Have a pop-up to tell the user what to do, including clicking OK when ready. Re-try the init.