Step 7: End the Connection
Last updated: April 14, 2005
In this step you end the connection between the access terminal and test set, as well as prepare the test set to test the next access terminal.
To end the connection you can choose to only close the data connection which makes the session still open (see
Close the Connection
) or choose to close the session which will close the data connection and the session at one time (see
Close the Session
).
To prepare to test the next access terminal, you should then partially preset the test set. See
Partially Preset the Test Set
.
Close the Connection
To close the connection, you:
-
Set the
Data Connection State Change Detector
timeout.
-
Arm the
Data Connection State Change Detector
.
-
Send the
CALL:FUNCtion:DATA:STOP
command.
-
Query the state of the data connection using the
CALL:DCONnected[:STATe]?
or
CALL:SOPen?
query.
An excerpt from the comprehensive example program is shown below:
2120 !**************************************************************************
2130 ! STEP 7: END THE CONNECTION
2140 !**************************************************************************
12910 DISP "Closing data connection"
12920 !
12930 OUTPUT Testset;"CALL:DCONNECTED?"
12940 ! Checks connection status
12950 ENTER Testset;Data_stopped
12960 !
12970 IF Data_stopped=0 THEN
12980 DISP "Data connection closed"
12990 !
13000 ELSE
13010 OUTPUT Testset;"CALL:DCONNECTED:TIMEOUT 10"
13020 ! Set connection change detector timeout
13030 OUTPUT Testset;"CALL:DCONNECTED:ARM"
13040 ! Arm the connection state change detector
13050 OUTPUT Testset;"CALL:FUNCTION:DATA:STOP"
13060 ! Close the data connection
13070 OUTPUT Testset;"CALL:DCONNECTED?"
13080 ! Query the data connection status
13090 ENTER Testset;Data_stopped
13100 !
13110 IF Data_stopped=1 THEN
13120 Print_title("Data connection could not be closed")
13130 Print_title("Ending Testing")
13140 GOTO End_program
13150 END IF
13160 !
13170 DISP "Data connection closed"
13180 END IF
Close the Session
Before disconnecting the AT under test and connecting a new AT to test, you should close the session using the
CALL:SCLose
command. This will close the data connection and the session at one time. See
Close Session Before Testing New AT
.
Partially Preset the Test Set
Partially presetting the test set using the
SYSTem:PRESet3
command will also return the data connection to the idle state, as well as stop any measurements in progress.
|