beautypg.com

ElmoMC SimplIQ Software Manual User Manual

Page 65

background image

SimplIQ

Software Manual

Program Development and Execution

MAN-SIMSW (Ver. 1.4)

6-3

Error
Code


Error String


Meaning


Example

8

Operator is

expected

During right-hand expression
evaluation, there is no
operator or terminator of a
simple expression after
successful value evaluation.

b = a c ;

After successful evaluation of a,
an operator or expression
terminator is expected, but c is
not recognized as either an
operator or terminator.

9

Out of memory

in the data

segment

During memory allocation for
a global variable, there is not
enough space in the data
segment.

10

Bad colon

expression

Error during evaluation of a
colon expression. The colon
expression may appear only
in a for statement. Bad syntax
— more than three values or
less than two values — in the
colon expression may also
cause this error.

for k = 10:-1:5:9

Colon expression contains more
than three values.

for k = a

Expected colon expression is
missing in the for statement,
after the =.

11

Name is too

long

Variable or function name
exceeds 12 characters.

int iuyuafdsf_876234 ;

12

No such

variable

Left-hand value is not
recognized as either a variable
or as a system command.

de = sin(0.5)

de is neither a variable nor a
function.

13

Too many

dimensions

Dimension of array exceeds
the maximum admissible
number of dimensions (syntax
allows only one dimensional
array).

int arr[12][2];

An attempt is made to define a
two-dimensional array.

14

Bad number of

input

arguments

The number of input
arguments during a function
call does not match the
number of input arguments at
the function definition.

function func(float a);


func(a,2);

The number of input arguments
during the function call is two,
while the function func is
defined with only the input
argument.

15

Bad number of

output

arguments

Bad syntax in left-hand
expression: multiple output
without brackets, or multiple
output that exceeds maximum
admissible number of outputs
(maximum of 16 outputs is
allowed).

a, b = func(1,2);

Multiple outputs must be within
brackets.