/* ************************************************************* */ /* INCLUDE FILES */ #include #include #include #include #include "vtwireparam.h" #include "vtwire.h" #include "vtwireui.h" /* ************************************************************* */ /* PRIVATE FUNCTIONS */ void vtwireop_init(void); void vtwireop_exit(void); /* ************************************************************* */ int main(int argc, char *argv[]) { /* Perform all initialization for the program */ vtwireop_init(); /* Run the user interface */ RunUserInterface(); /* Exit the wire measurement system */ vtwireop_exit(); /* Message */ printf("\nDone\n"); /* Done */ return 0; } /* ************************************************************** */ void vtwireop_init(void) { /* Declare variables */ char log_file[80]; FILE* file_ptr; struct vtwire_param_struct vtwire_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 */ vtwireparam_fill_param_struct(&vtwire_param); /* Initialize the integrated voltage system */ vtwire_init(log_file, vtwire_param); /* Initialize the user interface */ vtwireui_init(25, 14, vtwire_param); /* Initialize the operator user interface */ vtwireopui_init(25, 357); /* Done */ return; } /* ************************************************************** */ void vtwireop_exit(void) { /* Exit the wire measurement system */ vtwire_exit(); /* Done */ return; }