// ************************************************************** // // Module UMACUI // This is a demo module for Delta TAU controller // Program entry point // // Seva Kaplounenko, Stanford Linear Accelerator Center // 6/14/06 // #include #include #include #include /* Needed if linking in external compiler; harmless otherwise */ #include #include "umac.h" #include "umacui.h" #include "umacParam.h" #include "UmacLib.h" static DWORD UMAC_ID; int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { int axis =0; double acc; double vel; double dis; double pos; int id; int status; DWORD dev=0; char str[128], vs[30],ds[30]; BOOL res; int retVal =-1; UMAC_PARAM_STRUCT nParam[9]; int ID =-1; if (InitCVIRTE(hInstance, 0, 0) == 0) // Needed if linking in external compiler; harmless otherwise return -1; // out of memory umac_data_fill_param_struct(nParam); UMAC_ID = umac_init(0, &ID, nParam); umacui_init(UMAC_ID); RunUserInterface(); return 0; }