From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading multiple soundcards

Hi every body

 

I want to read three different soundcards simultaneously by LabVIEW. Is it possible and with which VI?

I tried to use three sound configuration input VI and open three soundcards VI simultaneously, but LabVIEW only open one of them and the others gave error.

Do anybody have any idea?

 

Thanks

0 Kudos
Message 1 of 2
(2,064 Views)

The sound config VI calls an NI dll - look inside the VI at the call library function node at the dll. As the VI is not re-entrant you will only be able to access this dll from 1 VI at a time. What you need is multiple VIs, calling multiple DLLs (copy the NI dll into different places on your pc and rename it, then specify the DLL name to the call library function node by path.)

 

If using multiple DLLs (you may need to copy more than just this DLL) does not work, you may find yourself limited by DirectX (reading the Context help, these VIs need DirectX)

 

You sould be able to get this to work, its just a question of how badly you want it and how much effort it's going to be! (if you find DirectX your next bottleneck you will need to do more digging)

 

3 non-renetrant VIs all calling different copies of the DLL by path shoudl get you further than you are now!

 

James

 

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 2 of 2
(2,047 Views)