#include #include /* Needed if linking in external compiler; harmless otherwise */ #include #include "tds754d.h" #include "tds754dui.h" int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { int tds754d_ID; int num_samp; double t[1000]; double v[1000]; if (InitCVIRTE(hInstance, 0, 0) == 0) /* Needed if linking in external compiler; harmless otherwise */ return -1; /* out of memory */ tds754d_init(0, 1, &tds754d_ID); tds754dui_init(tds754d_ID); //tds754d_set_vert_scale(tds754d_ID, 1, .05); //tds754d_set_vert_position(tds754d_ID, 1, 2.); //tds754d_set_vert_coupling(tds754d_ID, 1, AC); //tds754d_set_vert_chan_select(tds754d_ID, 1, ON); //tds754d_set_horiz_scale(tds754d_ID, .01); //tds754d_set_horiz_record_length(tds754d_ID, 1000); //tds754d_set_horiz_trigger_position(tds754d_ID, 10); //tds754d_set_trig_mode(tds754d_ID, NORM); //tds754d_set_trig_edge(tds754d_ID, CH4, DC, RISE); //tds754d_set_trig_holdoff(tds754d_ID, DEFAULT, .1); //tds754d_set_trig_level(tds754d_ID, 1.); //tds754d_set_acq_mode(tds754d_ID, AVERAGE); //tds754d_set_acq_num_ave(tds754d_ID, 8); //tds754d_get_waveform(tds754d_ID, &num_samp, t, v); RunUserInterface(); return 0; }