Avisaro Online Documentation - Wiki
Impressum Kontakt

Load and run scripts using SD memory cards

To load a script into the internal flash memory, follow the following steps:

  1. Copy the script (a regular text file) onto the SD card
  2. Create a text file on the same SD card with the name 'autorun.txt'. Enter the line "load yourfile.txt" in this file. Close this line with 'enter' .
  3. Place the SD card in the Avisaro 2.0 product and turn on power and wait 5 seconds
  4. The script is loaded into the flash memory of the Base Module. Both files (autorun.txt and yourfile.txt) can be removed from SD card.
  5. To have the script start right away, add a 'run' command in the autorun file. To have the script start after power cycling the product, add a 'run auto' command.

Example 'autorun.txt'

autorun.txt
autorun.txt
(Example 'autorun.txt' - modify the filename to match the script you want to upload. Notice: the file system has 8.3 naming: file names have max 8 characters and 3 extension character.)

Load and run scripts temporarily

For special purposes or for testing it might be necessary to execute a script, but not to store it into the internal flash memory. Thus, after power cycling, the previously stored script remains active.

To run a script temporarily, follow the following steps:

  • Copy the script onto a SD card. Name the script "temp_run.bas". This particluar file name is recognized by Avisaro Loggers.
  • Insert the SD card into the logger. The logger automaticlly finds the "temp_run.bas" file. This script is then started without being copied into internal flash memory. Currently executed other scripts are stopped.
  • To clear the temporarily loaded script, restart the logger by i.e. power cycling.

Notice:

  • The automatic execution of scripts works when the logger is powered up while the SD card with "temp_run.bas" is inserted. To load and run the script temporarily upon power up, add a 'autorun.txt' file. Enter the command "run temp_run.bas" (Mehr more) to force execution of this script without loading it into internal flash.

Details:

  • The execution of "temp_run.bas" forces currently running scripts to be stopped. However, a mechanism exists to avoid that just loaded scripts are stopped and started again when the same SD card is ejected and inserted. This works based on the card ID - a unique ID each SD card has.