23.11.2012 Views

2 Visual Components Manuals

2 Visual Components Manuals

2 Visual Components Manuals

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introduction to <strong>Visual</strong> <strong>Components</strong> 2.3<br />

4.2.3 Getting Started with the VISAPI Programming Interface<br />

This section contains an introduction to the <strong>Visual</strong> <strong>Components</strong> programming interface. Using this interface,<br />

many interesting additions can be created which cannot be configured using the <strong>Visual</strong> <strong>Components</strong> editor (i.e.<br />

trend).<br />

Interface functions are called using either functions or function blocks. Calling methods depend on which<br />

programming language is used. Our examples, which are written in C and Automation Basic, use functions.<br />

This section is for new users of the <strong>Visual</strong> <strong>Components</strong> programming interface and contains basic steps for<br />

interface "start−up", including simple function calls which execute character functions.<br />

Knowledge of Automation Basic or the C programming language is necessary in this section. If you do not<br />

possess this knowledge, please refer to the corresponding section of the Automation Studio documentation.<br />

These are the individual steps of the application example:<br />

1. Inserting a Visapi Library<br />

2. Inserting a Cyclic Task<br />

3a. C Example Part 1<br />

3a. C Example Part 2<br />

3b. Automation Basic Example<br />

4.2.3.1 Visapi − Tutorial − Inserting the Visapi Library<br />

The Visapi interface is integrated as a library in the Automation Software. The Library Manager must therefore<br />

be opened first to insert the Visapi library into your project.<br />

To do this, click on Open in the menu bar and select Library Manager from the menu.<br />

The Library Manager window appears on the screen. The 'runtime' library is already visible in the library tree.<br />

This is the standard library inserted in each Automation Studio project. Now the necessary Visapi library must be<br />

inserted into the existing library list.<br />

To do this, click on the Insert menu and select the Library entry.<br />

4.2.3 Getting Started with the VISAPI Programming Interface 263

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!