Hello Guest it is September 21, 2021, 03:27:55 PM

Author Topic: Mach4 Quicky #1 Adding Sound  (Read 2686 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

  •  761 761
  • DazTheGas
    • View Profile
Mach4 Quicky #1 Adding Sound
« on: September 28, 2015, 12:18:24 PM »
A little snippet to add sound in mach4


Handy to add into your functions for warnings.....

local logoff = wx.wxSound('C:\\Mach4Hobby\\Sounds\\logoff.wav',0)


Theres always time for a choccy biccy
Re: Mach4 Quicky #1 Adding Sound
« Reply #1 on: October 28, 2015, 09:32:49 PM »
Hey DazTheGas... thanks for the info on using wav files in Mach4... followed your example and have added sound to several buttons.

I have a problem I hope you can point me in the right direction on... One of my biggest uses of sound in Mach 3 was when I zero'd my axi (is that a word?) using my shuttle pro. When I'm at the workpiece positioning the spindle using the Shuttle I can't see the Mach screen, when I zero the axis I would hear the ding in Mach 3 and know it had zero'd, Mach 4 does not do this so I have to return to the display each time to insure that it took the command from the shuttle. I've set up the zero buttons on my Mach screen to play a wav when they are used to zero the axis but I haven't been able to figure out how to get it to play a wav when the shuttle zeros it. Any suggestions would be appreciated.
Hit the e-stop! Hit the e-stop!