LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Playing a sound

Solved!
Go to solution

When I play the sound file using the inbuilt speaker in the laptop, it shows the error code 4803 and display the message "The sound driver or card cannot accommodate the specified configuration". Is anyone know the reason?

sound_error.png

0 Kudos
Message 1 of 4
(3,793 Views)
Solution
Accepted by topic author navin0808

Probably because you're trying to output a sound with a sample time of 1/7Hz, sound is normally sampled at frequencies like 44kHz. Your dt needs to be something that's valid for the sound device, would be my guess.

 

If you double-click on the express VI, it should show you the 'device capabilities' which will tell you the minimum and maximum sampling rate (in Hz, use the reciprocal to get the dt) of the waveform.

 

Try using the 'load sound file' or generate waveform VI to create a valid sound waveform. 

 

For my sound device, the minimum frequency is 100Hz (dt = 0.01s):

2015-11-02_11-52-24.png


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 4
(3,776 Views)

Hi,

 

Thanks for your reply.

 

Do you know how to record and save the sound file?

0 Kudos
Message 3 of 4
(3,722 Views)

Hi navin,

 

have you tried to find suitable example VIs in the example finder? I'm sure LabVIEW comes with examples on how to use the sound functions…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(3,708 Views)