BASIC commands
PROGRAMMING MANUAL
184
R
e
vi
si
o
n
1
.0
/i
/i
3.2.257 RUNTYPE
/i
Number Message
Number Message
91
Global definition is different
110
String expected
92
Invalid program name
111
Invalid
MSPHERICAL
input
93
Program corrupt
112
Too many labels
94
More than one program running
when trying to set GLOBAL/CON-
STANT
113
Symbol table locked
95
Program encrypted
114
Incorrect symbol type
96
TOKEN definition incorrect
115
Invalid mix of data types
97
Cannot change program type
once it has been created
116
Command not allowed when run-
ning Trajexia Studio
98
Command expected
117
Parameter expected
99
Invalid command
118
Firmware error: Device in use
100
Invalid parameter for command
119
Device error: Timeout waiting for
device
101
Too many tokens in block
120
Device error: Command not sup-
ported by device
102
Invalid mix of modal groups
121
Device error: CRC error
103
Variable defined outside include
file
122
Device error: Error writing to
device
104
Invalid program type
123
Device error: Invalid response
from device
105
Variable not declared
124
Firmware error: Cannot reference
data outside current block
106
( expected
133
Command only allowed when
running Trajexia Studio
107
Number expected
134
# expected
108
AS expected
135
FOR
expected
109
STRING, VECTOR or ARRAY
expected
136
INPUT/OUTPUT/APPEND
expected
Arguments
N/A
Example
>> PRINT RUN_ERROR PROC(5)
9.0000
See also
BASICERROR
,
ERROR_LINE
,
PROC
.
Type
Program command
Syntax
RUNTYPE "program_name", auto_run [ , task_number ]
Description
The
RUNTYPE
command determines whether the program, specified by
program_name
, is run automatically at start-up or not and which task it is to
run on. The task number is optional, if omitted the program will run at the
highest available task.
The current
RUNTYPE
status of each programs is displayed when a
DIR
command is executed. If any program has compilation errors no programs will
be started at power up. To set the
RUNTYPE
using Trajexia Studio, select
Set
Power-up mode
from the
Program
menu.
Arguments
•
program_name
The name of the program whose
RUNTYPE
is being set.
•
auto_run
0 = Running manually on command; 1 = Automatically execute on power
up. All non-zero values are considered as 1.
•
task_number
The number of the task on which to execute the program. Range: [2, 21].
Example
>> RUNTYPE progname,1,3
This line sets the program
progname
to run automatically at start-up on task
3.
Example
>> RUNTYPE progname,0
This line sets the program
progname
to manual running.
See also
AUTORUN
,
EX
.