Difference between revisions of "TestIT:Installation"

From Nolek Wiki
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 125: Line 125:
  
 
'''''Activate License'''''
 
'''''Activate License'''''
# Insert License key to USB port
 
 
 
* [[TestIT:TwinCAT_Install_License|TwinCAT Install license]]<br />
 
* [[TestIT:TwinCAT_Install_License|TwinCAT Install license]]<br />
  
 
==Install TestIT==
 
==Install TestIT==
 +
  
 
'''Install TestIT:'''
 
'''Install TestIT:'''
Line 136: Line 135:
 
# Press Install and follow the instructions of TestIT License
 
# Press Install and follow the instructions of TestIT License
  
''When the TestIT application is installed, TestIT will open and the database connection must be set up.''  
+
''When the TestIT application is installed, TestIT will open and the database connection must be set up.''
 +
 
 +
==Database Setup==
 +
When TestIT have been installed, a Setup and Production database connection must be setup.
 +
 
 +
[[File:testit_installation_setup_databases.jpg|testit_installation_setup_databases.jpg]]
 +
 
 +
<br>
 +
'''Setup DB Connection'''
 +
<br>
 +
# Server: (local)\sqlexpress
 +
# Checkmark 'Use Windows Authentication'
 +
# Click Connect
 +
# Database: TestITSetup
 +
# Click Save
 +
 
 +
'''Production DB Connection'''
 +
# Server: (local)\sqlexpress
 +
# Checkmark 'Use Windows Authentication'
 +
# Click Connect
 +
# Database: TestITProd
 +
# Click Save
 +
 
 +
<br>
 +
The TestIT setup page should now look like this:
 +
<br>
 +
[[File:testit_installation_setup_databases_done.jpg|testit_installation_setup_databases_done.jpg]]
  
 
==TestIT License==
 
==TestIT License==

Latest revision as of 07:40, 19 July 2021

11 Installation

Folder structure

The files needed for the installation are placed in this folder structure. Before an installation, the Nolek folder must be copied into the C root.

The structure is:

C:/Nolek

  • Applicationfiles - Guide images, text files
  • Backup - Database, previous TestIT versions, etc.
  • Documentation - Sequens diagram, PI diagram, etc.
  • Install - Installation files (TestIT, MS SQL, TwinCat)
  • License - TestIT license folder

MS SQL server 2012 Express

When MS SQL Server is being installed, both the SQL Server and the Management Studio needs to be installed.\\

MS SQL Server:

The guide to install MS SQL server:

  1. Install or verify the Microsoft .Net Framework 4.0
  2. Open the folder C:\Nolek\Install\SQL\2012 – Express and select the correct version of Windows (32 or 64 bit according to the PC)
  3. Double-click on the SQLEXPR_x[32 or 64]_ENU.exe file and press Run
  4. Select the New SQL Server stand-alone installation or add features to an existing installation
  5. Check the “I accept the license terms” and press Next
  6. Press Next in the product update
  7. Press Next in install setup files
  8. Make sure to have the Database Engine Service and SQL server Replication checked, and then press Next
  9. Write a name for the instance and press Next
  10. Wait for the setup to continue in the Next window server configuration, then press Next
  11. Select the Mixed Mode and write a system administrator password. Standard for TestIT is “sa4TestIT”, press Next
  12. Select if Error Reporting is wanted or not, and press Next
  13. Wait for the installation to finish and press Close
  14. Go to management studio setup

Management studio:

(In version 2012 the management studio is separated.)

  1. Install or verify the Microsoft .Net Framework 4.0
  2. Open the folder C:\Nolek\Install\SQL\2012 Express and select the correct version of Windows (32 or 64 bit according to the PC)
  3. Double-click on the SQLManagementStudio_x[32 or 64]_ENU.exe file and press Run
  4. Select the New SQL Server stand-alone installation or add features to an existing installation
  5. Wait for the Setup Support Rules and check to finish, then press Next
  6. Wait for the Setup files to install. Then select 'Add features…' and select the instance you just created (SQL Server) in the dropdown box, then press Next
  7. Select the Management Tools - Basic and press Next
  8. Wait for the window to change and select if Error Reporting is wanted or not, and press Next
  9. Wait for the installation to finish and press Close
  10. Go to Restore database

Restore database

Restore a full database:

  • Press "Connect":


testit_installation_pic1.png


  • Right click on “Databases”, and select “Restore”:


testit_installation_pic2.png


  • Select “Device”, and the “…”
  • Find the database to restore (TestITProd, or TestITSetup)
  • Press OK



  • The database is now restored.
  • Close “SQL Server Management Studio”, and Open TestIT


testit_installation_pic4.png

TwinCat 3

This installation is if TestIT is running with I/O.

Install TwinCat 3:

  1. Open the installation folder: C:\Nolek\Install\TwinCat
  2. Double-click on the setup file and press Next
  3. Select 'I accept the terms in the license agreement', and press Next
  4. Write user name and organization
  5. Select Custom, and press Next
  6. May vary depending on the installed software. Select Microsoft… and press 'Next'
  7. Press Install, then Next and in the end press Finish
  8. Restart the system

Create a new TwinCat project:

  1. Open Visual Studio to create a new project
  2. Select Start and then New project
  3. Select TwinCAT Project and then the TwinCAT XAE Project (XML format)
  4. Write a name: 'TwinCAT IO'
  5. Select location (where to save the file) and press OK

This page will be visible. Note! Your window may look different.

Setup the communication port:

  1. Select TwinCat
  2. Select Show Realtime Ethernet Compatible Devices…
  3. Select the network card to use for TwinCat, and press Enable
  4. Now, follow the instructions of new task, IO configuration, and IO scan (descripted below)
  5. After this, go to Install TestIT

New task:

  1. Right-click on tasks and select add new item
  2. Write the name IO, and write comment if there are any and press OK
  3. Verify that the task is created
  4. Double-click on IO and verify that the settings look like the image. Maybe the port number is 350 – That is ok

IO Configuration:

  1. Right-click on inputs or on output, and select Add new item
  2. Enter the symbol configuration. (Eg. Name: IN01, DataType: Bool) and press OK
  3. The name and description can be changed; just double-click on the symbol and change it
  4. Repeat for all symbols

IO Scan:

  • Connect the I/O modules

Activate License

Install TestIT

Install TestIT:

  1. Go to the installation folder (C:\Nolek\Install\TestIT)
  2. Double-click on the setup.exe file
  3. Press Install and follow the instructions of TestIT License

When the TestIT application is installed, TestIT will open and the database connection must be set up.

Database Setup

When TestIT have been installed, a Setup and Production database connection must be setup.

testit_installation_setup_databases.jpg


Setup DB Connection

  1. Server: (local)\sqlexpress
  2. Checkmark 'Use Windows Authentication'
  3. Click Connect
  4. Database: TestITSetup
  5. Click Save

Production DB Connection

  1. Server: (local)\sqlexpress
  2. Checkmark 'Use Windows Authentication'
  3. Click Connect
  4. Database: TestITProd
  5. Click Save


The TestIT setup page should now look like this:
testit_installation_setup_databases_done.jpg

TestIT License