/* ************************************************************* */ /* INCLUDE FILES */ #include #include #include #include #include "movezparam.h" #include "movez.h" #include "vscanparam.h" #include "vscan.h" #include "vscanui.h" /* ************************************************************* */ /* PRIVATE FUNCTIONS */ void vscanop_init(void); void vscanop_exit(void); /* ************************************************************* */ int main(int argc, char *argv[]) { /* Perform all initialization for the program */ vscanop_init(); /* Run the user interface */ RunUserInterface(); /* Exit the wire measurement system */ vscanop_exit(); /* Message */ printf("\nDone\n"); /* Done */ return 0; } /* ************************************************************** */ void vscanop_init(void) { /* Declare variables */ char log_file[80]; FILE* file_ptr; struct movez_param_struct movez_param; struct vscan_param_struct vscan_param; /* Initialize all files */ strcpy(log_file, "testlog.ru1"); file_ptr = fopen(log_file, "w"); if (file_ptr == NULL) return; fclose(file_ptr); /* Get parameters */ movezparam_fill_param_struct(&movez_param); vscanparam_fill_param_struct(&vscan_param); /* Initialize all systems */ movez_init(log_file, movez_param); vscan_init(log_file, vscan_param); /* Initialize the user interface */ vscanui_init(25, 14, vscan_param); /* Initialize the operator user interface */ vscanopui_init(25, 357); /* Done */ return; } /* ************************************************************** */ void vscanop_exit(void) { /* Exit all systems */ movez_exit(); vscan_exit(); /* Done */ return; }