APPLICATION NOTE. Application Note: 4D-AN-P4004. ViSi-Genie Advanced Buttons. Document Date: November 15 th, Document Revision: 1.

Similar documents
APPLICATION NOTE. Application Note: 4D-AN-P4007. ViSi-Genie Play Video. Document Date: November 15 th, Document Revision: 1.

APPLICATION NOTE. Application Note: 4D-AN-P4009. ViSi-Genie Inputs. Document Date: November 19 th, Document Revision: 1.0

Workshop 4 Installation INSTALL GUIDE. Document Date: February 4 th, Document Revision: 1.1

4D Systems. Application Note: 4D-AN-G3001. in ViSi Environment. Document Date: 15 th December Document Revision: 1.0

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

DATASHEET 4D SYSTEMS. 4D Arduino Adaptor Shield TURNING TECHNOLOGY INTO ART. 4Display-Adaptor-Shield

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

4D Systems. Application Note: 4D-AN-P2002. Playing Video on PICASO based modules using RAW option. Document Date: 15 th December 2012

DATASHEET 4D SYSTEMS. 4D Raspberry Pi Serial Adaptor TURNING TECHNOLOGY INTO ART. 4D-Serial-Pi-Adaptor

USER GUIDE. Workshop 4 User Guide. Document Date: 17 th December 2012 Document Revision: 1.1

4D SYSTEMS APPLICATION NOTE. Application Note: 4D-AN-P3001 TURNING TECHNOLOGY INTO ART. ViSi - Displaying Third-Party Fonts

DATASHEET. 3.2 Display Bezel. 4D-Bezel-32 For the ulcd-32ptu Display Module. Document Date: 16 th September 2013 Document Revision: 1.

Application Note: 4D-AN-P4010 ViSi-Genie Connection to a Host with Red- Green-Blue LED Control

4D SYSTEMS TURNING TECHNOLOGY INTO ART. Application Note: 4D-AN-G5002

4D SYSTEMS APPLICATION NOTE. Application Note: 4D-AN-G5001 TURNING TECHNOLOGY INTO ART. Serial - Displaying Third-Party Fonts

DATASHEET 4D SYSTEMS. 4Display Shield with 2.2 Display TURNING TECHNOLOGY INTO ART. 4Display-Shield-22

DATASHEET. gen4 Programming Adaptor For all gen4 sizes (Picaso and Diablo16) gen4-pa. Document Date: 29 th January 2016 Document Revision: 1.

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. USB to Serial UART Bridge Converter. Document Date: 5 th September 2012 Document Revision: 1.

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. Carrier Board for μoled-160-g1/g2 CB-160-G1

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. microusb Programming Adaptor. USB to UART Serial Bridge

2.8 microlcd Intelligent PICASO Display Module

DATASHEET 4D SYSTEMS. uusb-pa5 uusb-pa5-ii. microusb Programming Adaptor TURNING TECHNOLOGY INTO ART. USB to UART Serial Bridge

DATASHEET. 4D 4.3 LCD CAPE Beagle Bone Black 4.3 LCD CAPE. Document Date: 3 rd February 2014 Document Revision: 1.9

DATASHEET. 4.3 Embedded SPI Display. 4DLCD-FT843 Powered by the FTDI FT800 Video Engine. Document Date: 25 th September 2013 Document Revision: 0.

Font Tool User Guide. Abstract. Document Date: 1 July 2009 Document Revision: 01

Introduction. Rev.1.2

USER GUIDE. Workshop4 PRO SMART WIDGETS EDITOR. Document Revision: 1.1 Document Date: 29 th July 2017

USER MANUAL. Workshop4 IDE USER GUIDE. Document Revision: 2.1 Document Date: 29 th July 2017

DATASHEET 4D SYSTEMS TURNING TECHNOLOGY INTO ART. Embedded DOS micro-drive Module. μdrive-μsd-g1

DATASHEET. 4.3 Embedded SPI Display. 4DLCD-FT843 Powered by the FTDI FT800 Video Engine. Document Date: 8 th January 2014 Document Revision: 1.

DATASHEET 4D SYSTEMS. Embedded Audio-Sound Module TURNING TECHNOLOGY INTO ART SOMO-14D. Document Date: 5 th February 2013 Document Revision: 1.

