Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

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 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).

2 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. https://sourceforge.net/project/showfiles.php?group_id=159151 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 ”

3 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: VariableValue DIM_DNS_NODESystem ID User variable VariableValue PATH ROOTPATH\DIM\dim\bin System variable Have a look at the right picture as an example.

4 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!

5 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 parameters. You can configure the database as this picture!

6 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 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.

7 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

8 Objects inspector System ID Property Refresh Rate Refresh List Open panel of selected object. Gently remove selected object. Kill selected object.


Download ppt "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."

Similar presentations


Ads by Google