*WAI
Description
This command waits for all ongoing executions to complete. After calling this command no further commands or queries are accepted until all started operations are completed.
Syntax | Parameter |
---|---|
*WAI |
none |
Parameters | accepted format | allowed suffixes | possible Errors | description |
---|---|---|---|---|
none |
none |
none |
none |
none |
Sample usage
Start a single trigger cycle, wait for it to complete and get the measurement values.
var visaSession = new TcpipSocket(VISA_RESOURCENAME); visaSession.RawIO.Write(":TRIG:SOUR BUS\n"); visaSession.RawIO.Write(":INIT\n"); visaSession.RawIO.Write(":TRIG:SING\n"); visaSession.RawIO.Write("*WAI\n"); visaSession.RawIO.Write(":CALC:DATA:SDAT?\n"); var data = visaSession.RawIO.ReadString();