LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 795
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-10ni.comInvalidDataBooleanRead-writeOptionalLegal values: TRUE, FALSEThis property signifies that the values of Raw, Normalized, and Scaled might be invalid due to sensor configuration changes that the NXT firmware has not processed yet. For example, the NXT firmware might not have processed the sensor type or mode changes immediately due to hardware limitations.In all cases where you change SensorType or SensorMode, use the InvalidData property to ensure that the next value you read back has been properly processed. Set InvalidData to TRUE in the same Property Node as you use to set SensorType and SensorMode, and then write a while loop that does not exit until InvalidData becomes FALSE. At that point, the Normalized and Scaled properties will return valid values for the new configuration.