udrive-usd-g1 Embedded DOS micro-drive Module Data Sheet

DATASHEET. 4D 7.0 LCD CAPE Beagle Bone Black 7.0 LCD CAPE. Document Date: 3 rd February 2014 Document Revision: 1.2

DATASHEET 4D SYSTEMS. Arduino Display Module Pack TURNING TECHNOLOGY INTO ART. ulcd-43-pt-ar. Featuring 4.3 Serial Display Module

DATASHEET 4D SYSTEMS. Raspberry Pi Display Module Pack TURNING TECHNOLOGY INTO ART. Featuring a 2.8 Display Module ulcd-28-ptu-pi

DATASHEET. 4D 4.3 LCD CAPE Beagle Bone Black 4.3 LCD CAPE. Document Date: 15 th October 2013 Document Revision: 1.7 DISTRIBUTED BY TEXIM EUROPE

USER GUIDE. Workshop 4 - ViSi-Genie User Guide. Document Date: 2 nd February 2015 Document Revision: 1.4

REFERENCE 4D SYSTEMS TURNING TECHNOLOGY INTO ART. μdrive. (μdrive-μsd-g1) COMMAND SET. Document Date: 23 rd October 2012 Document Revision: 4.

Serial JPEG Camera Module Data Sheet

DATASHEET 4D SYSTEMS. Serial JPG Camera Module TURNING TECHNOLOGY INTO ART. Document Date: 5 th September 2012 Document Revision: 1.

Serial JPEG Camera Module Data Sheet

GUI design made easy. Creating the First Project with. additional software

Installing Your Microsoft Access Database (Manual Installation Instructions)

MySonicWall Secure Upgrade Plus

DATASHEET. 4DPi-24-HAT. 2.4 Primary Display for the Raspberry Pi. In partnership with. Compatible with A+, B+ and Pi2

RE866 Interface User Guide

TO OUR VALUED CUSTOMERS

SOMO-14D Embedded Audio-Sound Module

ESS Utility Android App User Guide

Copyright mikroelektronika, All rights reserved.

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

IoT AppZone Release Notes

USER GUIDE. Atmel QT6 Xplained Pro. Preface

Copyright mikroelektronika, January All rights reserved.

End User License Agreement

GS2K External Flash based Host Firmware Update Application Note NT11608A Rev

Pi Gateway Windows 7 Operator Manual

Terms of Use. Changes. General Use.

AN S1401 Using BlueMod+S as Beacon

XcreenKey Verti. User Guide v2.0. Legal Before You Start Using XcreenKey Verti

Application Launcher User Guide

AT60142H/HT. Rad-Hard 512Kx8 Very Low Power CMOS SRAM ERRATA-SHEET. Active Errata List. Errata History. Abbreviations. 1.

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

Dell SonicWALL SonicOS 5.9 Upgrade Guide

for StarCore DSP Architectures Quick Start for the Windows Edition

QPP Proprietary Profile Guide

AccelDSP Synthesis Tool

One Identity Starling Two-Factor Authentication. Administration Guide

END USER LICENSE AGREEMENT PANDA ANTIVIRUS 2007 / PANDA ANTIVIRUS + FIREWALL 2007 / PANDA INTERNET SECURITY 2007

BuildPro Mobile V4. User Guide

AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE

for ColdFire Architectures V7.2 Quick Start

DSS Bit Exact Output. Application Report. 1 Display Subsystem (DSS) Overview. Prasad Konnur, Sivaraj R, Brijesh Jadav

Cloud Access Manager How to Configure for SSO to SAP NetWeaver using SAML 2.0

One Identity Manager Administration Guide for Connecting to SharePoint

CodeWarrior Development Studio

Leaf Aptus-II. User Guide

User Guide. BlackBerry Docs To Go for Android. Version 1.3.0

Dell Change Auditor 6.5. Event Reference Guide

GS2K OV SDK User Guide. 1VV Rev

Teams LX. Instructor Guide. Copyright 2004 Learning Objects, Inc. 01/01/2005 i

One Identity Manager Administration Guide for Connecting Oracle E-Business Suite

