runtimesetup
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| runtimesetup [2020/10/12 13:53] – wikiadmin | runtimesetup [2026/10/02 21:58] (current) – wikiadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | =====Setting | + | =====Setting |
| - | ---- | + | There are a few ways to automatically run your TransSECS deployment or MIX server on your system, depending |
| - | ====Configuring | + | For TransSECS and MIX on Windows you can add the run.bat to the Windows START menu. You can also set up a service wrapper to start, restart, or stop the application from the Services panel. |
| - | When MIX is running, go to your MIX IP Address (e.g. 192.168.1.xx) | + | [[Starting_MIX_TransSECS_Deployments_on_Windows|Windows |
| - | A configuration page " | + | For these applications on Linux you can set up these applications as a service |
| - | Download Logs -- use to get the MIX runtime | + | [[StartMIXonLinuxAsAService|Start |
| + | How to start a runtime | ||
| - | Get Pre-License Key -- use to get the pre-license key for this system | ||
| - | Update or Install an IOT Runtime License -- use to import an ErgoIOTLicense.lic into the running MIX installation | ||
| - | |||
| - | Check License Status -- check the MIX Project Deployment License status and the MIX Runtime License status | ||
| - | |||
| - | {{: | ||
| - | |||
| - | **Licensing the Project** | ||
| - | |||
| - | Projects are are either Trial (if you used a Trial version of MIStudio to build and deploy the project) or Permanent if you used a licensed version (non-trial) of MIStudio to build your project. Trial projects will run only for a limited time, even if the deployment platform (MIX) is licensed. | ||
| - | |||
| - | **Licensing MIX** | ||
| - | |||
| - | MIX is the 24/7 deployment platform for MIStudio projects and needs to be licensed for each system it runs on. This license is the MIX Runtime license (ErgoIOTLicense.lic). | ||
| - | |||
| - | To prepare to license MIX for your runtime platform, use the "Get Pre-License Key" option on the ErgoTechIOT Management Utilities page (setup.html). You need to have MIX running, even if not licensed, to access this configuration utility. When you click on "Get Pre-License Key" a key will be generated which needs to be sent (emailed) to your distributor who will return a license file for this system. | ||
| - | |||
| - | After you receive the license file (ErgoIOTLicence_xxxxxxx.lic, | ||
| - | |||
| - | |||
| - | ====TransSECS Deployments==== | ||
| - | |||
| - | TransSECS will generate self-contained deployment code in your project directory. For each deployment distributed to a runtime system, a TransSECS runtime license must be installed to validate the installation. | ||
| - | |||
| - | ===Windows=== | ||
| - | |||
| - | TransSECS deployments can be set up on Windows systems with these steps: | ||
| - | |||
| - | 1. Make a simple directory on the Windows system for the deployment. For example, C:/ | ||
| - | |||
| - | 2. Copy the contents of the deployment to this new directory. You can include the ToolName directory with all the generated files, or you can take the contents of the ToolName directory and copy the complete contents to a new simple directory created in 1. above | ||
| - | |||
| - | 3. A JRE must be available to run the software. This can be either installed on the Windows system or copied from the TransSECS installation (MIStudioSuite/ | ||
| - | |||
| - | {{: | ||
| - | |||
| - | 4. Edit run.bat to point to this local JRE, or use the system' | ||
| - | |||
| - | Open run.bat in a text editor. Edit the line that says: | ||
| - | set path=C: | ||
| - | |||
| - | to use a local JRE: | ||
| - | < | ||
| - | set path=.\jre\bin\; | ||
| - | </ | ||
| - | |||
| - | to use the system' | ||
| - | < | ||
| - | set path=%path% | ||
| - | </ | ||
| - | |||
| - | ====TransSECS Build without Opening the Application==== | ||
| - | |||
| - | TransSECS tool files (.tsx and .xpj) are ASCII text XML file. These can be stored in a source control system such as GIT, Source Safe or similar for tracking and change management. | ||
| - | |||
| - | The TransSECS " | ||
| - | |||
| - | The headless build behaves exactly as if the application had been opened and the " | ||
| - | |||
| - | If you are running TransSECS from the executable, either the Windows TransSECS.exe (TransSECSDevices.exe for the Devices version) or on Linux from the Linux executable, you can edit the TransSECS.conf (or TransSECSDevices.conf) file to enable the headless build. | ||
| - | |||
| - | First, close all TransSECS applications. | ||
| - | |||
| - | Copy the TransSECS.exe to TransSECSHeadless.exe and TransSECS.conf to TransSSECSHeadless.exe (for Devices, copy the TransSECSDevices.exe and TransSECSDevices.conf - whichever file you have been using to start TransSECS) | ||
| - | |||
| - | In TransSECSHeadless.conf, | ||
| - | |||
| - | < | ||
| - | wrapper.java.additional.7=-Dtranssecs.headless=false | ||
| - | </ | ||
| - | |||
| - | and change to: | ||
| - | |||
| - | < | ||
| - | wrapper.java.additional.7=-Dtranssecs.headless=true | ||
| - | </ | ||
| - | |||
| - | When you double-click the executable, the application will start, compile the last project you had open, and then exit. You can test this by deleting the deployment folder in the project and use the headless feature to rebuild it. You should see all the same files, including deployment, documentation, | ||
| - | |||
| - | If you are running TransSECS from a script or a batch file, you will need to add the system property " | ||
| - | |||
| - | < | ||
| - | java -Dtranssecs.headless=true .... | ||
| - | </ | ||
| - | |||
| - | The property name is case sensitive, it must be all lower case. | ||
| - | |||
| - | ===Choosing which Project to build=== | ||
| - | |||
| - | When running TransSECS normally, the project loaded is described in the " | ||
| - | |||
| - | < | ||
| - | #Default TransSECS Application Properties 2007-09-14 10: | ||
| - | #Fri Sep 14 10:05:27 MDT 2007 | ||
| - | lastBrowsedDirectory=C: | ||
| - | project.dir=C: | ||
| - | way_criteria=1 | ||
| - | sort_criteria=3 | ||
| - | </ | ||
| - | |||
| - | The same concept applies when running a headless TransSECS build, the project listed in the " | ||
| - | |||
| - | When running TransSECS, the property file to read is provided as an argument to the application. | ||
| - | |||
| - | < | ||
| - | # Application parameters. | ||
| - | wrapper.app.parameter.1=com.ergotech.transsecs.secs.TransSecs | ||
| - | wrapper.app.parameter.2=application.properties | ||
| - | </ | ||
| - | |||
| - | For this argument, you can provide the full path the a customized application.properties file. TransSECS will read that file at startup and compile the project described in the file. For example, if you create a file in the folder C: | ||
| - | |||
| - | < | ||
| - | #Default TransSECS Application Properties 2007-09-14 10: | ||
| - | #Fri Sep 14 10:05:27 MDT 2007 | ||
| - | lastBrowsedDirectory=C: | ||
| - | project.dir=C: | ||
| - | way_criteria=1 | ||
| - | sort_criteria=3 | ||
| - | </ | ||
| - | |||
| - | and you change the .conf file to read: | ||
| - | |||
| - | < | ||
| - | wrapper.app.parameter.2=C: | ||
| - | </ | ||
| - | |||
| - | When you start the headless build, the project in C: | ||
| - | |||
| - | This property can, again, be added as an argument in a script of batch file. This time at the end of the command line: | ||
| - | |||
| - | < | ||
| - | java -Dtranssecs.headless=true .... C:/ | ||
| - | </ | ||
| - | |||
| - | |||
| - | ===Building only a Single Tool=== | ||
| - | |||
| - | Some TransSECS projects contain multiple tools. | ||
| - | |||
| - | < | ||
| - | wrapper.app.parameter.2=C: | ||
| - | wrapper.app.parameter.3=GEMTool | ||
| - | wrapper.app.parameter.4=RFIDReaderTool1 | ||
| - | </ | ||
| - | |||
| - | ====OPCUA Server Deployments==== | ||
| - | |||
| - | MIX and ErgoTech' | ||
| - | |||
| - | |||
| - | ====Other Deployments==== | ||
| - | |||
| - | **//How To//** | ||
| - | |||
| - | |||
| - | [[Products/ | ||
| - | How To start a Windows batch file in hidden mode | ||
| - | |||
| - | [[Products/ | ||
| - | How To start a runtime when Windows starts up | ||
runtimesetup.1602525182.txt.gz · Last modified: by wikiadmin
