LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Sound vi bug

Hi Everyone,

have found a bug in the labview sound vi's. It is quite a complicated one to explain, but here is my configuration first.
I have a dell precision 390, with a built in sound card on the mother board which uses a "SigmaTel High Definition Audio CODEC controller", I also have a PCI sound card installed in PCI slot 5, a M-Audio Delta 1010LT. The M-Audio card is set in windows xp as the default sound card.

When I open labview (8.5) and run a little labview program I made to control the sound card (soundTest.vi attached), the program runs but no sound is produced. In fact, the program tells me that the sound card is playing (even though no sound is being produced), and because of the nature of the program it just loops continuously forever (until I hit it with the hammer of the "Abort Execution" button). (Note: The sound card is configured properly using its control panel, and the device ID is the correct one. Also windows tells me that there are no device conflicts. And before starting the labview program, windows is able to play sounds using the sound card. Once I have run this vi and stopped it though, windows is no longer able to make any sounds.)

Now here is the funny part. If I close labview completely (the sound card resource is returned to windows control), and I open in windows the Device manager, and disable the SigmaTel CODEC (the onboard card), then Open labview, run the soundTest.vi once (it still doesn't work) and Abort it, then (without closing labview) Enable the SigmaTel CODEC in device manager, and then rerun the soundTest.vi I get an Error message (below), but then if I run it a second time the soundTest.vi program works correctly!

If I close Labview, I have to redo this sequence to get the vi to work again. Also if I restart the computer I have to do that too. I went through many other sequences of doing things to try to get the vi to work, but this precise sequence was the ONLY way to make it work. (I also tried disabling the internal sound card through the BIOS, but that didn't work.)

It's quite annoying to do that everytime you restart labview, and also it took me a whole day to find that sequence to made the vi work!

Does anyone know of a better fix than my one?

Thanks,
Paul.

p.s. The error message was: Error 4800 occured at sound output configure.vi. Resean, Labview: (Hex 0x12C0) Selected Device is Invalid.
0 Kudos
Message 1 of 11
(11,028 Views)
The attachment was in a library, I am not sure if that will course any problems in running it. So here it is again, taken out of the libraries.
0 Kudos
Message 2 of 11
(11,029 Views)
Hello,

I tried it on the same computer and I was not able to reproduce the error you are seeing.

If you take the PCI card out, and reboot your computer, does the program work right away?
It may be a driver conflict between both of your cards.

Which card are you ultimately trying to use with your program?




Kameralina

0 Kudos
Message 3 of 11
(10,988 Views)
Hi there,

I thought it would be quite hard to reproduce this error.
I would like to use the program with the M-Audio card. Because it has multiple channels labview uses multiple ID's for each pair of channels. I am using channels 1, and 2, which has a device ID of 0.
If I want to use the M-Audio sound card I have to go through the procedure above. However, if I use the integrated sound card, the program works straight away with no problems. However, as soon as I change the device ID to the M-Audio card, the program doesn't work and I have to go through the above procedure to make it work.

So in answer to your question, it doesn't really matter whether the PCI card is taken out, since the integrated sound card always works with that program. I only have problems with the M-Audio PCI card. Also as I wrote previously, if I disable the integrated sound card from the BIOS, and reboot, the problem remains, and I haven't found a way to make the M-Audio card work with labview in that situation.

Windows tells me that I have no driver conflicts. It says that both card are functioning normally, and indeed windows is able to use either sound card with no problem, its just labview that has the issue with the PCI card.

paul
0 Kudos
Message 4 of 11
(10,971 Views)
Hi labJunky,
 
LabVIEW uses DirectX to access the board. Make sure you have the most up to date version of DirectX and device drivers.
This may help in resolving the problem.
 
Also, try and see if Generate Sound.vi in the example finder works.
Aashish M
CEO
TransferFi
www.transferfi.com
0 Kudos
Message 5 of 11
(10,945 Views)
Hi there,

I have directX 10 and the latest device drivers already installed.
I get the same behaviour with the Labview 8.5 example program Generate sound.vi. Also with the express vi.
0 Kudos
Message 6 of 11
(10,915 Views)
Hello,

Instead of going into the Windows' Device Manager to change your default audio card, you should probably leave the settings as they are and work on choosing the card from within the LabVIEW program.

You can also go to Start » Run...  and type "dxdiag" to access your DirectX Diagnostics and double check your devices.
You can also get a list of the devices installed on your computer using the VI in this forum post.

I hope that this helps!
Have a great day!

Kameralina

0 Kudos
Message 7 of 11
(10,892 Views)
Hi there,

Yes the problem is accessing the MAudio device in Labview. It lists it as device ID 1-5 (there are 10 output channels). But I can not get it to play anything unless I go through the procedure mentioned in my first post.

Only labview has a problem accessing the device. All the normal windows program work fine with it. And the diagnostic tell me its working properly.

So its really only labview that has a problem with the MAudio sound card.

paul
0 Kudos
Message 8 of 11
(10,841 Views)
Hello,

Since you have a sound card that works fine according to the Windows & DirectX diagnostic tools, I suggest that you try another method for outputting sound on this card.  Try using Active X invoke nodes instead.  You can find some info in a tutorial form here.

Good luck!


Kameralina

0 Kudos
Message 9 of 11
(10,798 Views)

Hi Everyone,

i know this is a late responce but I had a simular problem today. I use a m-audio delta 44 for sound output and measurement. My application crashed every time I use the soundcard. The problem comes from the lvsound2.dll. This dll is located in 'National Instruments\LabVIEW 8.5\resource'.

I replaced this dll with the lvsound2.dll from LabView 8.2.1 and voilá my problem is fixed.

I hope this will help you to fix your problem.

0 Kudos
Message 10 of 11
(10,638 Views)