user's guide to Expand development system capabilities by adding 8K EEPROM memory accessory board EEPROM

One Identity Active Roles 7.2. Web Interface User Guide

Aellius LynX Office Lookup Enhancements

LED Manager for Intel NUC

AVRflash. Program. User manual

VP-UML Installation Guide

CEC1702 clicker. a great idea is just a click away

mikroprog Suite for PIC programming software

CMSIS DAP Setup. Document Version History Document Version ngxtechnologies.com 2

mikrobasic PRO for FT90x Creating the first project in

ONVIF Device Test Tool v12.06 Installation Guide

1. License Grant; Related Provisions.

Development system. mikrommb for PIC32. User manual

CodeWarrior Development Studio for StarCore DSP SC3900FP Architectures Quick Start for the Windows Edition

Terminal I/O Profile Client Implementation Guide

INCLUDING MEDICAL ADVICE DISCLAIMER

GpsSimul User Guide 1. GpsSimul User Guide. User guide. (c) 2012 Sailsoft

mikrommb for PIC18FJ TABLE OF CONTENTS strana

Transcription:

APPLICATION NOTE Application Note: ViSi-Genie Advanced Buttons Document Date: November 15 th, 2012 Document Revision: 1.0

Description This Application Note explores the possibilities provided by ViSi-Genie for the Button object: Simple button Button with an icon On/Off button Group of buttons Menu based on buttons Menu based on buttons with messages This application note requires: Workshop 4 has been installed according to the document Workshop 4 Installation; The user is familiar with the Workshop 4 environment and with the fundamentals of ViSi-Genie, as described in Workshop 4 User Guide and ViSi-Genie User Guide; The user has completed a first project like the project described in 4D-AN-P4001 Getting Started First Project with ViSi-Genie. Six ViSi-Genie projects are provided as examples to help you along this application note. Content Description... 2 Content... 2 Application Overview... 3 Setup Procedure... 4 Launch ViSi-Genie... 4 Load the Example... 5 Create a New Project... 7 Add a Button Object... 11 Simple Button... 12 Button with Icon... 15 On/Off Button... 17 Group of Buttons... 20 Button-Based Menu... 23 Translate a Menu into Forms and Buttons... 24 Go from a Button to a Sub-Menu... 26 Summarise Forms and Buttons... 27 Build the Menu... 27 Top Level Form 27 First Level Form 29 Second Level Form 30 Landing Page Forms 31 Button-Based Menu with Messages... 33 Define the Events for Messages... 33 Read the Messages... 33 Read the Menu Selected... 36 Understand the Messages... 37 Prepare a Table with Messages... 37 2012 4D Systems Page 2 of 39 www.4dsystems.com.au

Summary... 38 Proprietary Information... 39 Disclaimer of Warranties & Limitation of Liability... 39 Application Overview The button is the key element of a graphical user interface. In ViSi-Genie, the button corresponds to different standard elements: Used alone, it triggers an action when pressed. This is the simple button. The button can keep trace of its state, off and on, and provides a feed-back. The equivalent is a check-box. Grouped with other buttons, selecting one unselects the others. The equivalent is a group of radio-buttons. 2012 4D Systems Page 3 of 39 www.4dsystems.com.au

Finally, combining forms and buttons allow building menus with sub-menus. The equivalent is a menu. Setup Procedure Launch ViSi-Genie There is an alias for 4D Workshop on the desktop: The different sections of this application notes have been redacted on a progressive order. It is thus recommended to read this document sequentially. Launch 4D Workshop by double-clicking on the icon: 2012 4D Systems Page 4 of 39 www.4dsystems.com.au

Load the Example You can load the ViSi-Genie project example Example: P4004 - Simple Button or follow the procedures described in the next section. Workshop 4 opens and displays the Recent page: To load the existing project, click on the left-most icon Open a standard Open window asks for a ViSi-Genie project 2012 4D Systems Page 5 of 39 www.4dsystems.com.au

select P4004 - Simple Button and click on to load it. Now, check the type of the screen module: select the Project menu to display the Change Display window: the type and orientation of the screen are displayed: If the screen module you use is different, click on the button Select the screen on the drop-down list and define the orientation. and confirm by. 2012 4D Systems Page 6 of 39 www.4dsystems.com.au

