Program Examples CMU
1100.4903.12 7.2 E-4
#define Map_Command "SYST:REM:ADDR:SEC %d,\"%s\""
#define IdStr_RF_NSig "RF_NSig"
#define IdStr_GSM900MS_Sig "GSM900MS_Sig"
#define IdStr_GSM900MS_NSig "GSM900MS_NSig"
#define IdStr_GSM1800MS_Sig "GSM1800MS_Sig "
// Variable declarations
int h_BASE;
int h_RF_NSig;
int h_GSM900MS_Sig;
int h_GSM900MS_NSig;
int h_GSM1800MS_Sig;
char InBuffer [100];
char Command [100];
// Request of the basesystem handle
h_BASE = ibdev (BdIndx, pad, sad_BASE, tmo, eot, eos);
// Mapping of secondary addresses for the function groups
sprintf (Command, Map_Command, _RF_NSig,IdStr_RF_NSig);
ibwrt(h_BASE, Command, strlen(Command));
sprintf (Command, Map_Command, _GSM900MS_Sig, IdStr_GSM900MS_Sig);
ibwrt(h_BASE,Command, strlen(Command));
sprintf (Command, "Map_Command _GSM900MS_NSig, IdStr_GSM900MS_NSig);
ibwrt(h_BASE,Command, strlen(Command));
sprintf (Command, "Map_Command _GSM1800MS_Sig, IdStr_GSM1800MS_Sig);
ibwrt(h_BASE,Command, strlen(Command));
// Request of function group handles
h_RF_NSig = ibdev (BdIndx, pad, sad_RF_NSig, tmo, eot, eos);
h_GSM900MS_Sig = ibdev (BdIndx, pad, sad_GSM900MS_Sig, tmo, eot, eos);
h_GSM900MS_NSig = ibdev (BdIndx, pad, sad_GSM900MS_NSig, tmo, eot, eos);
h_GSM1800MS_Sig = ibdev (BdIndx, pad, sad_GSM1800MS_Sig, tmo, eot, eos);
Simple Measurements
The following measurement examples require option CMU-K21/-K22/-K23 to be installed – see
separate operating manual for GSM900/1800/1900 mobile tests.
// Example for a GSM900 mobile with power and
// modulation measurement at PCL 5 and PCL 10
ibwrt(h_GSM900MS_Sig, "PROC:SIGN:MS:PCL 5", 18);
ibwrt(h_GSM900MS_Sig, "READ:SCAL:POW:RES?", 18);
ibrd (h_GSM900MS_Sig, InBuffer, sizeof (InBuffer));
...
ibwrt(h_GSM900MS_Sig, "READ:SCAL:MOD:RES?",18);
ibrd (h_GSM900MS_Sig, InBuffer, sizeof (InBuffer));
...
ibwrt(h_GSM900MS_Sig, "PROC:SIGN:MS:PCL 10",19);