TRISTATE-BIT, TRISTATE_BIT, TRISTATE_FLOAT HELP WITH DIFFERENCES !
- gmouer
- Offline
- Elite Member
-
Less
More
- Posts: 244
- Thank you received: 9
27 Apr 2025 01:08 - 27 Apr 2025 01:12 #327116
by gmouer
TRISTATE-BIT, TRISTATE_BIT, TRISTATE_FLOAT HELP WITH DIFFERENCES ! was created by gmouer
I recently updated from LCNC 2.7 to 2.9.4 and am in the process of tweaking my old hal file to be compatible with the newer 2.7 version. I am also forced to redo the code for my shuttlexpress because the component (HIDCOMP) that I previously used is no longer valid.
My old hal file had the component tristate-bit used in it (minus sign). The current hal component list does not even list tristate-bit with the minus sign BUT does list a tristate_bit with the underscore character. Interestingly, my present hal with the minus sign seems to operate and not throw any errors under 2.9.4. Is the old syntax with the minus sign still supported in 2.9.4?
THEN..... I am adding a shuttle jog component. The published hal file for the shuttle uses the Tristate_float component. From the hal component manual descriptions tristate_bit and tristate_float seem to have identical functional descriptions with slightly different syntax !! I am confused why both exist if they are the same ????
THEN.......... my real concern is if I use all 3 versions of tristate, Tristate-bit, tristate_bit and tristate_float in the same hal file if it will cause a duplicate error crash/fault? I would guess not considering all 3 have unique names /syntax but would sure like someone to confirm.
This is quite confusing.
Thanks,
George
My old hal file had the component tristate-bit used in it (minus sign). The current hal component list does not even list tristate-bit with the minus sign BUT does list a tristate_bit with the underscore character. Interestingly, my present hal with the minus sign seems to operate and not throw any errors under 2.9.4. Is the old syntax with the minus sign still supported in 2.9.4?
THEN..... I am adding a shuttle jog component. The published hal file for the shuttle uses the Tristate_float component. From the hal component manual descriptions tristate_bit and tristate_float seem to have identical functional descriptions with slightly different syntax !! I am confused why both exist if they are the same ????
THEN.......... my real concern is if I use all 3 versions of tristate, Tristate-bit, tristate_bit and tristate_float in the same hal file if it will cause a duplicate error crash/fault? I would guess not considering all 3 have unique names /syntax but would sure like someone to confirm.
This is quite confusing.
Thanks,
George
Last edit: 27 Apr 2025 01:12 by gmouer.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18482
- Thank you received: 5055
27 Apr 2025 03:53 #327126
by PCW
Replied by PCW on topic TRISTATE-BIT, TRISTATE_BIT, TRISTATE_FLOAT HELP WITH DIFFERENCES !
tristate_bit and tristate_float are the names of the hal components,
but tristate-bit.n.xxxx and tristate-float.N.xxxx are the names of the function
and hal pins that the component exports.
tristate_bit works on bits where tristate_float works on floating point numbers.
but tristate-bit.n.xxxx and tristate-float.N.xxxx are the names of the function
and hal pins that the component exports.
tristate_bit works on bits where tristate_float works on floating point numbers.
The following user(s) said Thank You: gmouer
Please Log in or Create an account to join the conversation.
Time to create page: 0.062 seconds