Flight Recorder Parameters

Flight recorder parameters are parameters related to the flight recorder. These parameters are set using functions such as SetParam and SetFlightRecorderParam.

The Target value specifies whether the parameter is specified for each Axis or once for the entire System.

This page contains explanations for the following flight recorder parameters:

Enable Flight Recorder

Variable Name:

enableFlightRecorder

Type:

bool

Default Value:

TRUE

Target:

System

This parameter determines whether flight recorder data should be saved to disk when one of the conditions for triggering the flight recorder is satisfied. The flight recorder data contains the position command and position feedback data of the axes for the last 5000 cycles (5 seconds for a 1ms Cycle Time Milliseconds) from when the flight recorder is triggered. The flight recorder is stored in the path specified by the user with SetFlightRecorderPath, or “C:" by default, and has the file name “wmx_flight_recorder_ipt0.txt”.

An additional “wmx_flight_recorder_ipt1.txt” is generated when using an additional interrupt (see Function Calls Affected by Interrupts).

Once the flight recorder is triggered, it will not trigger again until the engine is restarted to avoid overwriting the existing flight recorder file. To allow the flight recorder to be triggered again without restarting the engine, call the ResetFlightRecorder function.

Flight Recorder Time Stamp

Variable Name:

flightRecorderTimeStamp

Type:

bool

Default Value:

FALSE

Target:

System

This parameter determines whether the file name of the flight recorder data file should contain the date and time information of when the flight recorder was triggered. If this parameter is set to FALSE, the flight recorder data file will be overwritten each time the flight recorder is triggered (as the file name is the same). If this parameter is set to TRUE, the flight recorder data file name will become “[YYYY.MM.DD_HH.mm.SS]wmx_flight_recorder_ipt0.txt,” where YY = year, MM = month, DD = day, HH = hour in 24-hour format, mm = minute, and SS = second.

Collect Axis Flight Recorder Data

Variable Name:

collectAxisFlightRecorderData

Type:

bool

Default Value:

TRUE

Target:

Axis

This parameter determines whether the flight recorder data that is saved to disk should contain the position command and position feedback data for this axis. Only the axes that are in use should have this parameter enabled in order to reduce the file size of the flight recorder data. This parameter has no effect unless the Enable Flight Recorder parameter is set to TRUE.

Trigger Flight Recorder On Amp Alarm

Variable Name:

triggerFlightRecorderOnAmpAlarm

Type:

bool

Default Value:

TRUE

Target:

System

TRUE: The flight recorder will trigger when a servo amplifier alarm is detected in any axis (including axes that are not configured to collect flight recorder data).

FALSE: The flight recorder will not be triggered by amp alarms.