|
This is what I came up with so far, not sure about variable name. A guy from work said to create an instance. The program describes fusion brain and ports as (0,0), (0,1) The (0...is the fusion brain number, I can connect up to 15 fusion brains. The ...,0) is the port number so fusion brain number 0 on port 0 is (0,0). Fusion brain 0 on port 1 is (0,1). I'm hoping by adding the following if, then statement it will automatically turn off all ports except the port that is turned on. Can someone check to see if I need to change anything?
<rule>
<if>
<conditions>
<condition var="GL - BTN - DO[0,0]" operator="true"></condition>
<!-- more conditions possible -->
</conditions>
<then>
<startup action="FB.ToggleDigitalOutput" inputArgs="Port:0.1"/>
</then>
</if>
<elseif>
<condition var="GL - BTN - DO[0,1]" operator="false"></condition>
<statements>do nothing</statements>
</elseif>
<else>
<statements></statements>
</else>
</rule>
Last edited by ladybridgeport; 10-07-2012 at 03:21 PM..
|