Altia Design C Code Tutorial (C++PDF)
This C++ tutorial covers the details of Altia Design C Code Tutorial.In this PDF couers the Altia Design graphics and user interface software can be used in conjunction with various simulation tools (such as SystemBuild, Simulink and Statemate) or external C code. The Altia Design package includes an editor, runtime engine and numerous libraries of components for quickly creating user interfaces.
1.0 Introduction Altia Design graphics and user interface software can be used in conjunction with various simulation tools (such as SystemBuild, Simulink and Statemate) or external C code. The Altia Design package includes an editor, runtime engine and numerous libraries of components for quickly creating user interfaces. In addition to using the supplied components to create graphical front ends, the Altia Design product allows users to make modified versions of existing components and create their own components in the editor without programming. With these features, a modeler can quickly create a user interface prototype for product simulations that looks and behaves like the product’s real user interface. The goal of this tutorial is to explore the process of creating an Altia Design GUI and connecting it to an external C client program. In this tutorial, we will discuss every step necessary to develop a simple system that exercises this connection. 2.0 Tutorial Overview Before you begin this half-hour tutorial, make sure you have Altia Design installed on your machine. If you need a new copy of Altia Design, please call Altia at (719) 598-4299 or visit our web site at www.altia.com. 3.0 Use Altia Design to Create a Simple GUI 1. Open the Altia Design editor by choosing its icon from the Altia Design program group. 4.0 Creating External Connections For the GUI 1. The process of sending data from C code to our Altia design is simplified by the use of external signals (or connectors). These connectors offer easily accessible entry points for external programs. Let’s add a few connectors to our sample design. 2. From the Altia Design Connections menu, choose External Signals... to open the external signals dialog. Initially, there will be no external signals in the dialog. 3. From the Edit menu of the external signals dialog, choose the Add Connection... option. This will open a blank Edit Connection dialog. 5.0 Write Your Client Code This section contains some simple code that can be used to monitor and control our design. An uncommented version is listed first, but an extensively commented version is also included later on in this section. Reading the code’s comments is a good way to learn how to write C code that is connected to an Altia design. 6.0 Test Your Altia GUI/Client Code Interaction 1. After creating an executable file from the program in the previous section, go back to the Altia Design window and choose Start Client... from the Client menu. In the dialog that opens, find and select your executable then press Open. 2. To interact with the client code that is now running, all we have to do is put Altia Design in Run mode so that our actions are perceived to be interactions with the objects (and not attempts to edit them). 3. Select the Altia Design main window and press Ctrl-D. Click on the slider with your mouse and drag it from side to side. 4. Notice how the meter displays a value that is 80% of the slider’s current value. Wowie. A really cool feature of Altia is that it is very easy to change the properties of the objects on our virtual front panel while the simulation or code is still running. Switch Altia Design back into Edit mode and give it a try. 5. When you are ready to stop the client code, choose Disconnect All Clients from the Altia Design Clients menu. 7.0 Tutorial Summary In this tutorial, we have created an Altia GUI using libraries of pre-built components. We used the connection dialogs in Altia Design to create external connectors and then connected them to our GUI. We then wrote a simple client program. Finally, we ran the client code and stimulated it using our Altia interface.
Posted By : Vanessa Cris posted on 07.31.08 back
Most used CPP Tutorials
|
PDF Tutorial Downloads
BSD Tutorial Downloads
C++ Tutorial Downloads
ECLIPSE Tutorial Downloads
FIREWALLS Tutorial Downloads
J2EE Tutorial Downloads
J2ME Tutorial Downloads
JAVA Tutorial Downloads
JBOSS Tutorial Downloads
LINUX Tutorial Downloads
MULTIMEDIA Tutorial Downloads
MYSQL Tutorial Downloads
NETWORKING Tutorial Downloads
ORACLE Tutorial Downloads
PERL Tutorial Downloads
PHP Tutorial Downloads
PYTHON Tutorial Downloads
SAP Tutorial Downloads
SOLARIS Tutorial Downloads
SQL Tutorial Downloads
SYMBIAN Tutorial Downloads
SYSTEM ADMIN Tutorial Downloads
UML Tutorial Downloads
UNIX Tutorial Downloads
VB Tutorial Downloads
WEBLOGIC Tutorial Downloads
XML Tutorial Downloads
MAINFRAME Tutorial Downloads
COBOL Tutorial Downloads
C# Tutorial Downloads
DOTNET Tutorial Downloads
Interview Questions
C++
Java
J2EE
J2ME
CCNA
Networking
Software Testing/QA
Visual Basic
SAP-ABAP
External Tutorials
SAP Tutorials
J2EE Tutorials
Software Testing Tutorials
Jobs in india
|