Saving procedures: Difference between revisions

From Smart Box
Jump to navigation Jump to search
(Added floppy disk images to illustrate saving projects and procedures)
Line 55: Line 55:
|SAVE FlashAll FlashThemAll
|SAVE FlashAll FlashThemAll
[[File:Tutorial-Saving-Project-FlashAll.svg|none|300px]]
[[File:Tutorial-Saving-Project-FlashAll.svg|none|300px]]
| Procedure: Flash ThemAll
| Procedure: FlashThemAll
  LET number = 0
  LET number = 0
  FOR 5 TIMES
  FOR 5 TIMES

Revision as of 23:29, 23 October 2023

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.

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.

SAVE flash flash
File:Tutorial-Saving-Project-Flash.svg
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.

SAVE FlashAll FlashThemAll
File:Tutorial-Saving-Project-FlashAll.svg
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.