MaxA_Common

Previous  Next

 

This include file contains all the common definitions as well as any MaxA specific error codes.  It will also include any include files for the MyBASIC2 Extension Libraries used.

 

This file should always be included when creating a custom analysis from scratch.  If you use any of the existng analysis then this file will be included.

 

 

Defined Error and Status Codes

 

CONST cErrOK               = ERR_SUCCESS

CONST cErrCancel           = ERR_CANCEL

CONST cErrContinue         = -1

CONST cErrNotInit          = ADDERR( "Must Run MaxA AUTOEXEC before calling common library" )

CONST cErrOpt              = ADDERR( "Unable to Load MaxA Options Dialog" )

CONST cErrMao              = ADDERR( "Unable to Open MaxA Options File" )

CONST cErrEnv              = ADDERR( "The MyBASIC2 Script must be run under MaxA Environment" )

CONST cErrNoMAO            = ADDERR( "No MaxA Options File defined in MAXA$MAO_PATH Environment Variable" )

CONST cErrNoUID            = ADDERR( "No User Interface Script Defined in MAXA$UID_PATH" )

CONST cErrNoDPS            = ADDERR( "No Data Processor Script Defined in MAXA$DPS_PATH" )

CONST cErrNoDRS            = ADDERR( "No Data Processor Script Defined in MAXA$DRS_PATH" )

CONST cErrMultiple         = ADDERR( "Multiple Error Conditions Raised.  Execution of Script Aborted" )

CONST cErrRunUID           = ADDERR( "UID Script Not Found or an unexpected error occurred while running script" )

CONST cErrRunDPS           = ADDERR( "DPS Script Not Found or an unexpected error occurred while running script" )

CONST cErrRunDRS           = ADDERR( "DRS Script Not Found or an unexpected error occurred while running script" )

CONST cErrBadHandleFSL     = ADDERR( "Invalid or <null> FSL Handle Value supplied" )

CONST cErrBadHandleDDL     = ADDERR( "Invalid or <null> DDL Handle Value supplied" )

CONST cErrBadHandleMAO     = ADDERR( "No MaxA Options File or Invalid MAO Handle Supplied" )

CONST cErrDPS              = ADDERR( "Error Processing Selected File Item(s).  Analysis Aborted" )

CONST cErrNotImpl          = ADDERR( "Sorry, Selected feature has not been implemented yet" )

CONST cErrBadRef           = ADDERR( "Unexpected Invalid Reference data or pointer detected" )

CONST cErrNoData           = ADDERR( "No data points selected or selected points not found" )

CONST cErrAttach           = ADDERR( "Unable to attach to selected control" )

CONST cErrNoFrames         = ADDERR( "File doesn't have any data or number of frames < 2" )

CONST cErrNewBuf           = ADDERR( "Error allocating memory buffers for selected data points" )

CONST cErrUIDRunning       = ADDERR( "Only one Analysis Dialog can be displayed at a time" )

CONST cErrAnglePoints      = ADDERR( "To many points for selected angle calculations" )

CONST cErrAngleFiles       = ADDERR( "Angle Calculations cannot span over multiple files" )

CONST cErrInvAngle         = ADDERR( "Invalid or unsupported Angle Type detected" )

CONST cErrDataType         = ADDERR( "Invalid Data Type for requested calculations" )

 

 

Defined Analysis Mnemonics

 

CONST cMA_PosPos           = "PosPos"

CONST cMA_PosTime          = "PosTime"

CONST cMA_VelTime          = "VelTime"

CONST cMA_AccTime          = "AccTime"

CONST cMA_AngleTime        = "AngleTime"

CONST cMA_AngleVelTime     = "AngleVelTime"

CONST cMA_AngleAccTime     = "AngleAccTime"