Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Raychar on November 08, 2016, 05:46:39 AM
-
Hello, everybody,
Want to write V.B script in Mach3 environment to have ‘beep‘ sound from the computer. Is it possible and how is it?
Thanks,
-
Not sure about the beep but i think you can make it play a .WAV audio file.
-
I checked Mach3 Vx Marco Prog. Ref pdf document, but nothing found about it!
I just want to save an output I/O line which is used to operate an added buzzer hardware...
Thanks,
-
From the Cypress Enable Language Reference...
The command Beep
Sounds a tone through the computer's speaker. The frequency and duration of the beep depends on hardware, which may vary among computers.
Tweakie.
-
Thanks,
But it still doesn't work, maybe the computer‘s speaker problem or its connection problem! I need to take time to repair it...
-
PlayWave
Page 60
http://www.machsupport.com/wp-content/uploads/2013/02/Mach3_V3.x_Macro_Prog_Ref.pdf
-
Most pc's beep when they boot up - does it do this?
If not maybe your speaker is dead or the connector has popped off the board.
-
No, it doesn't.
It is a second hand desktop. I haven't yet opened it up to check. In my memory of the old stuff desktop, there were a whole bundle of wires. If there were any of them disconnected, it was difficult to figure out which one went to which jumper post pin...!
Thanks,
-
The speaker is usually just two wires, they usually go to a post pair marked "spkr"
They do get knocked or left off easily.
:)
-
If it’s any help, with almost all of the PC’s I have owned speakers have had to be connected to the sound card to enable the V.B. (Cypress Enable) ‘Beep’ to be heard.
However, my present PC has it’s integrated sound card set-up to play any sound file (.wav, etc.) through it’s small internal speaker (until such time as a jack is inserted into the ‘speaker out’ when all audio is then routed to an external sound system).
With this set-up the V.B. (Cypress Enable) ‘Beep’ command (actual sound determined by Windows system sounds) is heard without any external speakers (My PC has SoundMAX Integrated Digital HD Audio).
Tweakie.
-
try the following in CB
Shell "echo " & Chr(7), 2
-
Shell "echo " & Chr(7), 2
For me it does nothing other than report the error...
Error on line: # - File not found.
Tweakie.
-
what flavor windoze Tweakie? I'm on XP here.
-
This PC is Win10 Pro.
Tweakie.
-
Can you run a cmd window and type:
<Ctrl>G<return>
does that beep?
-
It does Beep but I suspect that it is only error notification of '' is not recognized as an internal or external command, operable program or batch file.
Tweakie.
n.b. Shell "calc " & Chr(7), 2 opens the calculator so the Shell command performs OK it just baulks at echo.
-
OK - but at least that shows the beep capability is there.
In the cmd window type:
help
you should get a list of all the internal commands - is echo in there?
alternatively you could just try:
echo <Ctrl>G<return>
if not - it looks like echo is not an internal command in W10
-
Thanks everybody for the advice....