On 3 May 2016 at 13:56, Nicklas Karlsson <[email protected]> wrote:

> Yes you are correct.

No, actually, I am wrong.

I just checked the source and the manual page is incorrect.

https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/components/pwmgen.c#L503

adit: The pwm frequency _is_ settable as a HAL pin, you _can_ just net
the PyVCP pin to the frequency.

The only wierdness is that the change that swapped a lot of HAL
parameters to HAL pins defined the pins as the HAL_IO type, ie
bidirectional pins. (I think this was a mistake)
This means that you need to use an extra HAL component between the
PyVCP pin and the pwmgen pin:
http://linuxcnc.org/docs/2.7/html/man/man9/tristate_float.9.html
The tristate component is probably not actually intended for this
application, but it works.

-- 
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

Reply via email to