LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 801
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-61LabVIEW LEGO MINDSTORMS NXT ModuleNXTSoundPlayToneParameters:This system call method starts playback of a tone specified by Frequency (Hz) and Duration (ms).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 CodeI8outputUnusedFrequencyU16inputFrequency of tone in HertzDurationU16inputDuration of tone in millisecondsLoop?BooleaninputSet to TRUE to enable automatic looping of toneVolumeU8inputVolume of playback: [0, 4]Integer ValueValue Description0Sound playback disabled125% of full volume250% of full volume375% of full volume4100% of full volume