Saving procedures

From Smart Box
Revision as of 23:36, 23 October 2023 by Benryves (talk | contribs) (Fixed filenames of images)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

As you create your procedures they are stored in the memory in Smart Box, but they are lost when the power is switched off. You can save your procedures to the disk on your PC so that they can be recalled at a later date. With Smart Move you can save individual procedures or save all the procedures you create as a group.

To save all procedures together type SAVE followed by a filename. The filename must be different from any of the procedure names you have used when you are saving a number of procedures together.

To save an individual procedure type SAVE followed by a filename followed by the name of the procedure you wish to save. The file name and procedure name can be the same when you are saving an individual procedure.

The following example presumes that you have created three procedures: flash, FlashThemAll and lights. (To see a list of the procedures you have created type LIST < Enter >)

SAVE project saves all the procedures in memory under the filename project.[edit]

SAVE project
Procedure: flash
FOR 5 TIMES
SWITCH ON OUTPUT 1
WAIT 1

Procedure: FlashThemAll

LET number = 0
FOR 5 TIMES
PRINT number
SWITCH ON OUTPUT number

Procedure: lights

flash
FlashThemAll

SAVE flash flash saves the procedure flash as flash on the disk.[edit]

SAVE flash flash
Procedure: flash
FOR 5 TIMES
SWITCH ON OUTPUT 1
WAIT 1
SWITCH OFF OUTPUT 1
WAIT 1
NEXT

SAVE FlashAll FlashThemAll saves the procedure FlashThemAll as FlashAll on the disk.[edit]

SAVE FlashAll FlashThemAll
Procedure: FlashThemAll
LET number = 0
FOR 5 TIMES
PRINT number
SWITCH ON OUTPUT number
WAIT 1
SWITCH OFF OUTPUT number
WAIT 1
LET number = number + 1
NEXT

The filename is limited to 8 characters so you will have to abbreviate long procedure names in this way when you save them.