Memories And Variables - NeuLog Sense Autonomous Manual

Table of Contents

Advertisement

24
1.3.1

Memories and variables

In the delay instruction, we write a number that determines the length of the delay
in seconds.
We call a number that is part of the instruction a constant. When we want to
change this number, we have to search for the relevant instruction.
In programming, we prefer to use variables instead.
A variable is a memory cell with a name. In the instruction we indicate the name
of the memory cell.
We can set the variable value in a certain place of the program, which saves us
the searching for instructions.
The software includes special instruction for changing variable values according
to program conditions.
In RobocklySense we use memories (memory1 to memory9) as variables.

Advertisement

Table of Contents
loading

Table of Contents