Create a New Project 4D Workshop opens and displays the Recent page: To create a new program, there are multiple options: Click on the top left-most icon New Click on the icon close to Create a New Project on top or, if the settings have been already defined, click on the icon close to Create a New Project on bottom: 2012 4D Systems Page 7 of 39 www.4dsystems.com.au

All those options update the main window with the selection of the screen: The selected screen is displayed: Select the screen, here the LCD-32PT: Orientation is portrait by default. 2012 4D Systems Page 8 of 39 www.4dsystems.com.au

To set it to landscape, just click on the image of the screen to rotate it: The main window now asks for the kind of project: Press Next to proceed: 2012 4D Systems Page 9 of 39 www.4dsystems.com.au

To select ViSi Genie, just click on the blue arrow: The development environment is now displayed: You are ready to start. 2012 4D Systems Page 10 of 39 www.4dsystems.com.au

Add a Button Object and then click on the WYSIWYG screen to place it: Select the Home menu to display the objects: The Button object is located on the Buttons pane: Click first on the Button icon 2012 4D Systems Page 11 of 39 www.4dsystems.com.au

Note the Object Inspector of the right part of the screen displays all the properties of the WinButton0 object: Simple Button You can load the example Example: P4004 - Simple Button or follow the procedure described hereafter. Here is a simple button: This is the equivalent of the standard button: To edit the properties of the button, click on it on the WYSIWYG screen: A dotted green line appears. 2012 4D Systems Page 12 of 39 www.4dsystems.com.au

On the right part of 4D Workshop, the Object Inspector displays all the properties of the Winbutton0 button: The font, the size and the colour of the caption are under the Font node: Click on the to show the details: The caption of the button is defined by the Caption property. By default, the caption has the same value as the name of the object, here Winbutton0: For example, change the font size from 8 to 12: To change the caption, select the line of the property, type in the new caption, here Button, and press Enter: The button is updated accordingly: The WYSIWYG screen is updated accordingly: 2012 4D Systems Page 13 of 39 www.4dsystems.com.au

By default, the buttons have a glossy appearance. The appearance properties are under the Appearance node: The button is updated accordingly: Click on the to show the details: Feel free to play with the many options of colours, alignment, bevel to customise the button to your specific needs. For example, change SimpleLayout from No to Yes to obtain a flat button: 2012 4D Systems Page 14 of 39 www.4dsystems.com.au

Button with Icon You can load the example Example: P4004 Button with Icon or follow the procedure described hereafter. A button can display an icon. Select the image you want, here player_play, and click on. The object property is updated with the name of the image and the WYSIWYG screen shows the new button: Click on and the standard Open window asks for a image: To resize the button, either enter the values for Height and Width 2012 4D Systems Page 15 of 39 www.4dsystems.com.au

or click on the green dotted rectangle and resize the button: Final result is: Set SimpleLayout to Yes to hide the bevel: 2012 4D Systems Page 16 of 39 www.4dsystems.com.au

On/Off Button You can load the example Example: P4004 On-Off Button or follow the procedure described hereafter. To convert a momentary button into an on/off button, set the Momentary property to No: Click on the to show the details: Pressing the button turns it on, pressing again turns it off. However, the lack of visual feed-back doesn t make this on/off button very easy to use. Let s add some visual feed-back: Green OFF when the button is off Red ON when the button is on. This is the equivalent of the standard check-box, off Let s start with the green OFF under StatusWhenOff: and on. The green OFF and red ON captions are set under the StatusWhenOff and StatusWhenOn properties, respectively: 2012 4D Systems Page 17 of 39 www.4dsystems.com.au

Click on the BGColor line property: Manual values can also be set for Hue-Saturation-Luminance or Red- Green-Blue components. Select Green under 4DGL Colours and then click OK. The colour of the status is updated accordingly: A symbol appears. Click on it. A new window Colour Picker appears and shows all the colours available: Select the new line, Caption and type in the caption, OFF, then press Enter: The button on the WYSIWYG screen is updated accordingly: Colours are grouped under Windows, Theme and 4DGL. Keep Visible with the value Yes, otherwise the caption wouldn t be visible. 2012 4D Systems Page 18 of 39 www.4dsystems.com.au

