#include #include /* Needed if linking in external compiler; harmless otherwise */ #include #include "hp33220ui.h" #include "hp33220.h" int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { int hp33220_ID; double ampl; double freq; double offset; if (InitCVIRTE(hInstance, 0, 0) == 0) /* Needed if linking in external compiler; harmless otherwise */ return -1; /* out of memory */ hp33220_init(0, 10, &hp33220_ID); hp33220ui_init(hp33220_ID); //hp33220_output_sine(hp33220_ID, 1., 1500.); //hp33220_output_square(hp33220_ID, 2., 1.e3, 70.); //hp33220_output_ramp(hp33220_ID, 1., 200., 50.); //hp33220_output_pulse(hp33220_ID, 1., .005, .001, 1.e-7); //hp33220_set_ampl(hp33220_ID, 5.); //hp33220_set_freq(hp33220_ID, 1.e2); //hp33220_set_dc_offset(hp33220_ID, 0.5); //hp33220_set_pulse_period(hp33220_ID, .002); //hp33220_set_delta_freq(hp33220_ID, -100.); //hp33220_get_ampl(hp33220_ID, &l); //printf("ampl = %f V\n", ampl); //hp33220_get_freq(hp33220_ID, &freq); //printf("freq = %f Hz\n", freq); //hp33220_get_dc_offset(hp33220_ID, &offset); //printf("offset = %f V\n", offset); RunUserInterface(); return 0; }