|[ <- Previous Page ]||[ ^ Table Of Contents ^ ]||[ Next Page -> ]|
This chapter documents the neccessary steps for establishing a data acquisition program.
A sample C++ program zserver1 is included with the zWebit distribution and can be used as a server based data acquisition program or as a model for new program development.
A data source could be any number of places:
Interface names can be any unique name from one to twelve bytes in length. There is one reserved name, NEXT. Try to assign meaningful names to each interface, such as FROMRAD or FROMLAB.
The included server acquisition program utilizes the following files:
|zserver1.pro||Profile of runtime values|
|loadprofile.c||File containing logic for processing profile entries.|
|zserver1.cpp||Acquisition program source|
The zserver1 program requires an entry in the /etc/services file. The service name is used by the program to initialize a socket.
testport 15000/tcp #prod test webit port
If you need to create a new program, the following pseudocode describes the steps in the program.
New programs need to be set up as belonging to user zwebit, group zwebit with the setuid bit set, chmod 4775 newprogname
Each interface requires a script file in the webit/bin directory.
|change directory||cd zwebit/bin|
|copy template||cp template1 myinterfacename.pro|
|edit profile||edit myinterfacename.pro|
Update the following variables in the new script file
Using the web based interface, for the appropriate test or prod system,
For a test system interface, create a new configuration file in directory webit/test/config. For a prod system interface, create a new configuration file in webit/prod/config.
This is the same file name that was set in the script file in step 3 field PROFNAME.
If you are using the zserver1 program, you can use file webit/test/config/zserver1.pro as a starting point. If you create a new program, then set the values you need in the new profile.
|[ <- Previous Page ]||[ ^ Table Of Contents ^ ]||[ ^ Top Of Page ^ ]||[ Next Page -> ]|
Visit the GNU home page.
FSF & GNU inquiries & questions to email@example.com.
Comments on these web pages to firstname.lastname@example.org.
Copyright (C) 2003 HealthCare Systems and Consulting
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
Last updated: 07/21/2003