bbean Posted January 10, 2007 Report Share Posted January 10, 2007 Can someone help explain why the attached code takes longer than ~1 sec to execute if my network connection is down. As you can see in the NI Spy screenshot it takes >15 secs. If the network is down I ASSume the 1000ms timeout should abort the VISA open. I know I shouldn't assume. :headbang: Quote Link to comment
Michael Aivaliotis Posted January 11, 2007 Report Share Posted January 11, 2007 It behaves the same on my machine as well. I guess the timeout does not apply to network connected resources? What's also interesting is that if you set a timeout > 15 secs, it STILL returns after 15 secs. Quote Link to comment
David Wisti Posted January 11, 2007 Report Share Posted January 11, 2007 Can someone help explain why the attached code takes longer than ~1 sec to execute if my network connection is down. As you can see in the NI Spy screenshot it takes >15 secs.If the network is down I ASSume the 1000ms timeout should abort the VISA open. I know I shouldn't assume. :headbang: I had a similar problem a while back with "remote" FPGA open which is really just a special VISA open. The FPGA open/close/read/write timeouts can not be set. So, one solution was to use a VISA open with a custom timeout. I experienced the same problem and just gave up... Heres the post at NIs website. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.