Browse Source

Add today's calibration data

git-svn-id: https://bucket.mit.edu/svn/nilm/zoom@7970 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/zoom-1.0
nilm 14 years ago
parent
commit
57db1fee74
5 changed files with 168045 additions and 2 deletions
  1. +2
    -2
      pc/calibrate.c
  2. +11
    -0
      pc/data/20091006/README.txt
  3. +84000
    -0
      pc/data/20091006/calibrate-10a.log
  4. +84000
    -0
      pc/data/20091006/calibrate-50a.log
  5. +32
    -0
      pc/data/20091006/doplot.m

+ 2
- 2
pc/calibrate.c View File

@@ -196,8 +196,8 @@ 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.02) {
for (idesired = -0.2; idesired <= 0.2 && !g_quit; idesired += 0.02) {
for (idesired = -1.0; idesired <= 1.0 && !g_quit; idesired += 0.10) {
// for (idesired = -0.2; idesired <= 0.2 && !g_quit; idesired += 0.02) {
info("Zeroing\n");
if (zoom_zero_start(zoom) < 0) goto fail;


+ 11
- 0
pc/data/20091006/README.txt View File

@@ -0,0 +1,11 @@
Same as 20090914 except with fixed clamp

calibrate-10a.log:
Using the calibrate tool to get curves for keithley ±200mA.
Effective with 50 turns is ±10A.

calibrate-50a.log:
Same, keithley ±1A.




+ 84000
- 0
pc/data/20091006/calibrate-10a.log
File diff suppressed because it is too large
View File


+ 84000
- 0
pc/data/20091006/calibrate-50a.log
File diff suppressed because it is too large
View File


+ 32
- 0
pc/data/20091006/doplot.m View File

@@ -0,0 +1,32 @@
#!/usr/bin/octave
# load data
if (length(who("calibdata")) == 0)
calibdata = load("calibrate-50a.log");
endif

# split it into each keithley value
if (length(who("a")) == 0)
for i = 1 : (length(calibdata) / 4000)
block=1:4000;
a(i, block, 1) = calibdata((i-1) * 4000 + block, 2);
a(i, block, 2) = calibdata((i-1) * 4000 + block, 3);
a(i, block, 3) = calibdata((i-1) * 4000 + block, 1);
endfor
endif

# plot them all
clf;
figure(1);
hold on

for i = 1:size(a,1)
#for i = 8:8
range = 1:4000;
x = a(i, range, 1);
y = a(i, range, 2);

plot(x, y);
endfor



Loading…
Cancel
Save