/* ************************************************************* */ /* INCLUDE FILES */ #include #include #include #include #include "vtscanparam.h" #include "vtscan.h" #include "vtscanui.h" /* ************************************************************* */ /* PRIVATE FUNCTIONS */ void vtscanop_init(void); void vtscanop_exit(void); /* ************************************************************* */ int main(int argc, char *argv[]) { /* Perform all initialization for the program */ vtscanop_init(); /* Run the user interface */ RunUserInterface(); /* Exit the wire measurement system */ vtscanop_exit(); /* Message */ printf("\nDone\n"); /* Done */ return 0; } /* ************************************************************** */ void vtscanop_init(void) { /* Declare variables */ char log_file[80]; FILE* file_ptr; struct vtscan_param_struct vtscan_param; /* Initialize all files */ strcpy(log_file, "testlog.ru1"); file_ptr = fopen(log_file, "w"); if (file_ptr == NULL) return; fclose(file_ptr); /* Get VTwire parameters */ vtscanparam_fill_param_struct(&vtscan_param); /* Initialize the integrated voltage system */ vtscan_init(log_file, vtscan_param); /* Initialize the user interface */ vtscanui_init(25, 14, vtscan_param); /* Initialize the operator user interface */ vtscanopui_init(25, 357); /* Done */ return; } /* ************************************************************** */ void vtscanop_exit(void) { /* Exit the wire measurement system */ vtscan_exit(); /* Done */ return; }