- Posts: 863
- Thank you received: 240
Multiswitch component, one button multiple outputs
14 years 10 months ago #15832
by ArcEye
Replied by ArcEye on topic Re:Multiswitch component, one button multiple outputs
Hi Andy,
Personalities and modparams are not something I have played with yet in .comp programming.
The components I have written have been either, only intended for use as singletons, or I have manually set params etc.
It didn't make complete sense until I expanded the macros and generated a C file.
You polish it and publish as your own, there is nothing in there of mine, save the concept, which is hardly unique.
regards
Personalities and modparams are not something I have played with yet in .comp programming.
The components I have written have been either, only intended for use as singletons, or I have manually set params etc.
It didn't make complete sense until I expanded the macros and generated a C file.
You polish it and publish as your own, there is nothing in there of mine, save the concept, which is hardly unique.
regards
Please Log in or Create an account to join the conversation.
14 years 10 months ago #15834
by andypugh
Replied by andypugh on topic Re:Multiswitch component, one button multiple outputs
ArcEye wrote:
Indeed. I am using at least two undocumented features there.
It is a pity that there is no way to omit "personality" from the auto-generated docs in cases where you are not using it (actually, it would also be nice to be able to alias "personality" to a modparam name of your choosing.
It didn't make complete sense until I expanded the macros and generated a C file.
Indeed. I am using at least two undocumented features there.
It is a pity that there is no way to omit "personality" from the auto-generated docs in cases where you are not using it (actually, it would also be nice to be able to alias "personality" to a modparam name of your choosing.
The following user(s) said Thank You: garylogan
Please Log in or Create an account to join the conversation.
14 years 10 months ago #15879
by fabworx
Replied by fabworx on topic Re:Multiswitch component, one button multiple outputs
where can i find other .comp files i need or2 and probably others not sure yet till i get hal to load past the or2 that i dont have.
Please Log in or Create an account to join the conversation.
14 years 10 months ago #15882
by Rick G
Replied by Rick G on topic Re:Multiswitch component, one button multiple outputs
You just need to load them with loadrt in your configuration file.
For example
loads 2 or2 components.
Some good reading...
linuxcnc.org/docs/2.4/HAL_User_Manual.pdf
Rick G
For example
loadrt or2 count=2
loads 2 or2 components.
Some good reading...
linuxcnc.org/docs/2.4/HAL_User_Manual.pdf
Rick G
Please Log in or Create an account to join the conversation.
14 years 10 months ago #15883
by ArcEye
Replied by ArcEye on topic Re:Multiswitch component, one button multiple outputs
Hi
Just to clarify, multiswitch is a custom component, just recently written, may or may not make it into a distribution.
To use it you need to download it from the link, compile and install it.
or2 and dozens of other components ARE part of the emc distribution, a full list of them linked to descriptions is here.
www.linuxcnc.org/docview/html/hal_components.html
You already have the compiled module in /usr/realtime-2.6.32-122-rtai/modules/emc2/or2.ko, you just need to to load and connect it in your .hal file, in accordance with whatever you are using it for.
regards
Just to clarify, multiswitch is a custom component, just recently written, may or may not make it into a distribution.
To use it you need to download it from the link, compile and install it.
or2 and dozens of other components ARE part of the emc distribution, a full list of them linked to descriptions is here.
www.linuxcnc.org/docview/html/hal_components.html
You already have the compiled module in /usr/realtime-2.6.32-122-rtai/modules/emc2/or2.ko, you just need to to load and connect it in your .hal file, in accordance with whatever you are using it for.
regards
Please Log in or Create an account to join the conversation.
14 years 10 months ago #15890
by fabworx
Replied by fabworx on topic Re:Multiswitch component, one button multiple outputs
Or2 docs I have but I didn't have the or2.lo in the right folder and couldn't find it in my folders I found it on the git source tree and compiled it thanx you guys
Please Log in or Create an account to join the conversation.
Time to create page: 0.168 seconds