I created an xml file for the can buttons, and when I click one, it triggers the other button.
Can 1FFFFFFF 00
1 Button on 01 Off 00
2 Button on 02 Off 00
3 Button on 03 Off 00
4 Button on 04 Off 00
Please share the XML file to more understanding the issue
1 Like
<value targetId="93" offset="0" length="0" units="bit" conversion="V>>0"/>
<!--Button 1-->
<value targetId="94" offset="0" length="0" units="bit" conversion="V>>1"/>
<!-- Button 2-->
<value targetId="95" offset="0" length="0" units="bit" conversion="V>>2"/>
<!-- Button 3-->
<value targetId="96" offset="0" length="0" units="bit" conversion="V>>3"/>
<!-- Button 4-->
Buttons are duplicated.
Try fixing:
length="0"
to
length="1"
1 Like
I changed the length to 1, but nothing changed
Otherwise XML seems correct. You are reading these from CAN into Dummy 01-04, are you sure that not some other trigger etc is setting the Dummy values?
1 Like
I’ve already changed it to dummy 20,21,22,23, but I can’t understand why it’s happening.
The same thing happens when you press two buttons
When can 03 is pressed, two buttons are pressed
Hmm, try this instead:
<value targetId="93" offset="0" length="1" startbit="0" bitcount="1" units="bit"></value>
<value targetId="94" offset="0" length="1" startbit="1" bitcount="1" units="bit"></value>
<value targetId="95" offset="0" length="1" startbit="2" bitcount="1" units="bit"></value>
<value targetId="96" offset="0" length="1" startbit="3" bitcount="1" units="bit"></value>
More than one button doesn’t work
Ok, it seems like I’m unable to help you any further without knowing the entire environment.