Download Opal Kelly
Transcript
FrontPanel User’s Manual FrontPanel Interface Modules This design contains three FrontPanel interface modules: okHostInterface, okWireIn, and okWireOut. Their instantiation is pretty straightforward. We have chosen to call the endpoint wires ep00wire and ep20wire for clarity. FrontPanel XML Description The user’s interface shown at the beginning of this example is described in XML and shown below. Only one instance of the okToggleButton and one instance of the okLED are shown for brevity. The others instances are similar with the exception of their position tag and endpoint bit. <?xml version=”1.0” encoding=”ISO-8859-1”?> <!-First FrontPanel Example Copyright (c) 2004, Opal Kelly Incorporated --> <resource version=”2.3.0.1”> <object class=”okPanel” name=”panel1”> <title>First FrontPanel Example</title> <size>180,70</size> <object class=”okToggleButton”> <label>1</label> <position>10,10</position> <size>20,20</size> <endpoint>0x00</endpoint> <bit>0</bit> </object> ... other okToggleButton objects removed ... <!-- LEDs --> <object class=”okLED”> <position>48,40</position> <size>25,25</size> <label>1</label> <style>SQUARE</style> <color>#00ff00</color> <endpoint>0x20</endpoint> <bit>0</bit> </object> ... other okLED objects removed ... </object> </resource> Each FrontPanel XML description must contain the <?xml> tag shown at the top as well as the <resource ...> and </resource> tags as they are required by the FrontPanel XML parser. okPanel The first object specified is the okPanel object which has a “name” property with value “panel1”. FrontPanel looks for these properties when loading a profile. They must be sequenced panel1, panel2, and so on. The okPanel object also has two child nodes serving as parameters for the okPanel as listed in the table below: www.opalkelly.com 75