LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 747
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-60ni.comSound Playback MethodsUse the sound playback methods to control the sound module on the NXT brick.NXTSoundPlayFileParameters:This system call method starts playback of the sound file specified by Filename. The file must be a valid RSO-format sound file (the LEGO standard sound file format).Set Loop? to TRUE to loop playback automatically and indefinitely without further system call methods.The integer values for Volume correspond to the following behaviors:ParameterData CodeI/O DirectionDescriptionStatus CodeI8outputUnusedFilenamestringinputMaximum of 19 characters (15.3 filename)Loop?BooleaninputSet to TRUE to enable automatic looping of sound fileVolumeU8inputVolume of playback: [0, 4]Integer ValueValue Description0Sound playback disabled125% of full volume250% of full volume375% of full volume4100% of full volume