Windows#
If you need a full-fledged installation on Windows with Tango Database and JAVA tools like Jive, ATK, etc. use the Windows Installer. If you are just looking for precompiled cppTango libraries, head over to the cppTango binaries for windows section.
We don’t describe compiling cppTango from source here as that is very involved and rarely needed. Head over to the cppTango repository for the gritty details.
The packages are tested and build against Windows 10, but should work on earlier versions as well.
Tango installer package#
Download the Windows installer from the TangoSourceDistribution
releases page and execute it.
This packages includes a lot of the default tango tools, but not the MariaDB/MySQL database server.
Configure the TANGO_HOST environment variable#
For Windows 10 and 11 you need to do:
From the Desktop, right-click the very bottom left corner of the screen to get the
Task Menu.From the
Task Menu, clickSystem.Click the
Advanced System Settingslink in the left column.In the System Properties window, click on the
Advancedtab, then click theEnvironment Variablesbutton near the bottom of that tab.In the
Environment Variableswindow click theNewbutton.In the field
NamewriteTANGO_HOST.In the field
Valuewrite proper value.
If it is the only computer in the Tango System provide localhost:10000.
If there is a Tango Host already running on some other computer in your deployment and you have provided proper
address and port in the TANGO_HOST you may start using client and management applications like Jive,
Jdraw/Synoptic. In other case you have to configure the system to perform a role of Tango Host.
Tango Host role#
To make a computer become a Tango Host you need to:
Install MariaDB server#
You may use community version available from https://mariadb.com/downloads.
It is suggested to create dedicated tango user with DB Admin priviledges during installation.
In the installation wizard on a tab Accounts and Roles select button Add User
and create a dedicated user.
Set up environment variables providing credentials to access MariaDB:
Open
Command LineInvoke command:
%TANGO_ROOT%\\bin\\dbconfig.exeNote
This lets you set up two environment variables
MYSQL_USERandMYSQL_PASSWORDused to access the MariaDB server. You can check if variables were set correctly, if not you can set it manually. It’s recommended to restart computer after operation. You may userootcredentials provided upon MariaDB installation if it is your development workstation. For production environment it is suggested to create an additional user withDB Adminprivileges. On Windows you may useMariaDB InstallerfromStartmenu and select the optionReconfigurefor MariaDB Server. Please refer to: https://mariadb.com/kb/en/create-user/Populate database with an initial Tango configuration:
Open
Command LineAdd MariaDB client to be available in the PATH. For version 5.7 the command should be:
set PATH=%PATH%;"C:\\Program Files\\MariaDB\\MariaDB Server 5.7\\bin"Note
Adjust the path according to your MariaDB version and the path where it is installed.
Invoke
cd "%TANGO_ROOT%\\share\\tango\\db\\"Call
create_db.bat
Start a
DataBasedsdevice server:Open a new command line window.
In the command line call
"%TANGO_ROOT%\\bin\\start-db.bat".Note
To make your Tango installation operational you have to have this
DataBasedsrunning permanently. You may either add the command above toAutostartor run it as a service.
Make
DataBasedsrun as a serviceNote
The proposed solution uses NSSM tool which works on all versions of Windows but you may find some other tools available including native srvany.exe.
Download NSSM from http://nssm.cc/
Unpack the file to some convenient location. It is suggested to copy proper (32bit or 64bit) version to the Tango bin folder
%TANGO_ROOT%\\bin\\.Open
Command LineasAdministrator.Change current path to where the
nssmis unpacked or copied, eg.cd "%TANGO_ROOT%\\bin".Invoke
nssm.exe install Tango-DataBaseds. This will open a window where you can define service parameters.In the Application tab provide information as follows (adjust if your installation path is different).
In the Environment tab provide variables with credentials used for accessing the MariaDB, like:
Click
Install Service.Invoke
nssm.exe start Tango-DataBasedsto start the service.Test if everything is ok. Use
Startmenu to run Jive or in command line call"%TANGO_ROOT%\\bin\\start-jive.bat".
Running Device Servers#
The recommended way of running device servers is to use Starter service.
Then you may use NSSM as for DataBaseds.
Assuming you have downloaded it and copied to the Tango bin folder please follow:
Open Command Line as Administrator (if it is not yet open)
Prepare folder for
Device Serversexecutable:
Note
To let your device servers start with Starter service their executables have to be in a path without
spaces. This is a limitation of the current Starter implementation.
Create a directory for
Device Servers. Let it beC:\\DeviceServers\\binwithmkdir c:\\DeviceServers\\binChange to the Tango bin directory with command (
cd "%TANGO_ROOT%\\bin")Copy
TangoTestdevice serverto the newly crated folder:copy TangoTest.exe c:\\DeviceServers\\binAdd entry about the Starter device server you will start on your computer:
Start a tool called
Astor. You may use either WindowsStartmenu or calltango-astor.batIn
Astorwindow select menu&Command --> Add a New HostIn the form that appears provide your
Host nameandDevice Servers PATH.
Accept with
CreateGo back to
Command Line
- Install Starter service:
Invoke
nssm.exe install Tango-Starter.In the Application tab provide information as follows:
Adjust if your installation path is different. In
Argumentsexchangepg-dell-newwith the proper name of your host.In the Environment tab provide TANGO_HOST variable, like:
Click
Install serviceStart the service:
nssm.exe start Tango-Starter.Go back to
Astor.After a while you will see a green led next to your host name:
Run
TangoTestdevice server:You may test the configuration by starting prefigured TangoTest device.
Start
Astorif it is not running.
Double Click on your computer name to open
Control Panel. It opens a window as below:
Click
Start new.In the open window select :
Click
Start Server.In the open window select
Controlled by Astro -> Yes, andStartup Level -> Level 1.
When you click
OKit should start the server. After a while you should see:
- Running your
Device Servers <device server>: You need to copy an executable to the folder configured for
Starter. In our example it isC:\\DeviceServers\\bin.Then use
Astor. After openingControl panelfor your computer (double clicking on a label) and selectionStart New…Select
Create New Serverand follow a wizard.
- Running your
cppTango binaries for windows#
There are zip and msi packages available. Download the appropriate package from the cppTango release page.
If in doubt you should prefer the XXX_x64_shared_release.zip packages. If you need opentelemetry support, you currently have to use the static packages.
Regarding linkage against the Visual Studio runtime libraries, the static cppTango library links statically against the VC libraries and the dynamic library links dynamically against it.
Silent installation#
The MSI packages support silent installation via the documented flags:
msiexec /package libtango*.msi /quiet /passive