Tutorial: Difference between revisions
No edit summary |
No edit summary |
||
| Line 69: | Line 69: | ||
* [[Varying power and pulsing outputs]] | * [[Varying power and pulsing outputs]] | ||
* [[Printing procedures]] | * [[Printing procedures]] | ||
* [[Disconnecting Smart Box from the host computer]] | |||
Revision as of 23:58, 6 October 2023
About Smart Move
Smart Move is the control program designed for use with Smart Box. With Smart Move you can create your own programs to control models and other devices connected to Smart Box. Smart Move includes special commands to control the motors and other outputs. It also includes commands to detect the signals received from any sensors you have connected to Smart Box. The sensors are the inputs to the system. The motors, lamps or other similar devices are the outputs. The outputs can be switched on and off depending on the state of the inputs. For example, a lamp can be switched on when a light sensor detects a fall in light level, or a buzzer can be switched on when a temperature sensor detects a predetermined temperature.
Data capture
Smart Move also includes commands which allow you to save readings from the sensors to disk. These sensor readings can then be analysed using other programs such as a spreadsheet. The readings can also be stored when certain conditions are met. For example the temperature during the hours of darkness could be taken by recording the values from the temperature sensor only when the light sensor reading is below a certain level. This feature allows sophisticated data capture experiments to be designed.
Procedures
Each Smart Move program you create will consist of at least one procedure. A procedure is a sequence of instructions which are grouped together and given a name. You then simply refer to the procedure name to make your program execute the complete sequence of instructions. A typical Smart Move program will be broken into a number of small procedures, each procedure performing a precise part of the overall program. Breaking the program down into procedures allows each one to be tested independently. Each procedure can be used any number of times within any other procedure. You will usually have one main procedure which uses a number of sub procedures.
Presumed Knowledge
This guide presumes no prior knowledge of Smart Box, Smart Move or control technology. However, the guide does assume that you know how to perform certain basic tasks with your computer. You should know how to:
- Use the keyboard
- Copy disks, programs and documents
- Perform simple editing tasks, including deleting text
If you need to learn more about these basic tasks, consult the handbooks and disks that came with your computer.
Contents
The following sections of this guide take you through creating your first program, and provide a number of example procedures. The language commands are detailed in full in the reference section.
Make sure that Smart Box and your computer are correctly connected and switched on (see Smart Box setting up procedure), then load the Smart Move software.

Once loaded you will see the main Smart Move screen as shown in fig. 1. The top of the screen is the monitor window. This area of the screen displays the current state of the various inputs and outputs. The bottom section of the screen is the text window. You use this window to type in commands. Any values you ask Smart Move to print will also be displayed here.
- Switching outputs on and off
- Procedures
- Repeating actions
- Variables
- Procedures within procedures
- Saving procedures
- Loading procedures
- Using sensors
- Making decisions
- Data capture
- Average
- Controlling a motor
- Varying power and pulsing outputs
- Printing procedures
- Disconnecting Smart Box from the host computer