Entering a Design

VisualApplets offers a graphical user interface for applet design. No scripting, no programming-code is required to be edited. The user interface is very simple and especially designed for easy learning by users. No technical background in programming is required.

Creating a New Project

To create a new VisualApplets project file:

  1. Click FileNew ( Ctrl+N ) or use the icon New from the file icon bar in the main window. A New Project window will open which allows you to specify a project name.

  2. Enter the project name. The project name will be the suggested file name later on.

  3. You also have to specify the target hardware platform and the target runtime. If you are not sure which platform and runtime will be used, you can always change these settings later on ( DesignChange Platform and DesignChange Target Runtime ). Finalized applets can only be used in a runtime which corresponds to the target runtime defined in the applet.

Start of a new Project

Figure 23. Start of a new Project


For each project, a version number (string) and a project description can be added.

  1. Click Properties to open the Project details window. Here, you can enter the version of your design project and a project description. This information will be displayed in the Project Info window of the information panel.

Edit Project Details

Figure 24. Edit Project Details


After all settings have been made:

  1. Click OK to close all windows and to start the new project. VisualApplets will now open your new project.

[Tip] Tip

Only one project can be loaded at a time. If you want to open several projects at the same time, simply use a second VisualApplets instance.

Opening an Existing Project

To open an existing project:

  1. Click FileOpen ( Ctrl+O ) or use the icon Open from the file icon bar.

  2. Select the VisualApplets project file from your file system an click Open.

[Tip] Opening Designs created in older VisualApplets versions

If you are opening a project file which has been edited with a previous version of VisualApplets, the program might ask you to convert the file to the new version. For more information on migrating from previous versions, see 'Migration from Older Versions'.

Alternatively, you can select a project you have currently worked on directly:

  1. Go to FileRecent Designs. VisualApplets offers you a list of recently opened VisualApplets files (*.va).

  2. Select the project file you want to proceed working on.

[Tip] Number of displayed files

You can configure the actual number of files displayed. How to do that, see section 'Number of Files under File -> Recent Designs'.

Defining the FPGA Clock (mE5 marathon only)

If you are designing for another hardware platform than mE5 marathon, skip this section and proceed with the following one.

If you are designing for a mE5 marathon hardware platform, you can specify the FPGA clock frequency. You can select any value between 125 MHz and 312.5 MHz.

To define the FPGA clock:

  1. In menu Design, select menu item Change FPGA Clock.

    Menu Design, menu item Change FPGA Clock

    Figure 25. Menu Design, menu item Change FPGA Clock


  2. Specify the desired frequency via slider or spin box.

Slider and spin box for selecting FPGA clock frequency

Figure 26. Slider and spin box for selecting FPGA clock frequency


The selected clock frequency (Design Clock) is displayed in operator AppletProperties.

Inserting Operators

Inserting new operators into a project is very easy:

  1. Select the required operator in the library panel (see 'The Windows of the Library Panel' if you want to know how to find the operator you are looking for).

Operator Libraries

Figure 27. Operator Libraries


  1. To add an operator from the library list into your diagram window, simply drag and drop the operator into the design window. The selected operator is now added to your project.

[Tip] Operator Instances in Your Design

As soon as you drag and drop an operator into your design, the operator gets instantiated and you work with an instance of the chosen operator. This instance in your design we call a design module. You can give an individual name to each module of your design (the module name). This way, you can even give an individual name to each of several instances of the same operator.

  1. Move the modules in your design into the right position by using drag and drop.

[Tip] Quick Insertion of New Modules

There is an alternative method to add operators into a project. You can use the Add Operator window which you open via DesignAdd Operator ... ( Ctrl+I ). This window is especially useful if you need to add a series of operators you know by name. The shortcut for accessing the window, in combination with the window's search field facilitate the efficient and fast insertion of multiple operators. The operator you chose in this window is added to the design window currently in focus.

Deleting Modules

If you want to delete a module:

  1. Select the module and press the DEL key, or right click the module and select Delete from the menu.

Adding Links

The modules of a project have to be connected via links. To connect your modules using links:

  1. Click the output port of a module and hold the mouse button.

  2. Move the mouse to the input port of the next module and release the mouse button.

Now, the link will be established. You can also connect modules from an output port to an input port, i.e. draw in reverse direction.

