My way of testing my syntax is to load the file up in The configurator. Loading this config the configurator keeps getting a Unhandled Exception and crashes.
Anyone see the problem with the syntax? Haven't tested it it yet with the brain.
Code:
<?xml version="1.0" encoding="utf-8" ?>
<FusionControlCentreConfiguration version="3.0.0.0" author="Jayson" date_created="April 11, 2008 at 2:32:35 PM" last_modified="April 11, 2008 at 3:51:29 PM">
<require>
<!-- Begin Function Instances -->
<!-- End Function Instances -->
</require>
<graphics>
<!-- Begin Global Graphic Settings -->
<main_display designed_for_size="200,200" show_at_size="200,200" menubar="Sizeable" RunInSystemTray="True" MinimizeToSystemTray="True"></main_display>
<!-- End Global Graphic Settings -->
<!-- Begin Background Images -->
<!-- End Background Images -->
<!-- Begin Static Images -->
<!-- End Static Images -->
<!-- Begin Display Buttons -->
<!-- End Display Buttons -->
<!-- Begin Multi Images -->
<!-- End Display Buttons -->
</graphics>
<io>
<!-- Begin Fusion Brain Instances -->
<brain id="MainBrain">USB\VID_04D8&PID_000C\5&300B12AB&0&2</brain>
<!-- End Fusion Brain Instances -->
<!-- Begin Timer Setup -->
<timer id="logic" interval="65"></timer>
<timer id="gui" interval="30"></timer>
<timer id="output" interval="100"></timer>
<timer id="input" interval="50"></timer>
<!-- End Timer Setup -->
<!-- Begin Analogue Input Instances -->
<iochannel id="Steering0" port="0" brain="MainBrain" type="analogue_input">
<options history="100" auto_average="false"></options>
</iochannel>
<!-- End Analogue Input Instances -->
<!-- Begin Digital Output Instances -->
<iochannel id="Test" port="10" brain="MainBrain" type="digital_output">
<defaults defaultstate="off"></defaults>
</iochannel>
<!-- End Digital Output Instances -->
</io>
<logic>
<!-- Begin Logging Setup -->
<all_logging>
</all_logging>
<!-- End Logging Setup -->
<!-- Begin Variable Declarations -->
<all_variables>
</all_variables>
<!-- End Variable Declarations -->
<!-- Begin Logic Declarations -->
<all_statements>
<if fire_on="logic">
<boolean_operation type="and">
<parameter1>
<boolean_operation type="greater than or equal or too">
<parameter1>
<analogue id="Steering0" time="0"></analogue>
</parameter1>
<parameter2>
<number>0.1</number>
</parameter2>
</boolean_operation>
</parameter1>
<parameter2>
<boolean_operation type="less than or equal too">
<parameter1>
<analogue id="Steering0" time="0"></analogue>
</parameter1>
<parameter2>
<number>4.9</number>
</parameter2>
</boolean_operation>
</parameter2>
</boolean_operation>
<then>
<do function="trigger output" functionTargetID="Test" vote_opinion="off" vote_priority="medium"></do>
</then>
</if>
</all_statements>
<!-- End Logic Declarations -->
</logic>
</FusionControlCentreConfiguration>
Bookmarks