iTuner Manual
49
5.5.2 SendCmd Method
SendCmd ( command , acknowledge )
Command [in]
Acknowledge [out]
Result value of command (see command description in chapter 4)
Same as above ‘Send’ method, but additional parameter ‘acknowledge’
contains the ‘reply’ of the tuner send after receiving ‘command’. Use this
method to send commands such as ‘dir’ that have a large string reply from the
tuner.
iTuner.SendCmd(‘dir’, directory)
Parameter ‘directory’ contains reply of
tuner to ‘dir’ command
5.5.3 OPC Method
0 -> task has completed
<0 -> timed out before completion
Calling OPC halts your application until the tuner has completed all current
tasks, such as initializing or tuning to a new probe position.
OPC internally calls the ‘STATUS?” command, and returns when either
STATUS? returns 0, or
maxWait seconds have elapsed.
Use a maxWait value that correspond to your tuner, thus allowing sufficient
time for the tuner to complete its tuning operations.