LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 770
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-11LabVIEW LEGO MINDSTORMS NXT ModuleNXTColorSensorReadReturn Value:This system call method returns the value of the color sensor and accommodates the RGB data format.NoteThis system call method is different from others in that it returns an array of values.This method can return the following non-zero status code:ParameterData CodeI/O DirectionDescriptionPortU8inputPort, [0–3]SensorValueU8outputDetected color number, [1–black, 2–blue, 3–green, 4–yellow, 5–red, 6–white]RawU16outputReturns the10-bit value last read from the analog to digital converter on this specified port. as an array of red, green, and blue dataNormalizedU16outputReturns a 10-bit sensor reading scaled according to the current value of the SensorType property on the specified port as an array of red, green, and blue dataScaledI16outputReturns a sensor reading as an array of red, green, and blue data, scaled according to the current sensor type and mode on the specified portInvalid Data?BooleanoutputSignifies whether the values of Raw, Normalized, and Scaled might be invalid due to sensor configuration changesStatus CodeEnumDescription–320xE0ERR_COMM_CHAN_NOT_READYSpecified port is not properly configured