- Posts: 189
- Thank you received: 0
TRISTATE-BIT, TRISTATE_BIT, TRISTATE_FLOAT HELP WITH DIFFERENCES !
1 year 6 months ago #327116
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
Please Log in to join the conversation.
1 year 6 months ago #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.
Please Log in to join the conversation.
Time to create page: 0.068 seconds
