AnsweredAssumed Answered

*OPC? and Visual Basic 6

Question asked by ieee488 on Jun 23, 2008
Latest reply on Jun 24, 2008 by daras
I am trying to get my VB6 test snippet to work using *OPC?

Call visaWrite(viPNA, "*OPC?")
Call viVScanf(viPNA, "%t", opc)

Do I need to put a loop in there?

The test program seems to be ignoring the *OPC? query and merrily continues on to try to read the 1 that the PNA sends when it is finished with what it is doing, but since the PNA is not finished, I get an error -420 Query Unterminated.