/* ************************************************************* */ /* INCLUDE FILES */ #include #include #include #include "iaux.h" #include "iauxparam.h" #include "iauxui.h" /* ************************************************************* */ /* PRIVATE FUNCTIONS */ void iauxop_init(void); void iauxop_exit(void); /* ************************************************************* */ int main(int argc, char *argv[]) { /* Perform all initialization for the program */ iauxop_init(); /* Run the user interface */ RunUserInterface(); /* Message */ printf("\nDone\n"); /* Done */ return 0; } /* ************************************************************** */ void iauxop_init(void) { /* Declare variables */ FILE* file_ptr; char log_file[80]; struct iaux_param_struct iaux_param; /* Initialize all files */ strcpy(log_file, "testlog.ru1"); file_ptr = fopen(log_file, "w"); if (file_ptr == NULL) return; fclose(file_ptr); /* Get the IAUX parameters */ iauxparam_fill_param_struct(&iaux_param); /* Initialize the user interface */ SetStdioWindowPosition(470, 75); SetStdioWindowSize(260, 700); iauxui_init(50, 75, iaux_param); iauxopui_init(50, 75 + 350); /* Initialize the magnet current system */ iaux_init(log_file, iaux_param); /* Done */ return; } /* ************************************************************** */ void iauxop_exit(void) { /* Exit the coil measurement system */ iaux_exit(); /* Done */ return; }