- Posts: 19899
- Thank you received: 4655
(SOLVED - maybe) How to get an underscore in a pin/parameter name?
- andypugh
- Offline
- Moderator
-
ozzyrob wrote: What is the thing with the dash replacing underscore if you know ?
Part of the (widely ignored) canonical interface specification.
It is documented somewhere that all HAL pins should use hyphens.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
Sparky961 wrote: github.com/LinuxCNC/linuxcnc/blob/master...-hostmot2/hm2_test.c
It looks promising. If it allows me to run a config offline it is a viable solution.[/quote]
Having tried it, I am not sure if any of the test_patterns actually load.
For example.
Please Log in or Create an account to join the conversation.
- Sparky961
- Offline
- Elite Member
-
- Posts: 210
- Thank you received: 15
forum.linuxcnc.org/24-hal-components/347...?limitstart=0#112343
Please Log in or Create an account to join the conversation.
- ozzyrob
- Visitor
-
Sparky961 wrote:
ozzyrob wrote: I'd be putting my wager on the coder doing something wrong rather than the compiler doing something wrong
...
Just cos a underscore can be used does not necessarily mean it should.
Not at all helpful.
Yes you are right in that context probably not....but you did decide to leave out this bit as to why it might be an error on the coder's part.
ozzyrob wrote: Make sure that all the component names in the file match the source file name...I got the same behavior when I copied the supply.c src to supply_2.c and didn't change any reference to supply to supply_2.
Please Log in or Create an account to join the conversation.
- Sparky961
- Offline
- Elite Member
-
- Posts: 210
- Thank you received: 15
ozzyrob wrote: Yes you are right in that context probably not....but you did decide to leave out this bit as to why it might be an error on the coder's part.
I left it out because a few posts later my course changed and I'm not trying to compile an existing file with changed names anymore.
Keep up mate, you're getting left behind. As confusing as it may be to those who might be gracious enough to help me, I can't possibly wait helplessly for people to respond. I have to keep trying things and move forward.
As to the argument of whether or not to use an underscore, it isn't my choice. The existing component I'm trying to make a "dummy" of has names with underscores.
The present issue, also mentioned previously in this thread, is that I can't seem to get a working component through the two-step process of using halcompile to preprocess the *.comp file, then 'halcompile --install' the generated C file after changing only one character in the file - the dash to an underscore.
I'll be investigating that one after I submit this. That, or I might do something more useful since this was supposed to be yet another "quick side project".
Please Log in or Create an account to join the conversation.
- Sparky961
- Offline
- Elite Member
-
- Posts: 210
- Thank you received: 15
Are there different versions of components, halcompile, and whatever else needed to build components for 'uspace' or for the rt-preempt kernel I installed? If so, how to I verify what I have and correct any mismatch?
Please Log in or Create an account to join the conversation.