LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous audio output with varying volume or frequency

Quick explanation of what i am trying to do -

I need a continuous audio tone with either variable volume and/or frequency (preferably the latter) depending on either a slider position or an analog input. I have looked at some of the sound examples in LV 6 but none seem to be able to output a continous tone.

I can vary the frequency and volume of a single tone (in a similar fashion to that outlined in the Phone Simulation VI).

Reason for the above -

I need to be able to allow humans to detect when their movement is away from a preset value using audio feedback.

If anyone has any solutions to the above question they would be much appreciated.

Regards Ross
0 Kudos
Message 1 of 8
(5,062 Views)
The attached example generates a continuous audio tone with amplitude and frequency controls. I hope this helps.
0 Kudos
Message 2 of 8
(5,063 Views)
Toddd

Thanks for the VI, it does almost exactly what i want.

The only problem is how quick the changes appear on the soundcard, is this inherent to labview or can i change any of the variables in the back-panel to alter this speed?

Regards, and thanks again!

Ross
0 Kudos
Message 3 of 8
(5,062 Views)
Unfortunately, that depends on the speed of your system. There is a 100 ms. delay in the block diagram of the VI. You could get rid of that.
0 Kudos
Message 4 of 8
(5,062 Views)
Todd,

As a veteran of engineering I can remember those days we had these boxes called 'generator'. When turning
on one of the knobs ie the frequency swept to the new one without any additional noise.
All these software solutions add a step to the output because the update of the curve is at anytime and so
we do not have a smooth curve anymore - any ideas around how to save this ?

Urs

toddd schrieb:

> The attached example generates a continuous audio tone with amplitude
> and frequency controls. I hope this helps.
>
> ----------------------------------------------------------------------------------------------------
> Name: Make_Tones.vi
> Make_Tones.vi Type: LabVIEW Instrument (application/x-unknown-content-type-LabVIEWI
nstrument)
> Encoding: base64
> Description: Continous Generation Example
Message 5 of 8
(5,062 Views)
Maybe another solution is using the internal PC-speaker. Here is a demo and the vi itself I draw some years ago.
Warning: Will not work on modern windows OS and because it uses in/outport.vi it is not politically correct, but it works.

Greetings,

Patrick de Boevere
Serenity systems design
Download All
0 Kudos
Message 6 of 8
(5,062 Views)
How can I get a copy of this vi? I've been trying to do some frequency
sweep testing and having trouble getting it to work. Also tried white
noise testing for frequency response but not having much luck with
that either. Would like to see this as an example.

Using LV4 - may not be able to view anything saved with a later
version, but may be able to get a viewer from the Ni website.

Thanks.

On Thu, 3 Oct 2002 12:53:20 -0500 (CDT), toddd wrote:

>Unfortunately, that depends on the speed of your system. There is a
>100 ms. delay in the block diagram of the VI. You could get rid of
>that.

48k and I need a cable modem badly!!!!!
0 Kudos
Message 7 of 8
(5,062 Views)
Hi,
i am a beginer in Labview. I need to record thru analog input channels and at the same time i need to give some audio output which need to be recorded in one of the other channels. I need to give audio with random delay and i need to record to use as a reference for event marker.
Can you plz help me in this regard
here I am attaching my VI file. Can you plz help me in giving a random audio beep and record that.

thanks
0 Kudos
Message 8 of 8
(4,950 Views)