User manual

Section 2: TSP Programming Fundamentals Series 3700 System Switch/Multimeter Reference Manual
2-28 3700S-901-01 Rev. C / July 2008
Loading a script from the Series 3700 front panel
To load a script from a USB flash drive:
1. Press the MENU key to open the main menu.
2. Select the SCRIPT option.
3. Select the LOAD option. A menu is displayed that includes the USB option.
4. Select the USB option. A menu is displayed that lists the .tsp files and
directories on the flash drive. If you select a directory, a new menu is
displayed that lists the .tsp files and directories in that directory.
5. Selecting a .tsp file will cause the system to attempt to load the file.
If the file is not a valid script file, an error message is posted and no
further action is taken.
Loading an anonymous script will overwrite the existing anonymous
script.
A file that does not contain loadscript and endscript shell
keywords will be loaded as an anonymous script.
The display will indicate if a named script already exists in memory. If it
does, you will be prompted to overwrite the script. The display returns to
step 4 if an error occurs or if you select "No" when prompted to
overwrite the script. Otherwise, the display proceeds to step 6 after
indicating that the script loaded successfully.
The script is loaded using the name that follows the loadscript shell
keyword instead of filename. Also, the script is loaded into the
script.user.scripts table.
6. The SCRIPT ACTION menu lists the options of ACTIVE_FOR_RUN or
SAVE_INTERNAL. Proceed to step 7 if ACTIVE_FOR_RUN is selected or
step 8 if SAVE_INTERNAL is selected.
7. ACTIVE_FOR_RUN associates the script with the RUN button if you
selected YES. The script replaces the active executable chunk selected
under the LOAD button. If NO is selected, the display returns to step 6.
8. If you select SAVE_INTERNAL, you will be prompted to save the script into
internal memory. The ICL equivalent is myscript.save() with no
parameters. If you select YES, proceed to step 5 of Saving a script from the
Series 3700 front panel (on page 2-29). If NO is selected, the display returns
to step 6. Note that anonymous scripts cannot be saved internally.