Final result looks like: The screen shows the button turned OFF: Proceed the same way with the ON caption under StatusWhenOn: Build and run the project. Touching the button turns it ON: Touching again turns it OFF again: 2012 4D Systems Page 19 of 39 www.4dsystems.com.au

Now, let s get rid of the OFF caption to keep only the ON caption. Go to the Visible property under StatusWhenOff and changed it to No: The form displays the button OFF with no caption: Group of Buttons You can load the example Example: P4004 Group of Buttons or follow the procedure described hereafter. Simple button and on/off button are not the only uses of the buttons. Very often, different buttons are used together to bring a choice among different options. Selecting one option cancels the previous one. This is the equivalent of the radio-buttons: Touching the button turns it ON: With ViSi-Genie, such a group is called a matrix. To link the buttons together, just change the value of the matrix from -1 for no matrix Touching again turns it OFF again: to the number of the matrix, here 1: 2012 4D Systems Page 20 of 39 www.4dsystems.com.au

It is important that all buttons grouped share the same number of matrix, otherwise pressing on one button will not release the other buttons of the group. Let s start with the first button, Red. Set the caption to Red: Finally, define the StatusWhenOff and StatusWhenOn parameters as seen in the previous section: Enter the number of the Matrix, 1: And set Momentary to No: Do the same for the Green and Blue buttons with their respective values, update the Caption, enter the number of the Matrix and set Momentary to No. 2012 4D Systems Page 21 of 39 www.4dsystems.com.au

For the Green button: The form displays the buttons and no one is selected: For the Blue button: Press on the Red button: Build and run the project. 2012 4D Systems Page 22 of 39 www.4dsystems.com.au

Red is selected. Press on the Green button: Red is released and Green is selected. Press on the Blue button: Button-Based Menu You can load the example Example: P4004 Menus or follow the procedure described hereafter. Another use of the buttons is building a menu. A standard menu with submenus doesn t fit into a 3.2 or 4.3 screen. Instead, each menu is going to be shown as a screen, or form, with the sub-menus as buttons, plus a backward button to return to the former level. Below a menu with two levels: Top level: First level, with the Menu 1 option highlighted: Green is released and Blue is selected. 2012 4D Systems Page 23 of 39 www.4dsystems.com.au

Second level, for the sub-menu of Menu 2, and with the Menu 2.2 option highlighted: Translate a Menu into Forms and Buttons With Visi-Genie, this whole menu including all its sub-menus is going to be translated into 3 forms, with each form containing the options of the corresponding sub-menu: Top level: In this example, Menu 1, Menu 2.1 and Menu 2.2 are terminal options. They have no sub-menus associated. 2012 4D Systems Page 24 of 39 www.4dsystems.com.au

First level, with two options: For better ergonomics, a yellow Back button is included: The Back button returns to the previous node. Above, it goes to the first level. Each terminal option, Menu 1, Menu 2.1 or Menu 2.2, ends to a landing page. Here the example for Menu 1: Second level with the 2 options for the Menu 2 sub-menu: 2012 4D Systems Page 25 of 39 www.4dsystems.com.au

Go from a Button to a Sub-Menu Each form includes the options of the menu as buttons. Here, pressing on the Menu button opens the forms with the Menu 1 and Menu 2 options: The Button object generates the event onchanged when pressed: When pressed, the button associated with an option opens the form which contains the sub-menus of the option selected, just like the classic way: 2012 4D Systems Page 26 of 39 www.4dsystems.com.au

