LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

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

Summary of Contents

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

  • Chapter 2Extensions to LabVIEWLabVIEW LEGO MINDSTORMS NXT Module2-6ni.comSensorModeU8Read-writeOptionalLegal values:This property specifies the sensor mode for this port. The sensor mode affects the scaled value, which the NXT firmware calculates depending on the sensor type and sensor mode.If you write to this property, also write a value of TRUE to the InvalidData property.ValueEnumDescription0x00RAWMODEReport scaled value equal to raw value.0x20BOOLEANMODEReport scaled value as one (TRUE) or zero (FALSE). Readings are FALSE if raw value exceeds 55% of total range; readings are TRUE if raw value is less than 45% of total range (inverse Boolean logic).0x40TRANSITIONCNTMODEReport scaled value as number of transitions between TRUE and FALSE.0x60PERIODCOUNTERMODEReport scaled value as number of transitions from FALSE to TRUE, then back to FALSE.0x80PCTFULLSCALEMODEReport scaled value as percentage of full scale reading for configured sensor type.0xA0CELSIUSMODEScale TEMPERATURE reading to degrees Celsius.0xC0FAHRENHEITMODEScale TEMPERATURE reading to degrees Fahrenheit.0xE0ANGLESTEPMODEReport scaled value as count of ticks on Legacy rotation sensor.