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.
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.
02-22-2009 05:48 PM
Hi,
I am using the play waveform VI to test a USB Headset by sending a tone to the device. The problem we have is that when we unplug the device and plug it back in again the Play Waveform VI returns a error of Invalid Device when we try to send a tone. The only way we have found to get things working again is to completly close Labview and restart it. Right now we are able to close and reopen Labview between testing devices but there must be a better way to get this working? The odd thing is that we are using the Aquire Sound VI as well to test the device and it does not have this same issue. Both are calling functions within the same dll "lvsound2". Any ideas would be appreciated. Thanks
Scott
02-23-2009 10:57 PM
Hi Scott,
What error are you getting specifically (error number)? What version of LabVIEW and operating system are you using? It is interesting that the Acquire Sound VI is not giving and error either. It appears that other users have experience similar issues. Check out this forum post:
http://forums.ni.com/ni/board/message?board.id=170&message.id=377513&requireLogin=False
02-23-2009 11:59 PM
Actually, SGC posted there as well.
The explanation there is correct -- once you unplug it, the ID is no longer valid. When you plug it back in, it will get a new ID. You can find it in the manner described in the thread Josh linked. I've done it. It works.
-Matt
02-24-2009 09:41 AM - edited 02-24-2009 09:41 AM
02-24-2009 05:21 PM
02-26-2009 10:59 AM
Hello SGC,
As far as I know, there is no artificial limit on the device number within LabVIEW.
How did you eventually fix the original issue? I want to confirm that all of the USB headsets are plugged into the computer before starting LabVIEW and you have the correct ID #s for each of them. The ID #s can be found on the Play Waveform Express VI configuration window (within the red circle of the posted .png).
Is there any other information about the current setup that you can share with the community?