20sim installation
TRANSCRIPT
-
8/21/2019 20sim Installation
1/19
20-sim
Installation
Windows Vista / XP
-
8/21/2019 20sim Installation
2/19
i
20-sim Installation
2009, Controllab Products B.V.
Author: Ir. C. Kleijn
Disclaimer
This manual describes the installation procedure of the modeling and simulation package 20-sim and
related software and hardware products.
Controllab Products B.V. makes every effort to insure this information is accurate and reliable.
Controllab Products B.V. will not accept any responsibility for damage that may arise from using this
manual or information, either correct or incorrect, contained in this manual.
Information in this document is subject to change without notice. No part of this document may be
reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose,without the express written permission of Controllab Products B.V.
Reference
Kleijn, C.
20-sim Installation
Enschede, Controllab Products B.V., 2009
Information
Controllab Products B.V.
Address: Drienerlolaan 5 HO-8266
7522 NB Enschede
the Netherlands
Phone: +31-53-4893096
Fax: +31-53-4892223
Internet: www.20sim.com
www.controllab.nl
E-mail: [email protected]
-
8/21/2019 20sim Installation
3/19
Installing 20-sim
ii
Table of Contents
1 20-SIM 4.1 1
1.1
Single License 1
1.2 Floating License 2
1.3
Classroom Kit 5
2 20-SIM 4C 1.1 6
2.1 Introduction 6
2.2
Connecting the Target 6
2.3
Installing 20-sim 7
2.4
Installing 20-sim 4C 9
3 TORSION BAR 1.0 10
3.1
Hardware 10
3.2
Software 12
4 TS-7300 DEMONSTRATION KIT 1.0 13
4.1 Hardware 13
4.2
Software 15
INDEX 16
-
8/21/2019 20sim Installation
4/19
Installing 20-sim
1
1 20-sim 4.1
1.1 Single License
A single license must be stored on the computer on which 20-sim is installed. During runtime 20-simwill check if the program is running from the same computer. You have to follow the steps below to
get a single license:
1. Install 20-sim and start the program. If you do not have an installation version of the
program download it from the 20-sim website: www.20sim.com.
2.
From the Helpmenu select Registration/Update License.
This will open the Registration/Updatewindow.
Use the Registration/Update window to request for a license.
3.
Click the Request Licensebutton.
-
8/21/2019 20sim Installation
5/19
Installing 20-sim
2
Now a window will open like:
Copy the text to your e-mail program and fill in the data.
4. Select the license typeTest or Individual PCandCopythe text to a text editor, fill-in the
missing dataand send it by e-mailto [email protected].
Within two working days, you will receive an e-mail message back with a license file that is unique
for your computer.
5. Overwrite the old license file 20sim.lic (click the Locate License Filebutton to find out
where) with the new one.
If you have purchased multiple licenses, perform step 1 to 5 for every computer on which 20-sim
should be installed.
1.2 Floating License
A floating license allows a predefined number of users to work with 20-sim at the same time. It must
be stored on a server that is reachable from all workstations that have 20-sim installed. If you have
purchased 20-sim, you have to perform the following actions to get a floating license:
1. Install20-sim on a workstation and start the program. If you do not have an installation
version of the program, download it from the 20-sim website: www.20sim.com.
2.
From the Helpmenu select Registration/Update License.
-
8/21/2019 20sim Installation
6/19
Installing 20-sim
3
This will open the Registration / Updatewindow.
Use the Registration/Update window to request for a license.
3. Click the Locate License Filebutton.
Now the location where your license file has been stored is shown. By default this will be in the
C:\Program Files\20-sim 4.1\binfolder.
4. Copy the license file (20sim.lic) to a location that is open to all users, preferably on a server.
5. Again click the Locate License Filebutton.
6.
Change the location of the license file so that it points to the new location (i.e. on the server).
7.
Click the Request Licensebutton.
-
8/21/2019 20sim Installation
7/19
Installing 20-sim
4
Now a window will open like:
8. Select the license type Server License and Copy the text to a text editor, fill in the
missing dataand send it by e-mailto [email protected].
Within two working days, you will receive an e-mail message back with a license file that is unique
for your computer.
9. Overwrite the old license file 20sim.lic (on the server)with the new one.
10. Make sure that this file is open for every user: Every userin the network should have read
and writepermission for this license file.
For other workstations, the procedure is easy: Install 20-sim and use the Locate License File
button, to point to the shared license file (server).
-
8/21/2019 20sim Installation
8/19
Installing 20-sim
5
1.3 Classroom Kit
For educational purposes, 20-sim is available as a Classroom Kit. A Classroom Kit allows the owner to
make unlimited copies for use by students and teachers. Copies may be used at the educational
institute or at home. A Classroom Kit comes with two types of licenses:
student license which may be distributed among students
floating license which can be installed at the educational institute
Student License
A student license has no copy-protection but a time limitation of about one year. Controllab Products
B.V. will take care that every year a new student license is sent to the owner of a Classroom Kit.
1. The student license has to be stored separately. You have to make copieswhenever you
want to distribute this license (or place it on your intranet).
This license can only be used when copies are made from the original file. Once it has been used it
cannot be copied anymore. Of course the staff is also allowed to use the student license. This licensemay also be used by students and staff at home.
2.
Install 20-sim 4.1. For installation guidelines see section 1.1.
3.
Overwritethe existing license file20sim.lic with the student license. Usually the
existing license can be found at: "C:\Program Files\20-sim 4.1\bin".
Floating License
The floating license will have no time limitation but it is copy protected. It allows you to use 20-sim
on multiple machines. For a floating license, all 20-sim programs use a license file that is stored on a
central location.
1.
To install a floating licensefollow the instructions of section 1.2.
-
8/21/2019 20sim Installation
9/19
Installing 20-sim
6
2 20-sim 4C 1.1
2.1 Introduction
20-sim 4C is a prototyping environment that allows you to connect 20-sim models to physical
systems. To test the proper working we have to check that both 20-sim 4C and 20-sim are installedand a target is connected.
2.2 Connecting the Target
20-sim 4C uses an ethernet connection to communicate with a target. This connection can be
established by a cross cable that is connected between your PC and the target directly or by a
network connection. Using a cross-cable to connect the host PC to the target is recommended if you
start 20-sim 4C for the first time.
Plug in the cross cable or network cable.
Cross Cable
1. Plugthe cross cablein the connector of your target.
2.
The other endof the cross cablemust beplugged into your PC computer.
It may last several minutes before your PC will notice that a cross cable is connected. So be patient if
20-sim 4C cannot make a connection immediately.
Network Cable
1. Plug the network cablein the connector of your target.
2. The other endof the network cablemust be plugged into a switch or hub of the
network.
Use a 'normal' network cable to connect your target via a switch or hub to your network. If your
network provides a DHCP server the configuration is automatic. If your network does not provide a
DHCP server make sure your network is configured in the 192.168.1.x range and that your PC
computer has a proper connection to the network.
-
8/21/2019 20sim Installation
10/19
Installing 20-sim
7
2.3 Installing 20-sim
20-sim 4.0
1. Install 20-sim 4.0 Professional.
2.
Make sure that you have a 20-sim licensethat allows you to run 20-sim 4C. Contact your
local distributor how to get such a license.
3. From theWindows Start menu open20-sim.
4. In the 20-sim Editorfrom the Toolsmenu click the Optionscommand.
5. In the window that pops up, click the Code Generationtab.
In 20-sim 4.0 you can enter the ini-file that is used for C-code generation.
6.
Change the ini-filefor C-code Generation to:
C: \ P r og r a m Fi le s\ 2 0 -s im 4 C 1 .1 \ t a rg e t \ co m m o n \ 2 0 SI M \ t a rg e t s .i n i
Note: depending on the location of 20-sim 4C, the path may be different. Enter you own path here.
The file targets.inishows where 20-sim 4C is located. If you are generating C-code from 20-sim, the
code will be automatically transferred to 20-sim 4C.
20-sim 4.1
1. Install 20-sim 4.1 Professional.
2. Make sure that you have a 20-sim licensethat allows you to run 20-sim 4C. Contact your
local distributor how to get such a license.
3.
From theWindows Start menu open20-sim.
4. In the 20-sim Editorfrom the Toolsmenu click the Optionscommand.
5. In the window that pops up, click the Folderstab.
-
8/21/2019 20sim Installation
11/19
Installing 20-sim
8
In 20-sim 4.1 you can set libraries and code folders.
6.
Select the C-Code Foldersbutton.
Now you will see an editor where you can enter the path to C-code targets and give these targets a
meaningful name.
7. Add the folder C: \ P r o g r am Fi le s\ 2 0 - s i m 4 C 1 .1 \ t a r ge t \ c om m o n \ 2 0 SI M and the label
20-sim 4C.
Enter the folder with the 20-sim 4C target.
Note: Depending on the location of 20-sim 4C, the first part of you folder may be different. Enter
you own folder here. If you are generating C-code from 20-sim, the target 20-sim 4C will be
available in the list of targets.
-
8/21/2019 20sim Installation
12/19
Installing 20-sim
9
2.4 Installing 20-sim 4C
1. Install 20-sim 4C on the same computer as 20-sim 4.0 Professional.
2.
Make sure that you have a 20-sim licensethat allows you to run 20-sim 4C. Contact your
local distributor how to get such a license.
3. From theWindows Start menu open20-sim 4C.
-
8/21/2019 20sim Installation
13/19
Installing 20-sim
10
3 Torsion Bar 1.0
3.1 Hardware
For the proper operation of the Torsion Bar, a PC computer is required that is connected to the
Torsion Bar either directly with a cross cable or via a network. On the PC computer, the softwarepackages 20-sim Professional and 20-sim 4C have to be installed. This section describes how to
make the various installations. In the next sections we will run two models to test if the Torsion Bar
is working properly.
Power
1.
Checkif the correct power adapterwas supplied.
The Torsion Bar is delivered with a power adaptor that yields 12 V output. Depending on the country,
a 220 V or a 110 V input is used. Check if the power adaptor has the correct input voltage.
2.
Plug inthe power adapter.
Plug in the power cable just below the motor. Right of the power connector is the power switch.
The output of the power adaptor can be connected just below the motor. The input of the power
adaptor has to be connected to you local 220 V or 110 V supply.
3. Switch onthe power.
The power switch is located right to the power cable connector. If you switch it down some LED's onthe controller board should start to shine.
-
8/21/2019 20sim Installation
14/19
Installing 20-sim
11
Cross Cable
The network can be connected in two ways using a cross cable or a network cable. Using a cross-
cable to connect the host PC to the Torsion Bar is the recommended approach.
1.
Plug inthe cross cablein the most left connector of the controller board.
To most left connect or is used for a network connection.
2. The otherendof the cross cablemust be plugged in into your PC computer.
Note: It may last several minutes before your PC will notice that a cross cable is connected. So be
patient if 20-sim 4C cannot make a connection immediately.
Network Cable
1.
Plug inthe network cablein the most left connector of the controller board.
2. The other endof the network cablemust be plugged in into a switch or hub of the
network.
Use a 'normal' network cable to connect the Torsion Bar Setup via a switch or hub to your network. If
your network provides a DHCP server the configuration is automatic. If your network does not
provide a DHCP server make sure your network is configured in the 192.168.1.x range and that your
PC computer has a proper connection to the network.
-
8/21/2019 20sim Installation
15/19
Installing 20-sim
12
3.2 Software
On the PC computer two software packages have to be installed: 20-sim 4.0 Profession or higher and
20-sim 4C 1.1 or higher.
1.
Install 20-sim 4.0 Professionalor higher. For installation guidelines see chapter 1.
2. Install 20-sim 4C 1.1or higher. For installation guidelines see chapter 2.
In the examples, 20-sim models are used to generate C-code. These models have to be copied onto
your PC computer.
3. Copythe example files from the CD-Rom(e.g. D:\Torsion Bar\20-sim\*.*) to a local folder
(e.g. C:\My Documents\Torsion Bar\20-sim\*.*).
Please check that you have read and write accessto the local folder. Therefore we advise to copy
the files to the Windows "M y D o c u m e n t s " folder.
-
8/21/2019 20sim Installation
16/19
Installing 20-sim
13
4 TS-7300 Demonstration Kit 1.0
4.1 Hardware
To run the TS-7300 board, a PC computer should be connected, either with a cross cable or via a
network. On the PC computer, the software packages 20-sim Professional and 20-sim 4C have to beinstalled. This section describes how to make the various installations. In the next section we will run
a model to test if the TS-7300 board is working properly.
SD-Card
1.
Check if the SD-Cardwas inserted.
Check if the SD-Card is inserted in the board.
Power1.
Check if the correct power adapterwas supplied.
The Demonstration Kit is delivered with a power adaptor that yields 5 V output. Depending on the
country, a 220 V or a 110 V input is used. Check if the power adaptor has the correct input voltage.
2. Connectthe power adapter to the board as indicated in the next picture.
-
8/21/2019 20sim Installation
17/19
Installing 20-sim
14
Connect the power adaptor to the board at the opposite side of the network connector.
3. Switch onthe power.
You switch on the power by putting the power plug of the power adapter into the local grid. As soon
as the power is on, the LED's on the controller board should start to shine. The board will now
automatically boot from the SD card.
Cross Cable
The communication between the TS-7300 board and the host PC is established with a cross cable or
a network cable. A cross cable is used for a direct connection with the PC. A network cable is used for
an indirect connection through a network switch or other network components. Using a cross-cable to
connect the host PC to the TS-7300 board is the recommended approach for first time users.
1.
Plug inthe cross cablein the most left connector of the controller board.
To most left connect or is used for both the cross cable and network cable.
2.
The other endof the cross cable must be plugged into your PC.
It may last several minutes before your PC will notice that a cross cable is connected. So be patient if
20-sim 4C cannot make a connection immediately.
Network Cable
1.
Plug inthe network cablein the most left connector of the controller board.
2.
The other endof the network cable must be plugged in into a switch or hub of the
network.
Use a 'normal' network cable to connect the TS-7300 board Setup via a switch or hub to your
network. If your network provides a DHCP server the configuration is automatic. If your network
does not provide a DHCP server make sure your network is configured in the 192.168.1.x range and
that your PC computer has a proper connection to the network.
-
8/21/2019 20sim Installation
18/19
Installing 20-sim
15
Potentiometer and LED
1.
Checkif the potentiometerand the LEDconnectors are mounted properly .
The potentiometer connector has to be mounted on the DIO1 pins as indicated in the next figure. The
LED connector has to mounted on the DIO2 right pins.
The correct mounting of the connectors.
4.2 Software
On the PC computer two software packages have to be installed: 20-sim 4.0 Professional or higher
and 20-sim 4C 1.1 or higher.
1.
Install 20-sim 4.0 Professional or higher. For installation guidelines, see the 20-sim
Getting Started manual.
2. Install 20-sim 4C 1.1 or higher. For installation guidelines, see the 20-sim 4C Reference
manual.
In the examples, 20-sim models are used to generate C-code. These models have to be copied onto
your PC computer.
3.
Copythe example files from the CD-Rom(e.g. D:\TS-7300 Demonstration Kit\20-sim\*.*)to a local folder (e.g. C:\My Documents\TS-7300 Demonstration Kit\20-sim\*.*).
Please check that you have read and write accessto the local folder. Therefore we advise to copy
the files to the Windows "M y D o c u m e n t s " folder.
-
8/21/2019 20sim Installation
19/19
Installing 20-sim
16
Index
20-sim 4.0 6, 10
20-sim 4.0 Professional 6, 10
20-sim Models 10
C-code Generation 7
C-code Generation dialog 7
Code Generation tab 6, 7
Connecting 6
Controllab Products B.V. i
Cross Cable 6, 10
Floating License 2
ini-file 7
Installation 6, 10
Installing 20-sim 7
Installing 20-sim 4C 6, 9
license 6
License 1, 2
Locate License File 2
Models 10
Network Cable 6, 10
Registration/Update License 1, 2
Request License 1, 2
Requirements 6, 10
Single License 1
Software 10
Windows 6, 10
Windows 2000 6
Windows Vista 6, 10
Windows XP 6, 10