I have an instrument (a voltage supply- GW Instek PSW 80-13.5) connected to my PC via USB. I am using the Labview instrument drivers provided by the manufacturer to control the instrument. My PC is able to recognize the port (COM9) it uses no problem, and i am able to communicate with it via NI-MAX (I send an IDN? query and always get a response, no timeouts). So it seems like the overall communication set up is ok there.
However, one of the VIs, Initialize.vi (to open VISA session and set up the interface for communication) gives me errors about 1/3 the time I use it. What makes it hard to debug is that the errors are VERY intermittent and occur in different points in the program. I can run the Initialize.vi once, twice, maybe 3 or even 4 times in a row and NO error; then it will give me an error. Or sometimes the first time I run it I get an error. The location of the error also varies.
I have put a screenshot of one type of error below..showing error -107307360 (error at "arg5 of property node") occuring. I get this error about 1/3 of the time the program is run. Not sure how to resolve this.
Also, in addition to this error sometimes it gets through that property node setting ok, but then i get Error -1073807300 at VISA Set I/O Buffer Size. (see error below)
Again, the weird thing is that this error doesn't happen all the time, only part of the time. Because of that I thought it was a timing issue so i woudl step through the program, but it still happened..so not sure what is going on or how I can fix it.
Anyway, thanks in advance for any ideas or suggestions!!!