A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the...

8
A Memo for the Starting of CS- framework Yulin Tian 1. Install the packages of the CS ; 2. Set the environment variable “DIM_DNS _NODE” 3. Register an ODBC data source for the database ; 4. Configure the database via CSDBTools. exe ; 5. General Object GUI ……………… Dec. 2007 Notice: As an example, the system ID, Data Source, sqlServerNode are all entered with “Lptctrl”, which will be used in the control system of LPT (Lanzhou Panning Trap).

Transcript of A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the...

Page 1: A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the environment variable “DIM_DNS_NODE” ; 3. Register an.

A Memo for the Starting of CS-framework

Yulin Tian

1. Install the packages of the CS ;

2. Set the environment variable “DIM_DNS_NODE” ;

3. Register an ODBC data source for the database ;

4. Configure the database via CSDBTools.exe ;

5. General Object GUI ………………

Dec. 2007

Notice: As an example, the system ID, Data Source, sqlServerNode are all entered with “Lptctrl”, which will be used in the control system of LPT (Lanzhou Panning Trap).

Page 2: A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the environment variable “DIM_DNS_NODE” ; 3. Register an.

Installation of the PackagesTwo things need to be done-----download and installation. You can download every package you need from https://sourceforge.net/project/showfiles.php?group_id=159151 . The basal packages are listed in https://sourceforge.net/project/platformdownload.php?group_id=159151&sel_platform=1035.

Two methods are practicable-----using Unpackager.exe and install them manually.

Where package will be installed

An empty path where package will be extracted during pre-installation

Zip file of package

You can get almost all of the information from these five tables.

Packages will be installed and checked by pressing these

buttons.

Maybe, the status is “depend package version conflict” or “package conflict”, it doesn’t matter if the packages you installed were always newest.

You can install the packages if you unzip them manually in to a correct path.

Pay more attention to the “notes” of each package in the web of sourceforge, especially for the file list.

Take “CSSqlServer” as an example ,the file list of this package is :ROOTPATH\LV820\GPL\Projects\cs-framework\CSTools\CS SQL Server\

* ROOTPATH\binaries\CSSqlServer\*

You just need to unzip the “CSSqlServer” and then put the files into the correct path mentioned above (file list).

The “ROOTPATH” is defined by yourself, in LPT, it is defined as “E:\Systemforctrl”

Page 3: A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the environment variable “DIM_DNS_NODE” ; 3. Register an.

Environment Variable

Set the environment variable “DIM_DNS_NODE” :

My computer (right click) Property Advanced environment variable

The variables and the values are set as:

Variable Value

DIM_DNS_NODE System ID

User variable

Variable Value

PATH ROOTPATH\DIM\dim\bin

System variable

Have a look at the right picture as an example.

Page 4: A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the environment variable “DIM_DNS_NODE” ; 3. Register an.

Registered an ODBC data source for the database

My computer Control panel managing tools

ODBC Data Source Administrator

You can create a Data Source in “User DSN” or “System DSN” (for teledatabase), but the names of Data Source can not be same between these two “DSN” at anytime.

Register the ODBC data source by following steps:

Add Choose a Driver (Microsoft Access Driver) Enter a ODBC Data source Name Choose a Database Source (ROOTPATH\LV820\GPL\Projects\cs-framework\CS_process.mdb ) OK OK FINISH

Have a look at the following picture as an example!

Page 5: A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the environment variable “DIM_DNS_NODE” ; 3. Register an.

Configure the database

For the “SuperProc”. You must enter as “Systemname\Super”.

Here, you must enter the Data Source Name

correctly.

to have a better description of the par

ameters.

You can configure the database as this picture!

Page 6: A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the environment variable “DIM_DNS_NODE” ; 3. Register an.

Starting CSYou should download and install CSSqlServer package which provides a simple SQL server that can be used by a CS based control system. Run the “DIM” and CSSqlServer.exe before starting CS.

Enter the Data Source Name.

Enter the node of your CSSqlServer (if empty it will be assumed to be the local node)

Just the name of your system.

The CS will be started if you press “set” after filling the blanks correctly, then you can press “User GOG” to enter the GOG or press “inspector” to enter the Object Inspector, both of them will be shown in the next PPT.

Page 7: A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the environment variable “DIM_DNS_NODE” ; 3. Register an.

Load /save GOG objects.

Imports a settings file/Save copy of the files.

all Create objects. Execute enabled

methods.

Chose the methods

of the objects.

General Objects GUI

Page 8: A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the environment variable “DIM_DNS_NODE” ; 3. Register an.

Objects inspector

System ID

Property Refresh Rate

Refresh List

Open panel of selected object.

Gently remove

selected object.

Kill selected object.