LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 824
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-27LabVIEW LEGO MINDSTORMS NXT ModulePowerI8NXTOutput: read-writeNXTOutputMulti: write-onlyOptionalLegal value range: [–100, 100]This property specifies the power level set-point for the specified port(s).The absolute value of Power is used as a percentage of the full power capabilities of the motor.The sign of Power specifies rotation direction. Positive values for Power instruct the firmware to turn the motor forward, while negative values instruct the firmware to turn the motor backward. Forward and backward are relative to a standard orientation for a particular type of motor.NoteDirection is not a meaningful concept for outputs like lamps. Lamps are only affected by the absolute value of Power.You must set some other properties appropriately for the Power setpoint to have the desired effect. Use the following guidelines when setting this property:•Mode bitfield must include MOTORON bit. BRAKE bit is optional.•RunState must be set to a non-IDLE value.You must set the UPDATE_SPEED bit in the UpdateFlags bitfield to commit changes to the Power property.