LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 844
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-23LabVIEW LEGO MINDSTORMS NXT ModuleModeU8NXTOutput: read-writeNXTOutputMulti: write-onlyOptionalBitfield including any combination of the following flag bits:This property is an unsigned byte bitfield with zero or more mode bits set. Clearing all bits with a Mode value of 0x00 is considered COAST mode; motors connected to the specified port(s) will rotate freely.You must set the MOTORON bit for the NXT firmware to provide any power to the specified output port(s). Power is provided as a PWM waveform modulated by the Power property.The BRAKE bit enables application of electronic braking to the circuit. Braking in this sense means that the output voltage is not allowed to float between active PWM pulses. Electronic braking improves the accuracy of motor output, but uses slightly more battery power.You must use the REGULATED bit in conjunction with the RegMode property. Refer to the 41,RegMode section for more information about using the REGULATED bit with the RegMode property. You must set the UPDATE_MODE bit in the UpdateFlags bitfield to commit changes to the Mode property.ValueEnumDescription0x01MOTORONEnables PWM power to port(s) according to value of the Power property0x02BRAKEApplies electronic braking to port(s)0x04REGULATEDEnables active power regulation according to value of RegMode (interactive motors only)