ShaneLM
2008-08-14 19:40:13 UTC
Hi - I just joined this forum and it looks really helpful - hopefully I can eventually contribute too... I’m currently working on a VisualBasic.NET project that polls various groundstation equipment for their status using the 488.2 GPIB routines. I’m running into an error after my program has executed for some time and then I try to re-run it again. Somehow the GPIB-ENET converter locks up into an error state and the only way to remotely control it again is to manually toggle its power. The GPIB failure is either EHDL or EDVR and can be detected with the troubleshooting wizard. Given the nature of when this occurs, I think I’m either not setting up or closing the converter properly. Here’s the series of commands I’m using. Can someone look this over and tell me if I should be setting up or tearing down the connections a certain way? SendIFC() // a few times, as there are a couple converters
DevClear() // a few times, as there are multiple instruments per converter
For each device over a long period of time{
Send()
(sometimes I call ibdev and ibwait at this point so that I know when the response is ready)
Receive()
}
(am I supposed to be ending the connection somehow at this point? I’ve seen example code that takes the device offline with ibonl, but I don’t want to call that if it will interfere with a separate program that is also using the devices) The error is inconsistent and hard to replicate, so any advice would be helpful. Thanks so much! Shane
DevClear() // a few times, as there are multiple instruments per converter
For each device over a long period of time{
Send()
(sometimes I call ibdev and ibwait at this point so that I know when the response is ready)
Receive()
}
(am I supposed to be ending the connection somehow at this point? I’ve seen example code that takes the device offline with ibonl, but I don’t want to call that if it will interfere with a separate program that is also using the devices) The error is inconsistent and hard to replicate, so any advice would be helpful. Thanks so much! Shane