LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 820
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-21LabVIEW LEGO MINDSTORMS NXT ModuleUpdateFlagsU8NXTOutput: read-writeNXTOutputMulti: write-onlyOptionalBitfield including any combination of the following flag bits:This property is an unsigned byte bitfield with zero or more of the bit values above set.You can use UPDATE_MODE, UPDATE_SPEED, UPDATE_TACHO_LIMIT, and UPDATE_PID_VALUES in conjunction with other properties to commit changes to the internal state of the NXT firmware module. You must set the appropriate flags after setting one or more of these properties before the changes actually take affect. For example, write a value of 0x03 (UPDATE_MODE | UPDATE_SPEED) to UpdateFlags immediately after you write new values to the Mode and Power properties.The reset flags are independent of other properties and automatically reset the rotation value to zero when used.ValueEnumDescription0x01UPDATE_MODECommits changes to the Mode property0x02UPDATE_SPEEDCommits changes to the Power property0x04UPDATE_TACHO_LIMITCommits changes to the TachoLimit property (interactive motors only)0x08UPDATE_RESET_COUNTResets internal movement counters and cancels current goal (interactive motors only)0x10UPDATE_PID_VALUESCommits changes to PID regulation parameters RegPValue, RegIValue, and/or RegDValue (interactive motors only)0x20UPDATE_RESET_BLOCK_COUNTResets block-relative position counter (interactive motors only)0x40UPDATE_RESET_ROTATION_COUNTResets program-relative position counter (interactive motors only)