44 vmt35_telemetry telem;
    46 iretn = vmt35_connect((
char *)
"dev_vmt35");
    50     printf(
"Error: vmt35_connect() %d\n",iretn);
    67 vmt35_set_voltage(0,4095);
    68 vmt35_set_voltage(1,4095);
    69 vmt35_set_voltage(2,4095);
    76     current = mjd/1000000.;
    81     iretn = vmt35_set_amps(0,0.);
    89     iretn = vmt35_set_amps(1,0.);
    97     iretn = vmt35_set_amps(2,0.);
   100 printf(
"%d ",ecount);
   112     iretn = vmt35_set_amps(0,current);
   115 printf(
"%d ",ecount);
   121     iretn = vmt35_set_amps(1,current/2);
   124 printf(
"%d ",ecount);
   129     iretn = vmt35_set_amps(2,current/3);
   132 printf(
"%d ",ecount);
   137     iretn = vmt35_get_telemetry(&telem);
   140 printf(
"%d\n",ecount);
   141     printf(
"%f %hu %hu %hu %d %d %d %hu %hu\n",(mjd-lmjd)*86400.,telem.status,telem.count,telem.invalidcount,telem.daca,telem.dacb,telem.dacc,telem.temp,telem.voltage);
   148 vmt35_set_amps(0,0.);
   149 vmt35_set_current(1,0.);
   150 vmt35_set_current(2,0.);
   154 vmt35_set_current(0,current);
   155 vmt35_get_current(0,&icurrent);
   156 printf(
"0: %u ",icurrent);
   157 vmt35_get_current(1,&icurrent);
   158 printf(
"1: %u ",icurrent);
   159 vmt35_get_current(2,&icurrent);
   160 printf(
"2: %u\n\n",icurrent);
   162 vmt35_set_current(0,0.);
   163 vmt35_set_current(1,current);
   164 vmt35_get_current(0,&icurrent);
   165 printf(
"0: %u ",icurrent);
   166 vmt35_get_current(1,&icurrent);
   167 printf(
"1: %u ",icurrent);
   168 vmt35_get_current(2,&icurrent);
   169 printf(
"2: %u\n\n",icurrent);
   171 vmt35_set_current(1,0.);
   172 vmt35_set_current(2,current);
   173 vmt35_get_current(0,&icurrent);
   174 printf(
"0: %u ",icurrent);
   175 vmt35_get_current(1,&icurrent);
   176 printf(
"1: %u ",icurrent);
   177 vmt35_get_current(2,&icurrent);
   178 printf(
"2: %u\n\n",icurrent);
   186 vmt35_set_current(2,0.);
   187 vmt35_set_current(0,current);
   188 vmt35_get_current(0,&icurrent);
   189 printf(
"0: %u ",icurrent);
   190 vmt35_get_current(1,&icurrent);
   191 printf(
"1: %u ",icurrent);
   192 vmt35_get_current(2,&icurrent);
   193 printf(
"2: %u\n\n",icurrent);
   195 vmt35_set_current(0,0.);
   196 vmt35_set_current(1,current);
   197 vmt35_get_current(0,&icurrent);
   198 printf(
"0: %u ",icurrent);
   199 vmt35_get_current(1,&icurrent);
   200 printf(
"1: %u ",icurrent);
   201 vmt35_get_current(2,&icurrent);
   202 printf(
"2: %u\n\n",icurrent);
   204 vmt35_set_amps(1,0.);
   205 vmt35_set_amps(2,current);
   206 vmt35_get_current(0,&icurrent);
   207 printf(
"0: %u ",icurrent);
   208 vmt35_get_current(1,&icurrent);
   209 printf(
"1: %u ",icurrent);
   210 vmt35_get_current(2,&icurrent);
   211 printf(
"2: %u\n\n",icurrent);
   213 vmt35_set_amps(2,0.);
   214 vmt35_get_current(0,&icurrent);
   215 printf(
"0: %u ",icurrent);
   216 vmt35_get_current(1,&icurrent);
   217 printf(
"1: %u ",icurrent);
   218 vmt35_get_current(2,&icurrent);
   219 printf(
"2: %u\n\n",icurrent);
 3 element generic row vector 
Definition: vector.h:53
int iretn
Definition: rw_test.cpp:37
static antstruc current
Definition: agent_antenna.cpp:161
double mjd
Definition: udp_send.cpp:41
gige_handle * handle
Definition: kpc9612p_recv.cpp:33
double currentmjd(double offset)
Current UTC in Modified Julian Days. 
Definition: timelib.cpp:65