Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

definitions.h File Reference

Go to the source code of this file.

Defines

#define MAIN_INITFILE   "initmax\0"
#define DATA_PACKET_SIZE   1024
#define DEFAULT_HOST   "localhost"
#define DEFAULT_PORT   20000
#define DATA_SEND_INTERVALL   1000
#define DATA_RECEIVED_INTERVALL   100
#define PARA_SEND_INTERVALL   100
#define MAX_NAME_LENGTH   32
#define MAX_VAR_LENGTH   32
#define ERR_MSG_LENGTH   128
#define MAX_DEVICE_NAME_LENGTH   32
#define BUFSIZE   65000
#define CONNECT_WAIT   50000
#define MAX_INTEGRATIONS   10000
#define MAX_DEVICES   10
#define MAX_VAR   255
#define ACTIVE_VARIABLES   100
#define MAX_ARRAY_SIZE   10000
#define MAIN_GUI_X_SIZE   500
#define MAIN_GUI_Y_SIZE   600
#define MAIN_GUI_POSITION_X   100
#define MAIN_GUI_POSITION_Y   100
#define MIN_BUTTON_SIZE   60
#define SAVE_DETECT   FALSE
#define INT_TRIGGER_PERIOD   500
#define MONITOR_MODE   FALSE
#define UPDATE_INTERVALL   500
#define BUTTON_BLINK   500
#define LISTB_UPDATE_INTERVALL   2000
#define PLOT_WINDOW_UPDATE   1000
#define START   'a'
#define STOP   'b'
#define PAUSE   'c'
#define CONTINUE   'd'
#define CHANNELNUMBER   'e'
#define INTEGRATIONS   'f'
#define PRIORITY   'g'
#define REQUEST_CHANNELNUMBER   'h'
#define REQUEST_INTEGRATIONS   'i'
#define ERROR   'j'
#define MON_MODE   'k'
#define DATAQ_MODE   'l'
#define RESET   'm'
#define EXT_TRIGGER   'n'
#define INT_TRIGGER   'o'
#define SET_PERIOD   'p'
#define CLEAR_DEVICES   'q'
#define CLEAR_PRIORITY   'r'
#define KILL_YOURSELF   's'
#define SET_DAT_SEND_INTERVALL   't'
#define DEAMON_DIES   'u'
#define PRIORITY_CHECK   'v'
#define P_MIN_SIZE_X   400
#define P_MIN_SIZE_Y   300
#define P_LEFT_BORDER   35
#define P_UPPER_BORDER   40
#define P_DEF_SIZE_X   300-2*P_LEFT_BORDER
#define P_DEF_SIZE_Y   200-2*P_UPPER_BORDER
#define Y_TICKS   11
#define X_TICKS   11
#define TICKSIZE   5
#define TICKPOS   30
#define TICKPOS_X   15
#define HGRIDLINES   TRUE;
#define VGRIDLINES   FALSE;
#define Y_UPPER_LIMIT   2
#define Y_LOWER_LIMIT   -5.000
#define AUTOSCALE   TRUE
#define AS_INTERVAL   1
#define MON_MODE_CHANNELS   1000
#define SOLIDLINE   1
#define POINTS   2
#define MIN_ARRAY_LENGTH   10
#define AXISCOLOR   red
#define LINECOLOR   white
#define ARRAYLINECOLOR   yellow
#define LABELCOLOR   white
#define BACKGROUND   black
#define SAVE_WIDGET_X_SIZE   440
#define SAVE_WIDGET_Y_SIZE   330


Define Documentation

#define ACTIVE_VARIABLES   100
 

#define ARRAYLINECOLOR   yellow
 

#define AS_INTERVAL   1
 

This variable contains the number of points that have to exceed the upper/lower plot limit, before autoscaling starts. By setting this variable to a value > 1 you can avoid the Plot Widget to rescale for each single overshoot. Only works if austoscale is enabled

#define AUTOSCALE   TRUE
 

#define AXISCOLOR   red
 

#define BACKGROUND   black
 

#define BUFSIZE   65000
 

#define BUTTON_BLINK   500
 

#define CHANNELNUMBER   'e'
 

#define CLEAR_DEVICES   'q'
 

#define CLEAR_PRIORITY   'r'
 

#define CONNECT_WAIT   50000
 

#define CONTINUE   'd'
 

#define DATAQ_MODE   'l'
 

#define DATA_PACKET_SIZE   1024
 

#define DATA_RECEIVED_INTERVALL   100
 

Period after which data received from server is dequeued to be plotted and stored in the database all intervall units are milliseconds default : 500

#define DATA_SEND_INTERVALL   1000
 

Intervall after which buffered data is sent to the client.

#define DEAMON_DIES   'u'
 

#define DEFAULT_HOST   "localhost"
 

#define DEFAULT_PORT   20000
 

several ports are used for several channels (sockets) of intercommunication

Port : Service of socket :

DEFAULT_PORT : DevData send to server from client DEFAULT_PORT+1 : DevData send to client from server DEFAULT_PORT+2 : CommandData send to sever from client DEFAULT_PORT+3 : CommandData send to client from server DEFAULT_PORT+4 : MeasuredData send from server to client

#define ERROR   'j'
 

#define ERR_MSG_LENGTH   128
 

Length of individual error messages to be shown in the error widget

#define EXT_TRIGGER   'n'
 

#define HGRIDLINES   TRUE;
 

#define INTEGRATIONS   'f'
 

#define INT_TRIGGER   'o'
 

#define INT_TRIGGER_PERIOD   500
 

#define KILL_YOURSELF   's'
 

#define LABELCOLOR   white
 

#define LINECOLOR   white
 

#define LISTB_UPDATE_INTERVALL   2000
 

#define MAIN_GUI_POSITION_X   100
 

#define MAIN_GUI_POSITION_Y   100
 

#define MAIN_GUI_X_SIZE   500
 

#define MAIN_GUI_Y_SIZE   600
 

#define MAIN_INITFILE   "initmax\0"
 

#define MAX_ARRAY_SIZE   10000
 

#define MAX_DEVICES   10
 

#define MAX_DEVICE_NAME_LENGTH   32
 

#define MAX_INTEGRATIONS   10000
 

#define MAX_NAME_LENGTH   32
 

Maximum length of parameter and device names. Increase this value, if you want to use longer names in your device parameter initfile

#define MAX_VAR   255
 

#define MAX_VAR_LENGTH   32
 

Maximum length of variable names. Increase this value, if you want to use longer names in your device parameter initfile

#define MIN_ARRAY_LENGTH   10
 

This is basically the minimum size of the Plotwindow for plotting arays. This is neccessary because a window width of for example 10 looks pretty ugly..

#define MIN_BUTTON_SIZE   60
 

#define MONITOR_MODE   FALSE
 

#define MON_MODE   'k'
 

#define MON_MODE_CHANNELS   1000
 

This value basically gives the x-size of the plot Windopw in monitor mode. If MON_MODE_CHANNELS is reached the window is erased and replotted.

#define PARA_SEND_INTERVALL   100
 

This is the period in which the server sends channel number and dev parameter lists to client. Decrease it if you want a faster update of the parameter listbox. default : 500

#define PAUSE   'c'
 

#define PLOT_WINDOW_UPDATE   1000
 

#define POINTS   2
 

#define PRIORITY   'g'
 

#define PRIORITY_CHECK   'v'
 

#define P_DEF_SIZE_X   300-2*P_LEFT_BORDER
 

#define P_DEF_SIZE_Y   200-2*P_UPPER_BORDER
 

#define P_LEFT_BORDER   35
 

#define P_MIN_SIZE_X   400
 

#define P_MIN_SIZE_Y   300
 

#define P_UPPER_BORDER   40
 

#define REQUEST_CHANNELNUMBER   'h'
 

#define REQUEST_INTEGRATIONS   'i'
 

#define RESET   'm'
 

#define SAVE_DETECT   FALSE
 

#define SAVE_WIDGET_X_SIZE   440
 

#define SAVE_WIDGET_Y_SIZE   330
 

#define SET_DAT_SEND_INTERVALL   't'
 

#define SET_PERIOD   'p'
 

#define SOLIDLINE   1
 

#define START   'a'
 

Definitions for commands -> You better don't change this !

most of commands are sent from max (client) to the polld but some also vice versa some are requests from max for the actual status of the measurements commands defined as chars since network packets contain only unsigned chars

#define STOP   'b'
 

#define TICKPOS   30
 

#define TICKPOS_X   15
 

#define TICKSIZE   5
 

#define UPDATE_INTERVALL   500
 

#define VGRIDLINES   FALSE;
 

#define X_TICKS   11
 

#define Y_LOWER_LIMIT   -5.000
 

#define Y_TICKS   11
 

#define Y_UPPER_LIMIT   2
 


Generated at Mon Sep 2 18:21:06 2002 for MAX by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001