Main Page | Features | Central Services | csv-Files | Types | Transfer | Access | API-C | API-.NET | API-Java | Examples | Downloads
page generated on 21.11.2024 - 04:45
Win32
  1. Create a working directories for you 32-bit windows client and/or server: for instance G:\WINSRV and G:\WINCLN.
  2. Go to the TINE distribution and locate the kernel\Windows\examples32 subdirectory.
    At DESY this is likely to be either S:\KERNEL\Windows\examples32. Under this subdirectory you will a client and a server subdirectory (the examples also work in VB 6.0).
  3. Choose the SERVER subdirectory. You should now be pointing to for instance: S:\KERNEL\Windows\examples32\SERVER. Copy all the files you see into your G:\WINSRV directory, except note: A copy of tinesrv32.dll and srv.ocx is provided in the example directory for completeness sake. You will most likely not need to copy these files as they will be appropriately distributed and updated via system administration.
  4. Edit the file fecid.csv and give your server a more meaningful (albeit unique) server name than “MYFEC”
  5. Create a directory for database files, for example C:\DATABASE. Copy all the *.csv files from G:\WINSRV into C:\DATABASE.
  6. Make an environment variable FEC_HOME and set it equal to C:\DATABASE\. If the environment variable TINE_HOME has not already been set (via system administration) then make it yourself at set it to point to C:\DATABASE\ as well (don’t forget the trailing “\”).
  7. Load the project project1.vbp into VB.50 or VB.60. View the form, find the srv.ocx component and click on it and hit “F4” in order to see its properties. Change the “ExportName” property to a system-wide unique 16-character equipment name.
  8. Run the server directly in Visual Basic, or make an executable and run the server.
  9. Go back to the EXAMPLES subdirectory in the TINE distribution and change to the CLIENT subdirectory. You should now be pointing to for instance: S:\KERNEL\Windows\examples32\CLIENT. Make a client working directory for yourself, for instance WINCLN. Copy all the files you see into your G:\WINCLN directory.
  10. Load the project sine.vbp into VB.50 or VB.60. View the form sine.frm and right mouse click on the ACOP control to see the property pages. Choose the Device tab and make sure that the deviceGroup points to your server example’s exported equipment name. Run the example in Visual Basic or make an executable.

Comments:

The sine.vbp project demonstrates trivial access to the example server. In the VB.50\CLIENT directory you will also find a Project1.prj project which demonstrates most of the example properties exposed by the server.

The above is a step-by-step recipe for getting the example server and client programs to run. You may prefer to work with the server wizard to produce your first working example of a TINE server.


Impressum   |   Imprint   |   Datenschutzerklaerung   |   Data Privacy Policy   |   Declaration of Accessibility   |   Erklaerung zur Barrierefreiheit
Generated for TINE API by  doxygen 1.5.8