The signal source control interface is as follows:
At the beginning of the signal source, you must set three parameters: mod 1C RF, which are enabled and disabled respectively. When transmitting signals, you must set the transmission frequency and power. After determining the Emission frequency and power values, click set all to change the instrument settings. The frequency and power control code is similar to the frequency spectrometer. Here we will introduce how to enable and disable the MOD code.
Open mod
Visession defaultrm, VI; vistatus result; char Buf [256] = {0}; viopendefaultrm (& defaultrm); cstring S3 = "tcpip0: 10.10.150.155: instr "; vistring Toal = s3.getbuffer (0); viopen (defaultrm, Toal, vi_null, vi_null, & VI); vistring strcommand; cstring SS1, svalue; SS1 = ": outp: moD 1 \ n "; strcommand = ss1.getbuffer (0); Result = viprintf (Vi, strcommand); If (result = vi_success) {MessageBox (" set successfully "); getdlgitem (idc_button11)-> setwindowtext ("Mod enabled"); getdlgitem (idc_button12)-> setwindowtext ("Disable MOD");} viclose (VI); viclose (defaultrm );
Disable mod: visession defaultrm, VI; vistatus result; char Buf [256] = {0}; viopendefaultrm (& defaultrm); cstring S3 = "tcpip0: 10.10.150.155: instr "; vistring Toal = s3.getbuffer (0); viopen (defaultrm, Toal, vi_null, vi_null, & VI); vistring strcommand; cstring SS1, svalue; SS1 = ": outp: moD 0 \ n "; strcommand = ss1.getbuffer (0); Result = viprintf (Vi, strcommand); If (result = vi_success) {MessageBox (" set successfully "); getdlgitem (idc_button12)-> setwindowtext ("Mod disabled"); getdlgitem (idc_button11)-> setwindowtext ("enable MOD");} viclose (VI); viclose (defaultrm );