/* ************************************************************* */ /* INCLUDE FILES */ #include #include #include #include #include "vtrampparam.h" #include "vtramp.h" #include "vtrampui.h" #include "imag.h" #include "imagui.h" #include "imagparam.h" /* ************************************************************* */ /* PRIVATE FUNCTIONS */ void vtrampop_init(void); void vtrampop_exit(void); /* ************************************************************* */ int main(int argc, char *argv[]) { /* Perform all initialization for the program */ vtrampop_init(); /* Run the user interface */ RunUserInterface(); /* Exit the wire measurement system */ vtrampop_exit(); /* Message */ printf("\nDone\n"); /* Done */ return 0; } /* ************************************************************** */ void vtrampop_init(void) { /* Declare variables */ char log_file[80]; FILE* file_ptr; struct imag_param_struct imag_param; struct vtramp_param_struct vtramp_param; /* Initialize all files */ strcpy(log_file, "testlog.ru1"); file_ptr = fopen(log_file, "w"); if (file_ptr == NULL) return; fclose(file_ptr); /* Get all parameters */ imagparam_fill_param_struct(&imag_param); vtrampparam_fill_param_struct(&vtramp_param); /* Initialize the user interface */ imagui_init(25, 14, imag_param); vtrampui_init(25, 350, vtramp_param); vtrampopui_init(25, 686); SetStdioWindowPosition(430, 14); SetStdioWindowSize(300, 923); /* Initialize all systems */ imag_init(log_file, imag_param); vtramp_init(log_file, vtramp_param); /* Done */ return; } /* ************************************************************** */ void vtrampop_exit(void) { /* Exit the wire measurement system */ vtramp_exit(); /* Done */ return; }