Nearly all facets of MPJ can be controlled or data collected using ASCII strings of text. These text string can come from:
•A microcontroller or other device which sends ASCII data.
•Text files such as the text files (.mpji), settings files (.mpjs), or other text files.
•Controls, such as buttons or sliders, when activated and their code is 'ran'.
•Entered by the user using the Debug/CLI (Command Line Interface).
It is possible for a controller to create an interface with all necessary controls and to then interact with it.
All string must end in an ASCII 13 (CR - Carriage Return) or ASCII 10 (LF - Linefeed).
Control instructions begin with !. The software instructions are not explicit for any control, such as !bell, where as control instructions have a control perform some operation such as resetting the a plot.
!makeButton btnTest,20,20,30,10,Test // create a button control: name, left, top, width, height, value !bell // sound the computer's bell !plot.reset // reset a plot
Instructions also provide conditional operations such as !if !then and !if !else !if.
Please see Instructions for more information.
|