LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a finite audio sample

I need to create a VI that can generate a certain frequency in bursts. The burst length and pause length must be user selectable which is easy, but I cannot seem to create this burst of sound.
0 Kudos
Message 1 of 4
(2,900 Views)
Hello Moose123,
 
Are you trying to output the bursts to the speakers.  If so, there are sound VI's that will allow you to do that (Express >> Output>>Play Waveform).  You also must make sure the frequencies are within audible range 40Hz-10KHz. 
 
Hope this helps,
 
Benjamin Cook
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,898 Views)
this helps part of the problem, but the other part is to generate this waveform. I need to generate a burst of sound, but have pauses in between.
0 Kudos
Message 3 of 4
(2,896 Views)
Hello,
 
My suggestion would be to make a state machine that alternates between a wait state, and sound generation state.  See the below documentation on state machines using labview.
 
 
In the sound generation state, you can attach any finite waveform you have created (see the Generate Sound.vi example in the labview example finder [ help >> find examples ] )
 
Regards,
 
Benjamin Cook
Applications Engineering
National Instruments
 
0 Kudos
Message 4 of 4
(2,887 Views)