On 3 May 2016 at 12:18, adit bhargava <[email protected]> wrote: > Hello All, > Please let me know how can I set the values of 'Signal frequency' to PWMGEN > from my AXIS EMC GUI ?I changed the 'Intervallcontrol.xml' to add the options > in GUI for 'Signal Frequency'. > I need to use this value to calculate the DUTY-CYCLE and then assign it to > run my software PWMGEN.
PWM frequency is a parameter rather than a HAL pin, so it can't be directly linked to a PyVCP output pin. (It is very unusual to want to change the PWM base frequency when the system is running). I think that the only way to do this would be to use GladeVCP and have an action linked to a Python block that issues a halcmd command. (and I don't know if that is even possible) You can probably run the command you want (halcmd setp pwmgen.0.pwm-frequency 1000 for example) with the Python subprocess. http://linuxcnc.org/docs/2.7/html/man/man1/halcmd.1.html http://www.bogotobogo.com/python/python_subprocess_module.php -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
