Download AMemofortheStartingofCS-framework

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Entity–attribute–value model wikipedia , lookup

Database wikipedia , lookup

Concurrency control wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Relational model wikipedia , lookup

PL/SQL wikipedia , lookup

Functional Database Model wikipedia , lookup

Clusterpoint wikipedia , lookup

Versant Object Database wikipedia , lookup

Database model wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Transcript
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 ………………
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).
Dec. 2007
Installation of the Packages
Two 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 preinstallation
Pay more attention to the “notes” of each
package in the web of sourceforge,
especially for the file list.
Zip file of
package
Take “CSSqlServer” as an example ,the
file list of this package is :
You can get
almost all of
the information
from these
five tables.
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.
ROOTPATH\LV820\GPL\Projects\cs-framework\CSTools\CS SQL
Server\*
Packages will be
installed and checked
by pressing these
buttons.
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”
Environment Variable
Set the environment variable “DIM_DNS_NODE” :
My computer (right click)
Property
Advanced
The variables and the values are set as:
User variable
Variable
Value
DIM_DNS_NODE
System ID
System variable
Variable
Value
PATH
ROOTPATH\DIM\dim\bin
Have a look at the right picture as an example.
environment variable
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!
Configure the database
Here, you must
enter the Data
Source Name
correctly.
to have a better
description of the
parameters.
For the “SuperProc”.
You must enter as
“Systemname\Super”.
You can configure the database as this picture!
Starting CS
You 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 node of your CSSqlServer
(if empty it will be assumed to be the
local node)
Enter the Data Source Name.
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.
General Objects GUI
Load /save
GOG objects.
Chose the methods
of the objects.
Imports a settings
file/Save copy of
the files.
all Create
objects.
Execute enabled
methods.
Objects inspector
System ID
Property
Refresh Rate
Refresh List
Open panel of
selected object.
Gently remove
selected object.
Kill selected object.