Documentation

lgmode

Type definition for logging options structure

Syntax

typedef struct {
   int    mode;
   double incrementvalue;
} lgmode;

Fields

mode

This value indicates the type of logging you want. Specify LGMOD_TIME for time-equidistant logging. Specify LGMOD_VALUE for value-equidistant logging.

incrementvalue

If you set mode to LGMOD_VALUE for value-equidistant data, this option specifies the increment (difference in amplitude) value between logged data points. A data point is logged only when an output signal or a state changes by incrementvalue.

If you set mode to LGMOD_TIME, incrementvalue is ignored.

Description

The lgmode structure specifies data logging options. The mode variable accepts either the numeric values 0 or 1 or their equivalent constants LGMOD_TIME or LGMOD_VALUE from xpcapiconst.h.

Introduced before R2006a

Was this topic helpful?