LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 789
Downloads : 2 times
PDF Size : 572.7 KiB

Summary of Contents

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

  • Chapter 2Extensions to LabVIEW© National Instruments Corporation2-5LabVIEW LEGO MINDSTORMS NXT ModuleSensorTypeU8Read-writeOptionalLegal values:This property specifies the sensor type for this port. The sensor type primarily affects scaling factors used to calculate the normalized sensor value, but some values have other side effects.If you write to this property, also write a value of TRUE to the InvalidData property.Unlike the Legacy firmware, no default sensor modes are associated with each sensor type.1ValueEnumDescription0x00NO_SENSORNo sensor configured0x01SWITCHNXT or Legacy1 touch sensor0x02TEMPERATURELegacy temperature sensor0x03REFLECTIONLegacylight sensor0x04ANGLELegacy rotation sensor0x05LIGHT_ACTIVENXT light sensor with floodlight enabled0x06LIGHT_INACTIVENXT light sensor with floodlight disabled0x07SOUND_DBNXT sound sensor; dB scaling0x08 SOUND_DBANXT sound sensor; dBA scaling0x09 CUSTOMUnused0x0A LOWSPEEDI2C digital sensor0x0B LOWSPEED_9VI2C digital sensor; 9V power0x0C HIGHSPEEDUnused0x0DCOLORFULLNXT color sensor in color detector mode0x0ECOLORREDNXT color sensor in light sensor mode with red light0x0FCOLORGREENNXT color sensor in light sensor mode with green light0x10COLORBLUENXT color sensor in light sensor mode with blue light0x11COLORNONENXT color sensor in light sensor mode with no light1 Legacy refers to the RCX programmable controller used in previous versions of LEGO MINDSTORMS.