MAP_GetInputModule

Reads the IO map of the input module

Contents

Syntax

map = MAP_GetInputModule(port)

Description

map = MAP_GetInputModule(port) returns the IO map of the input module at the given sensor port. The sensor port can be addressed by SENSOR_1, SENSOR_2, SENSOR_3, SENSOR_4 and 'all'. The return value map is a struct variable or cell array ('all' mode). It contains all input module information.

Output:

map.CustomZeroOffset % custom sensor zero offset value of a sensor.

map.ADRaw % raw 10-bit value last read from the ananlog to digital converter. Raw values produced by sensors typically cover some subset of the full 10-bit range.

map.SensorRaw % raw sensor value

map.SensorValue % tacho/angle limit, 0 means none set

map.SensorType % sensor value

map.SensorMode % sensor mode

map.SensorBoolean % boolean sensor value

map.DigiPinsDir % digital pins direction value of a sensor

map.DigiPinsIn % digital pins status value of a sensor ?

map.DigiPinsOut % digital pins output level value of a sensor

map.CustomPctFullScale % custom sensor percent full scale value of the sensor.

map.CustomActiveStatus % custom sensor active status value of the sensor

map.InvalidData % value of the InvalidData flag of the sensor

Examples

   map = MAP_GetInputModule(SENSOR_2);
   map = MAP_GetInputModule('all');

See also

NXT_ReadIOMap,

Signature