Isys
®
8.4” WiFi Touch Screen
Crestron
TPMC-8X-GA
Programming Embedded Windows Applications
The following diagram is an example of a basic SIMPL program that enables
opening/closing an embedded application. The example program is discussed
following the diagram.
TPMC-8X-GA (Digitals)
The example has Join #10 assigned to a button that is used to toggle the state of
Internet Explorer. Press10 is routed to the clock line of a Toggle symbol. The output
of the toggle is routed to fb11. Join #11 is referred to as the "Open/Close State
Digital Join.” The feedback signal of the Open/Close State Digital Join is used to
Open/Close the application. In this example, when fb11 goes high, Internet Explorer
opens, and when fb11 goes low, Internet Explorer closes. However, since the
application can also be closed by pressing the "X" in the upper right hand corner of
Internet Explorer, we must keep the logic synchronized. If we do not, the toggle gets
out of sync. Similarly, using the reserved join to launch the embedded application
would result in the application being open, but the state of the toggle remaining low,
so a one-shot is used to set the state of the toggle if the embedded application is
opened in this way.
For example, the user presses button #10 and the output of the toggle
(<
Open/Close_IE_FB
>) is high. If the user presses the "X" on IE, IE closes. The
next time they touch button #10, <
Open/Close_IE_FB
> goes low, which tries to
close the application. However, the application is already closed. We need to reset
the state of the toggle to keep in sync with the actual state of the application.
The “Press” signal of the Open Close State Digital Join can be used to know the true
state of the application. When Press11 goes high, in this example, IE is open. When
Press11 goes low, IE is closed. Here, we use the falling edge of Press11 through a
One-Shot to reset the state of the Toggle symbol. Now the toggle is properly
synchronized if the user closes the application from the touch screen itself.
46
•
Isys
®
8.4” WiFi Touch Screen: TPMC-8X-GA
Operations Guide – DOC. 7078E