#include #include /* Needed if linking in external compiler; harmless otherwise */ #include #include "sr830.h" #include "sr830ui.h" int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { int sr830_ID; if (InitCVIRTE(hInstance, 0, 0) == 0) /* Needed if linking in external compiler; harmless otherwise */ return -1; /* out of memory */ sr830_init(0, 8, &sr830_ID); sr830ui_init(sr830_ID); sr830_set_ext_ttl_trig(sr830_ID); //sr830_set_ext_sine_trig(sr830_ID); //sr830_set_sine_out(sr830_ID, .5, 100.); //sr830_set_synchronous_filter(sr830_ID); //sr830_set_time_constant(sr830_ID, 9); //sr830_set_sensitivity(sr830_ID, 24); //sr830_set_reserve_mode(sr830_ID, 0); //sr830_set_har_num(sr830_ID, 3); RunUserInterface(); printf("Done."); return 0; }