06-07-2012 12:34 PM - edited 06-07-2012 12:37 PM
I am working on a VI that performs a voltage sweep across multiple PV devices, all in two states (light and dark). I am using SCPI commands and a GPIB to send the sweep to the Keithely and store it in a memory slot. Then I call upon this sweep using a subvi for each device in the two states. The first state (light) always works fine. The VISA write successfully sends the script to the Keithly and a VISA read successfully records the information. But when the VI tries to run the same subvi in the 2nd (dark) state, i get the -1073807339 timeout error.
Ways I have tried to fix this:
-adjusting the byte rate for VISA read (at one point i was getting the error on VISA read, not write)
-adjusting the timeout setting for VISA per the suggestion from Ni's website
-loading the script onto the keithley every time for each sweep
Also,
I am collecting 100 data points with each sweep of -.05V to 2V.
Each time I get this error, in order to get anything to communicate again, I have to close out of labview and disconnect, power off, power on and reconnect the keithly
Please help. Could this be an issue with my GPIB device? or my Keithley 2400?
Thank you
Solved! Go to Solution.
06-11-2012 04:27 PM
Hello Ipatka,
I am assuming that the article you are referring to is the one I have included below:
Why do I Receive Timeout Error -1073807339 on VISA Read or Write?
http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0?OpenDocument
Have you tried all of the suggestions? Maybe we should try the suggestion of using the VISA property node to ensure that the data ready by VISA is limited to exactly the available data.
Try that and let me know is we have made any progress.
Regards,
Shawn S.
Application Engineer
06-12-2012 10:29 AM - edited 06-12-2012 10:29 AM
I tried all of those solutions but none of them helped. However, i did finally fix the problem on my own. The issue was that the VISA session was not properly closed/ cleared after each sweep. To fix this, I added VISA close at the end of each sweep and VISA clear before each sweep.