Summarise Forms and Buttons Here is the summary of the forms and the buttons, with their associated actions: Form Button Action = Command Form 0 = top level Form 1 = first level Form 2 = second level of Menu 2 Form 3 = Menu 1 landing page Form 4 = Menu 2.1 landing page Form 5 = Menu 2.2 landing page Build the Menu Menu Menu 1 Menu 2 Back Menu 2.1 Menu 2.2 Back Back Back Back Open first level = activate Form 1 Go to Menu 1 landing page = activate Form 3 Open second level of Menu 2 = activate Form 2 Return to top level = activate Form 0 Go to Menu 2.1 landing page = activate Form 4 Go to landing Menu 2.2 landing page = activate Form 5 Return to first level = activate Form1 Return to last menu = activate Form 1 Return to last menu = activate Form 2 Return to last menu = activate Form 2 First, create as many forms as levels and landing pages, 6 in the example. To create a form, select the System pane of objects click on the Form object an empty form appears on the WYSIWYG screen: Top Level Form Form0 corresponds to the top level of the menu: 2012 4D Systems Page 27 of 39 www.4dsystems.com.au

Add a button to the form, WinButton0: Select WinButton0 and rename it to Menu: The Button object generates the event onchanged when pressed. Select the Events pane on the Object Inspector and click on the line onchanged: A symbol appears. Click on it. 2012 4D Systems Page 28 of 39 www.4dsystems.com.au

A drop-down list appears with a list of commands: When WinButton0 Menu is pressed, the first level of the menu is displayed by Form1: Five of the six forms we created before appear. Form0 is not listed as WinButton0 belongs to that form. Here, the Form1Activate command stands for the activation of the Form1, which corresponds to the first level of the menu, with Menu 1 and Menu 2 options. Form1 is empty for the moment. First Level Form Form1 correspond to first level of the menu, with two options, Menu 1 and Menu 2: 2012 4D Systems Page 29 of 39 www.4dsystems.com.au

Add two buttons, call them Menu 1 and Menu 2 and define the following events: Button Event Command Menu 1 onchanged Form3Activate Menu 2 onchanged Form2Activate The WYSIWYG screen displays: The WYSIWYG screen displays: Second Level Form Pressing Menu 2 calls the second level menu, with Menu 2.1 and Menu 2.2 options: Optionally, add the the yellow Back button and define its event: Button Event Command Back onchanged Form0Activate Proceed with Form2 with the following buttons: Button Event Command Menu 2.1 onchanged Form4Activate Menu 2.2 onchanged Form5Activate Back onchanged Form1Activate 2012 4D Systems Page 30 of 39 www.4dsystems.com.au

Final result is: To add a StaticText object, select the Labels panes click on the StaticText object then place it on the WYSIWYG screen Landing Page Forms The following forms Form3, Form4 and Form5, are landing pages: finally, enter its caption: Include two StaticText objects, one with Landing page caption and the other with the menu number, here Menu 1. 2012 4D Systems Page 31 of 39 www.4dsystems.com.au

Each landing page is going to have its specific Menu label, Menu 1, Menu 2.1 or Menu 2.2. Finally, add one yellow Back button with the following definition: Form Button Event Command Form3 Back onchanged Form1Activate Form4 Back onchanged Form2Activate Form5 Back onchanged Form2Activate Form4 as landing page for Menu 2.1 The landing pages look like: Form3 as landing page for Menu 1 Form5 as landing page for Menu 2.2 Save, build and upload the project. Congratulations, you have completed a menu with sub-menus! 2012 4D Systems Page 32 of 39 www.4dsystems.com.au

Button-Based Menu with Messages On Form1 for the first level menu, WinButton1 or Menu 1 has the event onchanged associated with the action Message: You can load the example Example: P4004 Menus with messages or follow the procedure described hereafter. Instead of displaying landing pages, we want now the screen to send back to the micro-controller connected to the screen the menu selected. Instead of associating the command activate a form to the onchanged events, the buttons will send a message. Define the Events for Messages To do so, delete all the landing page forms, Form3, Form4 and Form5, as they are no longer required. Then define Message as handler for the onchanged event only for the buttons associated with terminal options, more specifically WinButton1 for Menu 1, WinButton3 for Menu 2.1 and Winbutton4 for Menu 2.2. Note that the deleted forms no longer appear. Form1 is the active form and thus isn t listed. Do the same for Form2 corresponding to the second level menu: Form Button Event Command Form1 Menu 1 onchanged Message Form2 Menu 2.1 onchanged Message Menu 2.2 onchanged Message Read the Messages Save, build and upload the project. In order to read the messages, we are going to use the built-in debugger. 2012 4D Systems Page 33 of 39 www.4dsystems.com.au

