Variable Loader

Current Languages

Description

This code demo is useful for an OEM customer that wishes to deploy their application to the end user and allow the user to set various variables to a settable min, max, and default without typing in a terminal. The OEM edits config.xml to set the number of variables and the variable properties. A controller address can be specified, or the address choice dialog can be displayed to the user.

No coding is necesary to deploy this tool, only the editing of the XML text file.

<!-- XML Example -->
<?xml version="1.0" encoding="utf-8" ?>
<config>
  <!-- leave address blank to display connection dialog -->
  <address></address>
  <variables>
    <variable>
      <name>var1</name>
      <default>100</default>
      <min>0</min>
      <max>1000</max>
      <description>The description of variable 1</description>
    </variable>
    <variable>
      <name>var2</name>
      <default>0</default>
      <min>-1000</min>
      <max>1000</max>
      <description>The description of variable 2</description>
    </variable>
    <variable>
      <name>var3</name>
      <default>2000</default>
      <min>1000</min>
      <max>10000</max>
      <description>The description of variable 3</description>
    </variable>
  </variables>
  <!-- Add more variable blocks as necesary -->
</config>

Screenshot of the Variable Loader demo
images/variableloader.png

Concepts

Details/Special Instructions