12-15-2009 02:17 PM
Hi I am sending a command through GPIB that loads a semiconductor device, which takes a few mins to load. When it is finished loading the tool sends out a status byte (70) that I need to read back to know that loading has completed. I wrote a do loop that will wait 500ms then check to see if the status byte has been sent or not, but I keep getting a time out error. Anyone know how to write the loop so I don't get a timeout. I am using VB.NET 2008. GPIB timeout is set to the default 10s, and I don't want to turn the timeout off. Thanks alot for your help!
Dim statusByte as string ;;;;;Declare variable statusByte
Do until statusByte = "70"
System.Threading.Thread.Sleep(500) ;;;;;;Wait for 500ms
statusByte = gpibDevice.ReadString(50) ;;;;;;Read back status byte to see if loading complete
loop
12-16-2009 02:49 PM