Re: [Emc-users] python hal component multiple instances

2023-09-18 Thread Thomas J Powderly
Thx Andy correct, the '--userspace' is not needed for .comp file for a good example the pokeys.comp  was useful I have not figured out how to do similar with python _and_ get multiple instances/personalities I only get 1 instance so far The .comp solution works for me thx tomp On 9/18/23

Re: [Emc-users] python hal component multiple instances

2023-09-18 Thread andy pugh
On Sat, 16 Sept 2023 at 11:17, Thomas J Powderly wrote: > > I see the question is wrong I thought it must be, you don't use halcompile with a Python HAL component: http://linuxcnc.org/docs/stable/html/hal/halmodule.html Using .comp (C) I think that "option userspace" is sufficient, I don't _thin

Re: [Emc-users] python hal component multiple instances

2023-09-16 Thread Thomas J Powderly
aha! i need ti specify user space twice once inside the code     option userspace; and again in the compilation     halconpile --install --userspace mycomp.comp and the enumeration is automagic with, say:   loadusr mycomp count=3 thx tomp ___

Re: [Emc-users] python hal component multiple instances

2023-09-16 Thread Thomas J Powderly
I see the question is wrong The Q really should be... Why does sudo halcompile --install --userspace anycomp.comp yield an RT comp? ( at least one requiring loadrt vs loadusr) ? // the Q is really how to halcompile a python userspace comp // becuz the --userspace is ignored and an rt comp

[Emc-users] python hal component multiple instances

2023-09-16 Thread Thomas J Powderly
Hello Is it possible to have multiple instances of a python comp? Any example code? Thanks TomP ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users