Macro Menu
Home ] Up ] File Menu ] [ Macro Menu ] Logging Menu ] Plot Menu ] Axis Menu ] View Menu ] Register Menu ] Defined Menu ]

 

Macros are text files containing StampPlot instructions.  These files have the extension of ".spm".  Please see the discussion on Macros. 

Run Macro
!MACR macro_name[.routine_name]
Allows selection of a macro to run.

Select Start-Up Macro
Allows selection of the macro which will ran when StampPlot is loaded.

Run Start-Up Macro on load
Allows the defined macro to be ran when StampPlot loads.

Run Start-Up Macro
!MACS
A one-click choice for running the defined Start-Up Macro. 

Edit Macro with Macro Builder
(Not available with the StampPlot Standard License)
Opens the Macro Builder for editing building/editing macros

Edit Macro with Notepad
Allows opening/editing a macro file using Notepad.

Advanced..
The majority of these menu options are for backwards-compatibility.  Using Version 3 Plot Objects similar features are possible in a more structured manner.

bulletRun Default macro on New Plot
!NPSU ON/OFF
A macro routine may be defined as the default macro ofr routines (!DEFS macro_name or !DEFS (ME)).  When a New Plot is issued, if this option is enabled, the default routine will be ran.
bulletUse '.Default' macro routine
!USED ON/OFF
A macro may contain a routine called "Default:"  If this option is enabled, this routine will be ran anytime analog data arrives, and the arriving data will be parsed into data markers beginning at %m0.  It allows for special routines to be ran anytime analog data arrived.

For version 3.0, analog data is automatically placed into macro values AINVAL0, AINVAL1 and up, and is the preferred method.  Instead of using a default routine, an object may be named beginning with DA_ and that object's code will be ran anytime data arrives.
bulletUse analog data for macro only
!USEA ON/OFF
StampPlot will plot arriving analog by default.  Be enabling this option, arriving analog data will NOT be plotted, but will stored in AINVAL0, AINVAL1 and so on to be used as desired.
bulletUse messages for macro
!USEM ON/OFF
Allows strings classified as messages to be used in macro processing.  This option was useful if data arriving could did not fit the standard structure for StampPlot, and allowed a string to be manually processed.  A better way of accomplishing this is to use special parsing of data strings.
bulletUse .Timer Routine
!USET ON/OFF
The "TIMER:" routine is a macro is one which may be called at regular intervals.  This allows a recurring, or timed event to take place.  With version 3 the recommended method would be to use the object timers (oTimer).
bulletSet Timer Interval
!INTT time in seconds
Sets the interval between calls of the Timer routine.  The value may be between 0 to 60 seconds, where 0 seconds would disable the timer.
bulletUser .Reset routine
!USER ON/OFF
The "RESET:" routine is one in the default macro is ran whenever there exists a plot reset.  This allowed for special actions to take place on reset.  Using version 3 a better means is to use the reset object (oReset).
bulletUse .DblClick Routine
!USEC ON/OFF
The "DBLCLICK:" routine is one which is ran whenever the plot area is double-clicked.  This was an early means for StampPlot to have interactive control.  Use of Plot Objects is now recommended.

bullet!Special Parse Character
!PCHR character(s)

Defines the character or character combination to use when performing special parsing.

Macros have been renamed using an .spm extension, though all macros named .txt should still run properly.  This has been changed to allow for the use of associations in starting macros.  Macros now may exist anywhere in the computer's file system.