Multiple wsums
24 Nov 2012 09:59 #26888
by JR1050
Multiple wsums was created by JR1050
Hello,
Im having some problems with multiple instances of the weighted sum component. I presently have 3 instances of wsum,one for a bcd turret encoder,one for a bcd mode selector and one for a bcd feed over ride.It will load instance 0 and one with out an issue,when it gets to instance 2,I get a "wsum.2.bit.0.in" does not exist. I am loading the component like so;
loadrt weighted_sum wsum_sizes=4,4
The actual signals on hal look like this
##BCD SELECTOR FOR FEED OVERIDE##
net feedor_bit_1 wsum.2.bit.0.in = hm2_5i25.0.7i84.0.2.input-16 #1st bit of bcd encoder
net feedor_bit_2 wsum.2bit.1.in = hm2_5i25.0.7i84.0.2.input-17 #2nd bit of bcd encoder
net feedor_bit_3 wsum.2.bit.2.in = hm2_5i25.0.7i84.0.2.input-18 #3rd bit of bcd encoder
net feedor_bit_4 wsum.2.bit.3.in = hm2_5i25.0.7i84.0.2.input-19 #4th bit of bcd encoder
net feedor_value wsum.2.sum = controlpanel.0.feedor-value #full value
The manual page is kinda sparse,what am I missing?Thanks.
Im having some problems with multiple instances of the weighted sum component. I presently have 3 instances of wsum,one for a bcd turret encoder,one for a bcd mode selector and one for a bcd feed over ride.It will load instance 0 and one with out an issue,when it gets to instance 2,I get a "wsum.2.bit.0.in" does not exist. I am loading the component like so;
loadrt weighted_sum wsum_sizes=4,4
The actual signals on hal look like this
##BCD SELECTOR FOR FEED OVERIDE##
net feedor_bit_1 wsum.2.bit.0.in = hm2_5i25.0.7i84.0.2.input-16 #1st bit of bcd encoder
net feedor_bit_2 wsum.2bit.1.in = hm2_5i25.0.7i84.0.2.input-17 #2nd bit of bcd encoder
net feedor_bit_3 wsum.2.bit.2.in = hm2_5i25.0.7i84.0.2.input-18 #3rd bit of bcd encoder
net feedor_bit_4 wsum.2.bit.3.in = hm2_5i25.0.7i84.0.2.input-19 #4th bit of bcd encoder
net feedor_value wsum.2.sum = controlpanel.0.feedor-value #full value
The manual page is kinda sparse,what am I missing?Thanks.
Please Log in or Create an account to join the conversation.
24 Nov 2012 15:17 #26891
by ArcEye
Replied by ArcEye on topic Multiple wsums
Hi
Are you adding to a thread with addf?
Very easily forgotten
regards
Are you adding to a thread with addf?
Very easily forgotten
regards
Please Log in or Create an account to join the conversation.
24 Nov 2012 18:00 #26892
by ArcEye
Replied by ArcEye on topic Multiple wsums
OK, ignore my last been able to replicate.
What you need to enter is
loadrt weighted_sum wsum_sizes=4,4,4,4
The 4 is the size of each instance so you need to specify 4 sizes to get 4 instances
regards
What you need to enter is
loadrt weighted_sum wsum_sizes=4,4,4,4
The 4 is the size of each instance so you need to specify 4 sizes to get 4 instances
regards
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds