Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Checking status byte before it is available???

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

0 Kudos
Message 1 of 2
(3,418 Views)
Where's your write command to tell the instrument to return the status byte (i.e *STB)?
0 Kudos
Message 2 of 2
(3,381 Views)