To debug the project, select on the Tools menu A new screen appears, with the form and objects we have defined previously: and launch the Codeless Executive Test Instrument: Let s start! 2012 4D Systems Page 34 of 39 www.4dsystems.com.au

The screen shows the main menu: the screen is refreshed with the top level menu press Menu then press Menu 1 2012 4D Systems Page 35 of 39 www.4dsystems.com.au

the debugger shows now: The WinButton1 button corresponds to the first Button object, Menu 1: Go back to the main menu by pressing. Now, from the main menu, press the sequence Read the Menu Selected The white area on the right of the Codeless Executive Test Instrument window, displays the messages sent by the screen: Winbutton Change 14:21:53.004 [07 06 01 00 00 00] 07 06 01 00 00 00 is the message sent by WinButton1. 06 stands for WinButton object type and 01 for number 1. The debugger displays the message: Winbutton Change 14:23:16.965 [07 06 03 00 00 02] 07 06 03 00 00 02 is the message sent by WinButton3. 06 stands for WinButton object type and 03 for number 3. All codes are in hexadecimal. 2012 4D Systems Page 36 of 39 www.4dsystems.com.au

The WinButton3 button corresponds to Menu 2.1: Let s check it! Go back to the main menu by pressing Now, from the main menu, press the sequence twice. The debugger displays the message Winbutton Change 14:24:43.514 [07 06 04 00 00 05] just as expected. Understand the Messages As WinButton4 button corresponds to Menu 2.2 Prepare a Table with Messages A good idea is to prepare a table with the different messages: Form Button Caption Event Message Form1 WinButton1 Menu 1 onchanged 07 06 01 00 00 00 Form2 WinButton3 Menu 2.1 onchanged 07 06 03 00 00 02 WinButton4 Menu 2.2 onchanged 07 06 04 00 00 05 This table is very useful for interpreting the messages sent by the screen. Note that the other buttons doesn t need to send messages, as they manage the user interface and display another form. Only the terminal options need to send messages. we might expect a message like 07 06 04 00 00 05, with 06 for WinButton object type and 04 for number 4. To learn more about the structure of the messages, please refer to the ViSi-Genie Reference Manual. 2012 4D Systems Page 37 of 39 www.4dsystems.com.au

Summary Element Standard ViSi-Genie Comment Button Simple WinButton Check-box Momentary set to No StatusWhenOff and StatusWhenOn defined Radio-Button Matrix with number Momentary set to No StatusWhenOff and StatusWhenOn defined Menu One Form per menu One WinButton per option, buttons grouped per sub-menu Message for terminal options Back button recommended 2012 4D Systems Page 38 of 39 www.4dsystems.com.au

Proprietary Information The information contained in this document is the property of 4D Systems Pty. Ltd. and may be the subject of patents pending or granted, and must not be copied or disclosed without prior written permission. 4D Systems endeavours to ensure that the information in this document is correct and fairly stated but does not accept liability for any error or omission. The development of 4D Systems products and services is continuous and published information may not be up to date. It is important to check the current position with 4D Systems. All trademarks belong to their respective owners and are recognised and acknowledged. Disclaimer of Warranties & Limitation of Liability 4D Systems makes no warranty, either expresses or implied with respect to any product, and specifically disclaims all other warranties, including, without limitation, warranties for merchantability, non-infringement and fitness for any particular purpose. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. In no event shall 4D Systems be liable to the buyer or to any third party for any indirect, incidental, special, consequential, punitive or exemplary damages (including without limitation lost profits, lost savings, or loss of business opportunity) arising out of or relating to any product or service provided or to be provided by 4D Systems, or the use or inability to use the same, even if 4D Systems has been advised of the possibility of such damages. 4D Systems products are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of the product could lead directly to death, personal injury or severe physical or environmental damage ( High Risk Activities ). 4D Systems and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities. Use of 4D Systems products and devices in 'High Risk Activities' and in any other application is entirely at the buyer s risk, and the buyer agrees to defend, indemnify and hold harmless 4D Systems from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any 4D Systems intellectual property rights. 2012 4D Systems Page 39 of 39 www.4dsystems.com.au