Chapter 6 RAPID!
Commands
WCDMA Options Version 6.20
165
PRINT (OUTPUT)
Description
Sets the cursor to a new position on-screen. Any subse-
quent text output will start from that position.
Parameter
x is counted in character positions rather than
in pixels; parameter
y in screen lines. The values for x
and
y are dependent on the currently set font size.
However, the 4400 enables the user to scroll the screen
output.
For practical reasons,
x should be kept below 50 and y
below 25.
Examples
IF (channelno > 2099) then LOCATE 24, 0
Print "Input out of range. " _
;"Please reenter."
(In case the channel number
entered by the user is out of range, a prompt will appear
in the ‘status line’ of this RAPID! program.)
Syntax
PRINT [ { [USING usestr$,] exp [ , | ;
|TAB(number);] } ]
or
OUTPUT [ { [USING usestr$,] exp [ , | ;
|TAB(number);] } ]
Parameters
exp is a numeric or string expression,
usestr$ defines an output format for numeric data,
number stands for an integer figure, forcing the next
exp of the same PRINT or OUTPUT command to appear
on a specific position on-screen.
Description
Displays the specified expression(s) on-screen.
In case the separator is a comma (,), the expression fol-
lowing the current one will be displayed at the next tab-
ulator position.
In case the separator is a semicolon (;), the expression
following the current one will be displayed directly after
the previous one.
OUTPUT is a 100% synonym for PRINT.
PRINT USING "a.b" allows to format numeric output.
While
a gives the total amount of digits to be used for
the output (including decimal places, the decimal point
and the sign),
b specifies the number of decimal places
(see example below).
Note: The
PRINT command is also available to output
data to a file or the SCPI system.