![Saluki S2438 Series Скачать руководство пользователя страница 110](http://html1.mh-extra.com/html/saluki/s2438-series/s2438-series_user-manual_3636124110.webp)
Tel: 886.909 602 109 Email: [email protected]
110
5.3.2 Installation of controller
/*************************************************************************/
The following example shows how to open and establish a communication connection between VISA library and the
instrument (specified by instrument descriptor).
//Initialize the controller: Open the default resource manager and return the instrument handle analyzer
/*************************************************************************/
void InitController()
{
ViStatus iStatus;
iStatus = viOpenDefaultRM(&defaultRM);
iStatus = viOpen(defaultRM, analyzerString, VI_NULL, VI_NULL, &analyzer);
}
5.3.3 Installation of instrument
/*************************************************************************/
The following example shows how to initialize the instrument default status and clear status registers.
/*************************************************************************/
void InitDevice()
{
ViStatus iStatus; long retCnt;
iStatus = viWrite(analyzer, "*CLS", 4, &retCnt); //reset the status register iStatus = viWrite(analyzer, "*RST", 4,
&retCnt); //reset the instrument
}
5.3.4 Sending of setting command
/*************************************************************************/
The following example shows how to set the center frequency of the S2438 series microwave power meter.
/*************************************************************************/
void SimpleSettings()
{
ViStatus iStatus;
Long retCnt;