LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 843
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-62ni.comNXTSoundGetStateParameters:This system call method reads the internal state and flags of the sound module of the NXT brick. If Flags is non-zero, the sound module has playback operations pending or in progress. Normally, you can ignore the return value.The return value might report the following values:Flags might report the following values:ParameterData CodeI/O DirectionDirectionStateU8outputSound module stateFlagsU8outputBitfield of sound module flagsValueEnumDescription0x00SOUND_IDLESound module is idle, but there might be a pending request to playback sound0x02SOUND_FILESound module is playing an RSO file0x03SOUND_TONESound module is playing a tone0x04SOUND_STOPRequest to stop playback in progressValueEnumDescription0x00SOUND_FLAGS_IDLENo flags set; sound module is completely idle0x01SOUND_FLAGS_UPDATEA request for playback is pending0x02SOUND_FLAGS_RUNNINGPlayback in progress