User`s guide

2-5
GPIB Tutorial and Examples
Example B - Controlling the Mobile
Tips:
The BASIC FOR NEXT loop is ideal for controlling the TX Levels. For example, start the
loop with FOR Txlevel = 5 TO 15 and end with NEXT Txlevel. Use a REPEAT UNTIL
structure to check the reported TX Level. This time, use a delay of WAIT 0.4. For more
help, look at the ‘PERFORM FAST POWER MEASUREMENTS’ section of example
program 1 in section “Example Programs”.
ARFCN Changing
Once your program is working, add another FOR NEXT loop outside the Txlevel loop to
change ARFCN from 1, to 63, to 124. The new program will cycle the mobile from TX
Level 5 to 15 at ARFCN 1, then from 5 to 15 on ARFCN 63, then from 5 to 15 on ARFCN
124. Add a PRINT statement to display the ARFCN and TX Level.
The flow of the mobile control part of the program will be as follows:
Establish call as in exercise A.
Set up a loop to count through three ARFCN.
Command the phone to the new ARFCN.
Check the reported ARFCN, loop until the reported value matches the programmed
value, or too much time has elapsed.
Set up a loop to count through the TX Levels.
Command the phone to the new TX Level.
Check the reported TX Level, loop until the reported value matches the programmed
value, or too much time has elapsed.
Print the ARFCN and TX Level.
Repeat for the next TX Level.
Repeat for the next ARFCN.
End call as in Exercise A.
Tips:
Use a REPEAT UNTIL loop as before to check for confirmation of the mobile’s channel
change, this time use a WAIT 0.1 inside the loop. It may be helpful to use an array to hold
the ARFCN. For example Arfcnar(1)=1, Arfcnar(2)=63, Arfcnar(3)=124, then FOR X=1
TO 3 and Arfcn=Arfcnar(X). For more help, look at the ‘PERFORM FAST POWER
MEASUREMENTS’ section of example program 1 in section “Example Programs”.