Creating Downloadable Programs

Creating a Downloadable Program

To store a function

￿Write the FUNCDEFs using short program lines.

￿Indent program lines to mark sub-functions and points of looping and branching.

￿Use descriptive labels for variables, functions, and traces (memory space permitting).

￿De￿ne all variables and traces at the beginning of the program, not within a FUNCDEF de￿nition.

￿Use recommended syntax shown in the Language Reference chapter.

￿Use output statements to send the FUNCDEFs and variables to the OSA.

To con￿rm a function is stored

1.Press 4MENU5, NMiscNNNNNNNNNNNNN, and then NMORENNNNNNNNNNNNNNNN1NNNNNofNNNNNNNNNN3NNN.

2.Press NcatalogNNNNNNNNNNNNNNNNNNNNNNNN&NNNNNNMSINNNNNNNNNN.

3.Press NINTERNLNNNNNNNNNNNNNNNNNNMEMORYNNNNNNNNNNNNNNNNNNNN.

The catalog of internal memory should now be displayed.

4. If the user-de￿ned function was stored, it will be listed in the catalog.

For each stored article, the catalog gives the name of the article, followed by AFUNC or FUNC (for active or ordinary user-de￿ned functions, respectively) and the size in bytes.

6-7