Browse Source

Update calibrate to use hold_ota instead of hold_ota2

git-svn-id: https://bucket.mit.edu/svn/nilm/zoom@8678 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/zoom-1.0
nilm 14 years ago
parent
commit
903b52ec39
2 changed files with 3 additions and 2 deletions
  1. +2
    -2
      pc/calibrate.c
  2. +1
    -0
      pc/dactest.c

+ 2
- 2
pc/calibrate.c View File

@@ -154,7 +154,7 @@ int main(int argc, char *argv[])
sweep_ota(zoom, gpib, ota_sweep_count);
break;
case 2:
hold_ota2(zoom, gpib, ota_cmd);
hold_ota(zoom, gpib, ota_cmd);
break;
default:
calibrate(zoom, gpib);
@@ -421,7 +421,7 @@ void hold_ota(int zoom, int gpib, int ota_cmd)

iactual = keithley2002_read2(gpib, &tx);
printf("%.8f %.8f\n", tx, iactual);
printf("%.12f %.12f\n", tx, iactual);
}



+ 1
- 0
pc/dactest.c View File

@@ -124,6 +124,7 @@ void write_random(int zoom, int gpib)
gettimeofday(&now, NULL);
meas = keithley2002_read(gpib);
printf("%ld.%06ld %d %.12f\n", now.tv_sec, now.tv_usec, dac, meas);
fflush(stdout);
}

safecleanup:


Loading…
Cancel
Save