LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to use internal PC speakers

When my pc starts up it makes fun beeps at POST. I'd like to use those same speakers. I found this article:
Use the Beep VI with the Internal PC Speaker

 

I tried it out beep_pc_speaker_lv821.vi and it still played on my PC speakers (my USB headphones to be specific). Is this something that broke in some version of Windows? If so, can someone from NI update the article and does that mean there's no other way to play a sound on those internal speakers?

0 Kudos
Message 1 of 13
(1,365 Views)

I believe that Microsoft Windows 3.1 (and 95 too) used to have a sound driver that would redirect sound output to the internal PC speaker. It was a very crude way of making sound as the PC speaker is simply driven by a single digital line, and for the voltage integration to smooth the edges of that rectangle signal, it more or less simply relied on the limited current drive capability of the digital output and the magnetic impedance of the speaker. And that digital line is simply the output of a programmable counter, which for compatibility reason is still in many PCs nowadays (well integrated in the chipset of course).

 

To make music you basically have to somehow convert the frequency signal into an interval value and then reprogram that timer continuously. This was when a SoundBlaster card was a pretty expensive and seldom present device in most computers, so being able to somehow make (tinny sounding) music was better than nothing at all. I'm not aware that Window NT and newer systems ever had such an emulation sound driver, so what you remember may be old Windows 95/98 times (if you are old enough for that) or wild cowboy stories from other users, from times where you had to be a "real" man to operate a computer, not an online junkie. 🙂

 

In labtops, which all have integrated sound hardware and a real speaker nowaday, the opposite is actually happening. That Beep sound is simply simulated through the real hardware sound rather than driving a digitally controlled speaker.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 13
(1,328 Views)

Just to be clear, I'm not trying to generate waveforms. This is for an ATE like system where I want to notify the operator (This is just one of a couple methods of getting through to them). The speaker inside the tower is harder to accidentally unplug.

0 Kudos
Message 3 of 13
(1,295 Views)

@nanocyte wrote:

Just to be clear, I'm not trying to generate waveforms. This is for an ATE like system where I want to notify the operator (This is just one of a couple methods of getting through to them). The speaker inside the tower is harder to accidentally unplug.


That was fairly clear to me. But the Multimedia functions that the Sound VIs access, simply do not have a driver anymore that could send the sound to that speaker as far as I know.

 

But maybe this can help: https://www.computerhope.com/issues/ch000725.htm.

 

With that enabled (if your motherboard allows that) you might be able to use the good old Beep function again.

 

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 13
(1,278 Views)

If we're at the point it's not supported by Windows, I guess I'm just asking for an update to the doc I posted above which does not reflect our new beeperless reality.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MXsSAM&l=en-US

0 Kudos
Message 5 of 13
(1,268 Views)

Did you try to test if you can enable your internal PC speaker by making the hidden Non Plug and Play devices visible? I only have notebooks available so I can't test it myself.

 

As to updating that document, it might be helpful to mention that you have to enable that nowadays. But then I also think that Microsoft would be happy if they could eventually remove that capability entirely and therefore are trying to keep a low profile on it. That way in a few years when Windows 12 is released they can finally just drop that feature and point at their telemetry data of the last few years, saying it was never getting used anyhow and saving 50kB of software drivers in a 32GB install is an achievement. 😁

Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 13
(1,256 Views)

@nanocyte wrote:

If we're at the point it's not supported by Windows, I guess I'm just asking for an update to the doc I posted above which does not reflect our new beeperless reality.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MXsSAM&l=en-US


Not just windows, motherboards seem to come without those speakers. I wouldn't be surprised if a new tower PCs wouldn't have one.

0 Kudos
Message 7 of 13
(1,244 Views)

wiebe@CARYA wrote:

@nanocyte wrote:

If we're at the point it's not supported by Windows, I guess I'm just asking for an update to the doc I posted above which does not reflect our new beeperless reality.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MXsSAM&l=en-US


Not just windows, motherboards seem to come without those speakers. I wouldn't be surprised if a new tower PCs wouldn't have one.


I think they come with a terminal for your beep speakers (as opposed to onboard sound card connectors), but most cases do not have the speaker, itself; I had to scavenge an old pre-2000 case to find one to add to my computer.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 13
(1,227 Views)

@billko wrote:

wiebe@CARYA wrote:

@nanocyte wrote:

If we're at the point it's not supported by Windows, I guess I'm just asking for an update to the doc I posted above which does not reflect our new beeperless reality.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MXsSAM&l=en-US


Not just windows, motherboards seem to come without those speakers. I wouldn't be surprised if a new tower PCs wouldn't have one.


I think they come with a terminal for your beep speakers (as opposed to onboard sound card connectors), but most cases do not have the speaker, itself; I had to scavenge an old pre-2000 case to find one to add to my computer.


Yes, the terminals are still there.

 

My ~2000 PC used to speak over the PC speaker if no keyboard was connected. Something like "no keyboard connected" (I guess, it was hard to understand).

 

Startled me quite a bit the first time, I though it was a virus (or demon) or something. Took a while to figure it out as well.

Message 10 of 13
(1,221 Views)