Browse Source

faster

git-svn-id: https://bucket.mit.edu/svn/nilm/zoom@7616 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/zoom-1.0
jim 13 years ago
parent
commit
19d6490f54
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      pc/calibrate.c

+ 3
- 3
pc/calibrate.c View File

@@ -107,7 +107,7 @@ void calibrate(int zoom, int gpib)
if (zoom_zero_stop(zoom) < 0) goto fail;

info("Sweeping\n");
for (idesired = -1.0; idesired <= 1.0 && !g_quit; idesired += 0.01) {
for (idesired = -1.0; idesired <= 1.0 && !g_quit; idesired += 0.100) {
info("Zeroing\n");
if (zoom_zero_start(zoom) < 0) goto fail;
@@ -120,10 +120,10 @@ void calibrate(int zoom, int gpib)
if ((zero = zoom_zero_stop(zoom)) < 0) goto fail;
info("DAC zero point = %d\n", zero);

info("Sweeping\n");
info("Sweeping...\n");
if ((r = zoom_sweep(zoom, dac, adc)) < 0) goto fail;

info("Results:\n");
info("Done\n");
for (i = 0; i < ZOOM_SWEEP_COUNT; i++) {
printf("%.8f %d %d\n", iactual, dac[i], adc[i]);
}


Loading…
Cancel
Save