Tutorial 2 : how to install a Device Server ?
This tutorial will show you what is a device server, and how to install it with JIVE (before developping a new one, in a future tutorial)
Olivier Taché / CEA (LIONS tango web site)
What is a Device Server ?
It is not so easy to understand what is exactly a Device Server (except maybe for Tango gurus).Let's start with an example : you want to control a motor. After development, you have one executable application motor.exe.
On each computer this application can have one or many instances (with differents names).
Each instance have one class motor and can command many real devices motors (theta, 2theta, alpha,...) with servers. Each device have to be referenced by a name in the TANGO tree.

A device server can have many classes. For example, if you have to access to your motor by a GPIB bus, you can use a GPIB device server with the GPIB class.
Then you can develop a MotorGPIB application wich implement a motor class and a gpib class. In this server, calls between different devices will be done as function calls.

How installing a Device Server with JIVE ?
For this second part, we will use a Device Server named PyDsSerial wich can manage Serial port (RS232).Starting the JIVE Server Wizard
You can start the JIVE Server Wizard on the tools menu, or by clicking on the Server icon.
Server Registration
The server is registred on the TANGO database by specifying the server name (application or executable name) and the instance name (different for each application).
Start the server
Then you have to start the server. On windows, you can open a command prompt window and typing 'applicationname.exe instance'. For python, you can create a .bat file for launching python application.
Class declaration
The wizard detect the class name. For each class you have to specify properties.
Setting the device name

Setting the properties
The last step is to setting the device properties.
That's all folks ! You can start playing with your server !