There are two alternative ways to connect modules which you might find efficient:

  • Click the output port of the first module you want to connect. Then, click the input port of the module you want to connect to the first module. Now, the link will be established. Or,

  • Drag one of the modules and drop it on the port of the module you want to connect it with. This will generate a link between the touching ports.

[Note] Some Linking Rules

  • It is not possible to add more than one link to a single port.

  • An input port always has to be connected to an output port. It is not possible to connect two input ports or two output ports.

  • Loops are generally not allowed in projects. See 'Rules of Links' for more information.

A drag and drop of an existing link to another port can change the connection. The link path of an established link can be changed by moving the line using drag and drop. However, new edges can't be inserted.

[Tip] Tip

You can delete a link by selecting it and pressing the DEL key (or, right-clicking it and selecting Delete).

Clipboard

Modules and links in a project can be copied and pasted to and from the clipboard.

  1. Select the operators and links to be copied, for example by drawing a rectangular selection area.

  2. Copy the selection via EditCopy ( Ctrl+C ) or from the context menu, select Copy.

  3. To insert, select EditCopy ( Ctrl+V ) or from the context menu, select Paste.

If you use the context menu, the inserted modules and links will be positioned at the current mouse position. Otherwise, the inserted modules and links are positioned in the center of the currently visible part of the design window currently in focus.

Modules are copied with all their parameter settings. Links between modules are copied, too. However, a link which is not connected to two copied modules can't be copied as it is not allowed to have single-sidedly connected links. This can result in a changed output link format of a copied module. Verify the parametrizations after using the clipboard.

[Note] Copying & Pasting to Other Projects

You can copy parts of a project to other projects in different program instances. However, you should not use the clipboard between different versions of VisualApplets.

Some operators (e.g., EventToHost) are available only for specific platforms. If you copy such an operator to a design for a target hardware platform that does not support this operator, DRC1 delivers an according error message:

Error message in case an operator is not applicable for another hardware platform

Figure 28. Error message in case an operator is not applicable for another hardware platform


Undo / Redo

Undo and redo operations are possible in VisualApplets.

If you want to undo your last action:

  • Select EditUndo ( Ctrl+Z ).

If you want to redo your last action:

  • Select EditRedo ( Ctrl+Shift+Z ).

The operations require some seconds to be processed.

Saving a Project

The project is not automatically saved.

  1. To save your design, use FileSave ( Ctrl+S ) or FileSave As... (or use the according menu options / toolbar buttons).

You can save your design either in the *.vad file format or in the *.va legacy file format. If you want to open your design in VisualApplet version 3.3.2 or older, save your design in the *.va legacy file format. Basler recommends to always use the *.vad file format, if possible.

Designs saved in the *.va legacy file format are backwards compatible, which means you can still open them in VisualApplets and you can still save your design in the *.va file format. However, if your design in the *.va legacy file format contains a protected user library element, the content of the protected element isn't saved along with the design. In this case, the user library that contains this element must be imported in VisualApplets when you want to open the *.va legacy file format.

[Note] File Name and Project Name

If you save your design for the first time, or if you use the Save as... option, the Save/Save as... dialog will offer the project name as the name for your design file.

Navigating Your Design

A design might consist of a large network of modules in several design windows. Therefore, it is very helpful to have some navigation tools which facilitate to keep track with the details of your design.

These are the most important ones:

  • Changing design windows

    To change between the windows in a design, you can use Window Diagram Windows ( Ctrl+F8 ).

  • Finding a module in your design

    To find a specific module in your design, you have two possibilities:

    • You can use the search options of the Module Info window. Click the Module Info tab in the information panel, and enter your search string. You don't have to enter a full module or operator name. Entering a few characters is often enough. Make sure you use the right filter for your search: Use the Name filter if searching for an individual module name. Use the Type filter if searching for the name of the operator your looked-for module is an instance of.

    • Alternatively, you can also use the Search Module window which you open via Design Search Module... ( Ctrl+F ). Enter your search string. You don't have to enter a full module or operator name. Entering a few characters is often enough. Make sure you use the right filter for your search: Use the Name filter if searching for an individual module name. Use the Type filter if searching for the name of the operator your looked-for module is an instance of.

  • Selecting a module:

    To select a module in a design window, click the module.

  • Using the module menu:

    To use the available menu for a module, right-click the module and choose the option you need from the menu.