Application and Target Management

Prerequisites for compiling a Q Application

To compile a Q Application, the target on which the application will run must be configured in Q Studio (see Configuring a new Target).

Prerequisites for deploying and running a Q Application on a target

The target must have Update Server and License Manager components, and a valid UNIQO license, to deploy and run the application on a target.

Note

if the target is unlicensed, the application runs in “demo mode”, which means that it stops running after two hours.

Configuring a new Target

  1. Expand the menu of the image1 button, then click Configure target: the configuration window opens.

  2. Click image2 to add a target, then fill in the available fields. In the Name field enter the data as follows:

    • Windows target: the username must be a system user name. It can be indicated in one of the following ways:

      • “DOMAINUsername”, for domain users

      • “.Username”, for local users on domain machines

      • “Username”, for local users on machines that do not belong to a domain

    • Linux ASEM target: the username must be that of the admin user.

  3. (Only for Windows targets - optional) In the Destination path field, enter the path on the target in which to transfer the application, if the transfer is not to be in the predefined path (in %localappdata%, on partition C).

    Hint

    it is useful to specify a different path in this field when the target’s C partition is protected. The protection would in fact lead to the loss of writes in the project once the target is restarted.

Setting an Active Target

The target that Q Studio can connect to on the network to automatically deploy the compiled application is defined as active. From Q Studio, it is also possible to stop the execution of the application on the active and linked target.

To set a target as active, expand the image3 button menu and click on the desired target.

Compiling, Deploying and Running an Application

  1. Set as active the target on which to run the application (see Setting an Active Target).

  2. Click image4.

  3. Enter the password of the target user and click OK.

Note

automatic run after a project is deployed is natively supported by ASEM HMI50 targets. On other targets however, a manual run or automatic startup has to be configured.

Note

if the target is already running a Q Application, Q Studio stops it.

Stopping an Application on a Target

  1. Set as active the target which runs the application to be stopped (see Setting an Active Target).

  2. Click image5.

Export an application

Expand the menu of the image6 button, then select the export mode:

If the export target is…

Then…

Windows

  1. Select Export Q Application in folder: the export window opens.

  2. Select Windows 64-bit as platform and select the folder to export to.

  3. Click Export: when the export is complete, a warning message appears.

    Note

    the application is exported to a new QApplication folder.

  4. Move the application on the target.

  5. To run the application, double-click the file QRuntime.exe.

Linux ASEM

  1. Select Export Q Application on USB: the export window opens.

  2. Select Linux as platform and select the USB key to export to.

  3. Enter the administrator credentials of the target device to enable the application autoinstall.

  4. (Optional) If you want to overwrite an existing application on the target and delete the files that the same application generated at runtime, select Clear application files.

    Hint

    it is recommended to leave this option unchecked if the application is installed on a running machine.

  5. Click Export: when the export is complete, a warning message appears.

  6. To run the application, insert the USB key in a USB port on the target.

Debian

  1. Select Export Q Application in folder: the export window opens.

  2. Select Debian 64-bit as platform and select the folder to export to.

  3. Click Export: when the export is complete, a warning message appears.

    Note

    the application is exported to a new QApplication folder.

  4. Move the application on the target.

  5. Run the QRuntime file using the Shell command.