Network Operation and Remote Control
R&S
®
SMA100B
303
User Manual 1178.3834.02 ─ 03
length = 1;
viWrite (handle, writeBuffer, length, VI_NULL);
//read result
viRead(handle, readBuffer, 100, &readCount);
}
int main (int argc, char *argv[])
{
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
//create a VISA session and return a handle to it
viOpenDefaultRM (&defaultRM);
//create a VISA session to the serial port and return a handle to it
viOpen (defaultRM, (ViRsrc)"TCPIP::localhost::INSTR", VI_NULL, VI_NULL,
&handle);
#INIT_CODE_END
#COMMAND_CODE_START
write_command("%COMMAND");
#COMMAND_CODE_END
#NO_COMMAND_CODE_START
//no SCPI command available for parameter %PARAMETER !
#NO_COMMAND_CODE_END
#EXIT_CODE_START
viClose (handle);
viClose (defaultRM);
return 0;
}
#EXIT_CODE_END
11.17.3 Remote Control States
How to I recognize if there is an active remote connection to the instrument?
► Observe the indication on the taskbar.
A softkey in the taskbar indicates if and what kind of remote connections are cur-
rently set up.
See also
Chapter 11.4.6, "Active Connections Settings"
The following table shows the different remote control states and the associated com-
mands or actions to return to manual control.
References