Rewrite the driver in Rust; move the testbench tools out

The repository is now only the HPCS 6500 driver: a Rust library (serial
transport, every protocol command, block parsing, USBPcap captures, a
simulated instrument) and the hpcs6500 CLI with the flags of the former
hpcs6500.py, plus dump/capture for reverse engineering.

The lamp station, lamp export, TM-30, label printer and LED calibration
move to B4L/lamp-testbench. Golden tests pin the Rust output to the Python
driver's: parsed values bit-exact, report text, CSV and number formatting.
The Python driver is at tag python-final.
This commit is contained in:
grabowski committed 2026-10-22 17:01:47 +07:00
1 parent 3ac7cd243b
commit 54242da04b
79 files changed
+23340 -3246

No files matched your search

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+189
View File
@@ -0,0 +1,189 @@
//! Golden tests against the output of the former Python driver
//! (`hpcs6500.py`), generated from real USB captures.
use hpcs6500::format::{csv_header, csv_row, format_quick, format_reading, pcap_report};
use hpcs6500::{Reading, pcap, pyfmt};
use serde_json::Value;
use std::path::{Path, PathBuf};
fn dir(sub: &str) -> PathBuf {
Path::new(env!("CARGO_MANIFEST_DIR"))
.join("tests")
.join(sub)
}
fn fixture(name: &str) -> Reading {
let meas = std::fs::read(dir("fixtures").join(format!("{name}_meas.bin"))).unwrap();
let elec = std::fs::read(dir("fixtures").join(format!("{name}_elec.bin"))).ok();
Reading::parse(&meas, elec.as_deref()).unwrap()
}
fn golden() -> Vec<Value> {
serde_json::from_str(&std::fs::read_to_string(dir("golden").join("readings.json")).unwrap())
.unwrap()
}
fn text(name: &str) -> String {
std::fs::read_to_string(dir("golden").join(name))
.unwrap()
.replace("\r\n", "\n")
}
/// Python values in the golden file: floats as {"f": repr}, lists, ints, strings.
fn same(rust: &Value, py: &Value, path: &str) {
match py {
Value::Object(o) if o.contains_key("f") => {
let want = o["f"].as_str().unwrap();
let got = pyfmt::repr(
rust.as_f64()
.unwrap_or_else(|| panic!("{path}: not a number: {rust}")),
);
assert_eq!(got, want, "{path}");
}
Value::Array(a) => {
let r = rust
.as_array()
.unwrap_or_else(|| panic!("{path}: not a list"));
assert_eq!(r.len(), a.len(), "{path}: length");
for (i, (x, y)) in r.iter().zip(a).enumerate() {
same(x, y, &format!("{path}[{i}]"));
}
}
other => assert_eq!(rust, other, "{path}"),
}
}
#[test]
fn parsed_blocks_match_python_exactly() {
for g in golden() {
let name = g["name"].as_str().unwrap();
let r = fixture(name);
let v = serde_json::to_value(&r).unwrap();
let keys: Vec<&str> = v.as_object().unwrap().keys().map(|k| k.as_str()).collect();
let want: Vec<&str> = g["keys"]
.as_array()
.unwrap()
.iter()
.map(|k| k.as_str().unwrap())
.collect();
assert_eq!(keys, want, "{name}: key order");
for k in want {
same(&v[k], &g["values"][k], &format!("{name}.{k}"));
}
assert_eq!(
r.electrical.as_ref().unwrap().harmonics.is_some(),
g["harmonics"].as_bool().unwrap(),
"{name}"
);
}
}
#[test]
fn report_text_matches_python() {
for g in golden() {
let name = g["name"].as_str().unwrap();
let r = fixture(name);
assert_eq!(
format_reading(&r, false),
text(&format!("format_{name}.txt")),
"{name}"
);
assert_eq!(
format_reading(&r, true),
text(&format!("format_{name}_spectrum.txt")),
"{name} spectrum"
);
let n: usize = name[1..].parse().unwrap();
assert_eq!(
format!("{}\n{}", format_quick(&r, Some(n)), format_quick(&r, None)),
text(&format!("quick_{name}.txt"))
);
}
}
#[test]
fn csv_matches_python() {
for g in golden() {
let name = g["name"].as_str().unwrap();
let want = std::fs::read_to_string(dir("golden").join(format!("csv_{name}.txt"))).unwrap();
assert_eq!(csv_header() + &csv_row("T", &fixture(name)), want, "{name}");
}
}
#[test]
fn float_formatting_matches_python() {
let cases: Vec<Value> =
serde_json::from_str(&std::fs::read_to_string(dir("golden").join("pyfmt.json")).unwrap())
.unwrap();
assert!(cases.len() > 1000);
for c in &cases {
let x = f64::from_bits(c["bits"].as_u64().unwrap());
assert_eq!(pyfmt::repr(x), c["repr"].as_str().unwrap(), "repr {x:e}");
assert_eq!(pyfmt::g(x, 6), c["g6"].as_str().unwrap(), "g6 {x:e}");
for (k, p) in [("f2", 2), ("f1", 1), ("f0", 0)] {
if let Some(w) = c[k].as_str() {
assert_eq!(pyfmt::fixed(x, p), w, "{k} {x:e}");
}
}
if let Some(w) = c["round1"].as_str() {
assert_eq!(pyfmt::repr(pyfmt::round(x, 1)), w, "round1 {x:e}");
}
}
}
#[test]
fn pcap_round_trip_and_report() {
// a capture with two readings, written in memory
let (a, b) = (fixture("r01"), fixture("r02"));
let block =
|n: &str, k: &str| std::fs::read(dir("fixtures").join(format!("{n}_{k}.bin"))).unwrap();
let file = pcap::write(&[
(pcap::Dir::Tx, vec![0x8C, 0x13]),
(pcap::Dir::Rx, vec![0x8C, 0x13, 0x0F, 0x40]),
(pcap::Dir::Rx, block("r01", "meas")),
(pcap::Dir::Rx, block("r01", "elec")),
(pcap::Dir::Rx, block("r02", "meas")),
(pcap::Dir::Rx, block("r02", "elec")),
]);
let msgs = pcap::messages(&file).unwrap();
assert_eq!(msgs.len(), 6);
assert_eq!(msgs[0].dir, pcap::Dir::Tx);
assert_eq!(pcap::readings(&msgs), vec![a, b]);
let report = pcap_report(&msgs, true, false);
assert_eq!(report.lines().count(), 2);
assert!(pcap::messages(&[]).is_err());
assert!(pcap::messages(&[0u8; 30]).is_err());
}
/// The `--parse` reports of real captures. The captures are not in git
/// (`captures/` is ignored); the test runs where they are.
#[test]
fn parse_reports_of_real_captures() {
let caps = Path::new(env!("CARGO_MANIFEST_DIR")).join("captures");
let mut checked = 0;
for cap in [
"usb_capture_20260204_123655_hub1",
"usb_capture_20260204_134301_hub1",
] {
let path = caps.join(format!("{cap}.pcap"));
if !path.exists() {
eprintln!("skipped: {} not here", path.display());
continue;
}
let msgs = pcap::read_messages(&path).unwrap();
assert_eq!(
pcap_report(&msgs, false, false),
text(&format!("parse_{cap}.txt"))
);
assert_eq!(
pcap_report(&msgs, true, false),
text(&format!("parse_{cap}_quick.txt"))
);
assert_eq!(
pcap_report(&msgs, false, true),
text(&format!("parse_{cap}_harmonics.txt"))
);
checked += 1;
}
eprintln!("{checked} capture(s) checked");
}
+2
View File
@@ -0,0 +1,2 @@
timestamp,Phi_lm,eta_lm_W,CCT_K,Duv,x,y,u,v,u_prime,v_prime,SDCM,Ra,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,Phi_e_mW,Phi_euv_mW,Phi_eb_mW,Phi_ey_mW,Phi_er_mW,Phi_efr_mW,Phi_eir_mW,Phi_e_total,CIE_X,CIE_Y,CIE_Z,TLCI,PeakSignal,DarkSignal,Compensate,Voltage_V,Current_A,Power_W,Freq_Hz,PF
T,483.7375183105469,57.40340042114258,5635.47412109375,0.005606670398265123,0.32931944727897644,0.34943076968193054,0.2015872299671173,0.3208470344543457,0.2015872299671173,0.48127055168151855,4.836654186248779,82.90641784667969,81.94468688964844,93.72439575195312,93.53913116455078,76.66526794433594,81.33158874511719,88.99320983886719,83.17845916748047,63.87458801269531,4.212823390960693,83.55355072021484,76.21843719482422,59.73139953613281,86.1976318359375,96.91849517822266,75.6298828125,1501.3740234375,0.0,471.6053466796875,686.2144775390625,333.9613952636719,11.230633735656738,0.0,1503.01220703125,667.4908447265625,708.2540283203125,651.1345825195312,67.85055541992188,53279.0,2154.0,2834.0,230.29359436035156,0.06537289172410965,8.406862258911133,50.02156448364258,0.5584115386009216
+2
View File
@@ -0,0 +1,2 @@
timestamp,Phi_lm,eta_lm_W,CCT_K,Duv,x,y,u,v,u_prime,v_prime,SDCM,Ra,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,Phi_e_mW,Phi_euv_mW,Phi_eb_mW,Phi_ey_mW,Phi_er_mW,Phi_efr_mW,Phi_eir_mW,Phi_e_total,CIE_X,CIE_Y,CIE_Z,TLCI,PeakSignal,DarkSignal,Compensate,Voltage_V,Current_A,Power_W,Freq_Hz,PF
T,479.5904235839844,57.03839111328125,5661.3740234375,0.005495334509760141,0.3286939859390259,0.34864285588264465,0.20145727694034576,0.32052600383758545,0.20145727694034576,0.4807890057563782,4.661009311676025,83.03077697753906,82.11673736572266,93.9566421508789,93.32406616210938,76.64042663574219,81.5961685180664,89.55091094970703,83.03118896484375,64.03005981445312,4.829061031341553,84.0609130859375,76.2067642211914,60.158180236816406,86.46263885498047,96.80621337890625,75.96227264404297,1492.0255126953125,0.0,470.2662658691406,679.6720581054688,330.6041564941406,11.205649375915527,0.0,1491.7479248046875,662.0042114257812,702.18212890625,649.8577880859375,67.88436889648438,53165.0,2310.0,2834.0,230.289794921875,0.06533221900463104,8.404895782470703,50.02182388305664,0.5585951805114746
+2
View File
@@ -0,0 +1,2 @@
timestamp,Phi_lm,eta_lm_W,CCT_K,Duv,x,y,u,v,u_prime,v_prime,SDCM,Ra,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,Phi_e_mW,Phi_euv_mW,Phi_eb_mW,Phi_ey_mW,Phi_er_mW,Phi_efr_mW,Phi_eir_mW,Phi_e_total,CIE_X,CIE_Y,CIE_Z,TLCI,PeakSignal,DarkSignal,Compensate,Voltage_V,Current_A,Power_W,Freq_Hz,PF
T,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0
+2
View File
@@ -0,0 +1,2 @@
timestamp,Phi_lm,eta_lm_W,CCT_K,Duv,x,y,u,v,u_prime,v_prime,SDCM,Ra,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,Phi_e_mW,Phi_euv_mW,Phi_eb_mW,Phi_ey_mW,Phi_er_mW,Phi_efr_mW,Phi_eir_mW,Phi_e_total,CIE_X,CIE_Y,CIE_Z,TLCI,PeakSignal,DarkSignal,Compensate,Voltage_V,Current_A,Power_W,Freq_Hz,PF
T,479.8302917480469,57.09168243408203,5655.5185546875,0.005520321428775787,0.32882028818130493,0.3488074243068695,0.20148152112960815,0.3205926716327667,0.20148152112960815,0.4808890223503113,4.696867942810059,83.00994873046875,82.22040557861328,94.05892181396484,93.2469253540039,76.50690460205078,81.42030334472656,89.34086608886719,83.16636657714844,64.1189193725586,4.818240642547607,84.18575286865234,76.09269714355469,60.0699348449707,86.59054565429688,96.74826049804688,76.01618194580078,1491.9422607421875,0.0,469.8638610839844,679.650634765625,330.7580261230469,11.141565322875977,0.0,1491.4139404296875,662.2772216796875,702.5333251953125,649.290283203125,67.87500762939453,53051.0,2228.0,2834.0,230.30111694335938,0.06532319635152817,8.404557228088379,50.02182388305664,0.558664858341217
+2
View File
@@ -0,0 +1,2 @@
timestamp,Phi_lm,eta_lm_W,CCT_K,Duv,x,y,u,v,u_prime,v_prime,SDCM,Ra,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,Phi_e_mW,Phi_euv_mW,Phi_eb_mW,Phi_ey_mW,Phi_er_mW,Phi_efr_mW,Phi_eir_mW,Phi_e_total,CIE_X,CIE_Y,CIE_Z,TLCI,PeakSignal,DarkSignal,Compensate,Voltage_V,Current_A,Power_W,Freq_Hz,PF
T,479.61688232421875,57.09785461425781,5655.04931640625,0.005514893215149641,0.32883065938949585,0.34880587458610535,0.20148910582065582,0.3205931782722473,0.20148910582065582,0.48088976740837097,4.689785480499268,83.1019287109375,82.3944320678711,94.21000671386719,93.1120834350586,76.46770477294922,81.47521209716797,89.57075500488281,83.24170684814453,64.343505859375,5.2721099853515625,84.44823455810547,76.06077575683594,60.25636291503906,86.82209777832031,96.66696166992188,76.29528045654297,1491.543701171875,0.0,469.8504333496094,679.9556274414062,331.67364501953125,11.56343936920166,0.0,1493.0426025390625,662.0065307617188,702.2208862304688,648.9866943359375,67.98677825927734,53066.0,2236.0,2834.0,230.29080200195312,0.06529296934604645,8.399910926818848,50.02178955078125,0.5586221218109131
+2
View File
@@ -0,0 +1,2 @@
timestamp,Phi_lm,eta_lm_W,CCT_K,Duv,x,y,u,v,u_prime,v_prime,SDCM,Ra,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,Phi_e_mW,Phi_euv_mW,Phi_eb_mW,Phi_ey_mW,Phi_er_mW,Phi_efr_mW,Phi_eir_mW,Phi_e_total,CIE_X,CIE_Y,CIE_Z,TLCI,PeakSignal,DarkSignal,Compensate,Voltage_V,Current_A,Power_W,Freq_Hz,PF
T,479.6141357421875,57.04836654663086,5654.22216796875,0.005528819747269154,0.32884812355041504,0.34884971380233765,0.20148463547229767,0.32060936093330383,0.20148463547229767,0.48091405630111694,4.7090373039245605,82.99382781982422,82.20687103271484,94.0466079711914,93.27873229980469,76.49690246582031,81.38878631591797,89.25926208496094,83.16966247558594,64.1037368774414,4.81308126449585,84.15076446533203,76.0714340209961,60.03883743286133,86.56330108642578,96.76630401611328,75.97416687011719,1491.4090576171875,0.0,470.1175231933594,679.6602783203125,331.024658203125,11.806631088256836,0.0,1492.6082763671875,661.95458984375,702.2168579101562,648.7780151367188,67.90325927734375,53066.0,2246.0,2834.0,230.29782104492188,0.06530531495809555,8.407149314880371,50.02182388305664,0.5589380860328674
+2
View File
@@ -0,0 +1,2 @@
timestamp,Phi_lm,eta_lm_W,CCT_K,Duv,x,y,u,v,u_prime,v_prime,SDCM,Ra,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,R13,R14,R15,Phi_e_mW,Phi_euv_mW,Phi_eb_mW,Phi_ey_mW,Phi_er_mW,Phi_efr_mW,Phi_eir_mW,Phi_e_total,CIE_X,CIE_Y,CIE_Z,TLCI,PeakSignal,DarkSignal,Compensate,Voltage_V,Current_A,Power_W,Freq_Hz,PF
T,182.61920166015625,0.0,4936.84375,0.002135422546416521,0.3473931849002838,0.35774698853492737,0.21059946715831757,0.32531434297561646,0.21059946715831757,0.4879715144634247,1.5234547853469849,83.53800201416016,81.74681854248047,89.89591979980469,94.66126251220703,81.88838958740234,81.9393081665039,84.4315185546875,86.51227569580078,67.2285385131836,12.525043487548828,75.23241424560547,80.69010925292969,53.97742462158203,84.02236938476562,97.37865447998047,76.29852294921875,558.6363525390625,0.0,152.54922485351562,257.9691162109375,144.27931213378906,5.738129138946533,0.0,560.5353393554688,259.6396484375,267.3780212402344,220.3765106201172,71.05938720703125,55124.0,2518.0,2834.0,0.0,0.0,0.0,0.0,0.0
+41
View File
@@ -0,0 +1,41 @@
Device: HPCS6500
Date: 2026-02-04 Time: 15:38:14
--- Photometric ---
Phi (lm): 483.74
eta (lm/W): 57.40
CCT (K): 5635
Duv: 0.00561
--- Chromaticity ---
x: 0.3293 y: 0.3494
u: 0.2016 v: 0.3208
u': 0.2016 v': 0.4813
--- CRI ---
Ra: 82.9 SDCM: 4.84
R1=82, R2=94, R3=94, R4=77, R5=81, R6=89, R7=83, R8=64
R9=4, R10=84, R11=76, R12=60, R13=86, R14=97, R15=76
--- CIE 1931 ---
X: 667.491 Y: 708.254 Z: 651.135
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1501.374
Phi_eb (mW): 471.605
Phi_ey (mW): 686.214
Phi_er (mW): 333.961
Phi_efr (mW): 11.231
--- Electrical ---
Voltage (V): 230.29
Current (A): 0.0654
Power (W): 8.407
Frequency (Hz): 50.02
Power Factor: 0.5584
--- Sensor ---
Peak Signal: 53279
Dark Signal: 2154
Compensate: 2834
+113
View File
@@ -0,0 +1,113 @@
Device: HPCS6500
Date: 2026-02-04 Time: 15:38:14
--- Photometric ---
Phi (lm): 483.74
eta (lm/W): 57.40
CCT (K): 5635
Duv: 0.00561
--- Chromaticity ---
x: 0.3293 y: 0.3494
u: 0.2016 v: 0.3208
u': 0.2016 v': 0.4813
--- CRI ---
Ra: 82.9 SDCM: 4.84
R1=82, R2=94, R3=94, R4=77, R5=81, R6=89, R7=83, R8=64
R9=4, R10=84, R11=76, R12=60, R13=86, R14=97, R15=76
--- CIE 1931 ---
X: 667.491 Y: 708.254 Z: 651.135
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1501.374
Phi_eb (mW): 471.605
Phi_ey (mW): 686.214
Phi_er (mW): 333.961
Phi_efr (mW): 11.231
--- Electrical ---
Voltage (V): 230.29
Current (A): 0.0654
Power (W): 8.407
Frequency (Hz): 50.02
Power Factor: 0.5584
--- Sensor ---
Peak Signal: 53279
Dark Signal: 2154
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0005 []
389.6nm: 0.0876 []
399.2nm: 0.3179 []
408.8nm: 0.7661 [##]
418.4nm: 1.6232 [####]
428.0nm: 3.0322 [########]
437.6nm: 5.2464 [###############]
447.2nm: 8.7276 [########################]
456.8nm: 12.7905 [####################################]
466.4nm: 13.6955 [#######################################]
476.0nm: 10.7966 [##############################]
485.6nm: 8.2842 [#######################]
495.2nm: 6.7507 [###################]
504.8nm: 5.4679 [###############]
514.4nm: 4.6912 [#############]
524.0nm: 4.4910 [############]
533.6nm: 4.6211 [#############]
543.2nm: 4.9149 [##############]
552.8nm: 5.3253 [###############]
562.4nm: 5.7463 [################]
572.0nm: 6.0899 [#################]
581.6nm: 6.3225 [##################]
591.2nm: 6.4763 [##################]
600.8nm: 6.5981 [##################]
610.4nm: 6.7011 [###################]
620.0nm: 6.8460 [###################]
629.6nm: 6.9854 [####################]
639.2nm: 7.1199 [####################]
648.8nm: 7.2257 [####################]
658.4nm: 7.2971 [####################]
668.0nm: 7.3692 [#####################]
677.6nm: 7.4499 [#####################]
687.2nm: 7.5612 [#####################]
696.8nm: 7.5899 [#####################]
706.4nm: 7.5444 [#####################]
716.0nm: 7.4506 [#####################]
725.6nm: 7.2796 [####################]
735.2nm: 7.0827 [####################]
744.8nm: 6.7888 [###################]
754.4nm: 6.4305 [##################]
764.0nm: 6.0190 [#################]
773.6nm: 5.6257 [################]
783.2nm: 5.1849 [##############]
792.8nm: 4.7472 [#############]
802.3nm: 4.3186 [############]
811.9nm: 3.9139 [###########]
821.5nm: 3.4785 [#########]
831.1nm: 3.0552 [########]
840.7nm: 2.6780 [#######]
850.3nm: 2.3105 [######]
859.9nm: 2.0011 [#####]
869.5nm: 1.7210 [####]
879.1nm: 1.4606 [####]
888.7nm: 1.2518 [###]
898.3nm: 1.0460 [##]
907.9nm: 0.8661 [##]
917.5nm: 0.7120 [##]
927.1nm: 0.5761 [#]
936.7nm: 0.4697 [#]
946.3nm: 0.3787 [#]
955.9nm: 0.3071 []
965.5nm: 0.2300 []
975.1nm: 0.1782 []
984.7nm: 0.1421 []
994.3nm: 0.1106 []
1003.9nm: 0.0824 []
1013.5nm: 0.0610 []
1023.1nm: 0.0405 []
1032.7nm: 0.0208 []
1042.3nm: 0.0087 []
+43
View File
@@ -0,0 +1,43 @@
Device: HPCS6500
Date: 2026-02-04 Time: 16:29:39
--- Photometric ---
Phi (lm): 479.59
eta (lm/W): 57.04
CCT (K): 5661
Duv: 0.00550
--- Chromaticity ---
x: 0.3287 y: 0.3486
u: 0.2015 v: 0.3205
u': 0.2015 v': 0.4808
--- CRI ---
Ra: 83.0 SDCM: 4.66
R1=82, R2=94, R3=93, R4=77, R5=82, R6=90, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=86, R14=97, R15=76
--- CIE 1931 ---
X: 662.004 Y: 702.182 Z: 649.858
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1492.026
Phi_eb (mW): 470.266
Phi_ey (mW): 679.672
Phi_er (mW): 330.604
Phi_efr (mW): 11.206
--- Electrical ---
Voltage (V): 230.29
Current (A): 0.0653
Power (W): 8.405
Frequency (Hz): 50.02
Power Factor: 0.5586
UThd (%): 0.8113
AThd (%): 109.0115
--- Sensor ---
Peak Signal: 53165
Dark Signal: 2310
Compensate: 2834
+218
View File
@@ -0,0 +1,218 @@
Device: HPCS6500
Date: 2026-02-04 Time: 16:29:39
--- Photometric ---
Phi (lm): 479.59
eta (lm/W): 57.04
CCT (K): 5661
Duv: 0.00550
--- Chromaticity ---
x: 0.3287 y: 0.3486
u: 0.2015 v: 0.3205
u': 0.2015 v': 0.4808
--- CRI ---
Ra: 83.0 SDCM: 4.66
R1=82, R2=94, R3=93, R4=77, R5=82, R6=90, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=86, R14=97, R15=76
--- CIE 1931 ---
X: 662.004 Y: 702.182 Z: 649.858
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1492.026
Phi_eb (mW): 470.266
Phi_ey (mW): 679.672
Phi_er (mW): 330.604
Phi_efr (mW): 11.206
--- Electrical ---
Voltage (V): 230.29
Current (A): 0.0653
Power (W): 8.405
Frequency (Hz): 50.02
Power Factor: 0.5586
UThd (%): 0.8113
AThd (%): 109.0115
--- Voltage Harmonics (%) ---
H 1: 100.0000
H 2: 0.3370
H 3: 0.4587
H 4: 0.1953
H 5: 0.1626
H 6: 0.1061
H 7: 0.1800
H 8: 0.0513
H 9: 0.2902
H10: 0.0447
H11: 0.2477
H12: 0.0023
H13: 0.1861
H14: 0.0063
H15: 0.1183
H16: 0.0155
H17: 0.1239
H18: 0.0149
H19: 0.0590
H20: 0.0080
H21: 0.0465
H23: 0.0217
H24: 0.0079
H25: 0.0185
H26: 0.0076
H27: 0.0265
H28: 0.0027
H29: 0.0136
H30: 0.0066
H31: 0.0275
H32: 0.0042
H33: 0.0146
H34: 0.0129
H35: 0.0164
H36: 0.0080
H37: 0.0128
H38: 0.0066
H39: 0.0194
H40: 0.0092
H41: 0.0086
H42: 0.0019
H43: 0.0170
H44: 0.0057
H45: 0.0138
H46: 0.0013
H47: 0.0083
H48: 0.0043
H49: 0.0266
H50: 0.0067
--- Current Harmonics (%) ---
H 1: 100.0000
H 2: 1.1245
H 3: 77.3376
H 4: 1.3714
H 5: 54.7943
H 6: 1.2291
H 7: 35.3840
H 8: 1.1566
H 9: 25.6305
H10: 1.3803
H11: 20.6588
H12: 1.3435
H13: 14.4722
H14: 0.8883
H15: 8.2279
H16: 0.4150
H17: 5.8570
H18: 0.4188
H19: 5.5059
H20: 0.6645
H21: 5.3454
H22: 0.5912
H23: 5.7325
H24: 0.5132
H25: 5.0631
H26: 0.5359
H27: 4.0568
H28: 0.6665
H29: 3.8878
H30: 0.6506
H31: 3.9866
H32: 0.6108
H33: 3.3681
H34: 0.5727
H35: 2.7296
H36: 0.6597
H37: 2.9302
H38: 0.6761
H39: 2.9201
H40: 0.5632
H41: 2.7267
H42: 0.5785
H43: 2.7861
H44: 0.6036
H45: 2.7887
H46: 0.6251
H47: 2.5635
H48: 0.5767
H49: 2.3997
H50: 0.5808
--- Sensor ---
Peak Signal: 53165
Dark Signal: 2310
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0001 []
389.6nm: 0.0770 []
399.2nm: 0.3100 []
408.8nm: 0.7661 [##]
418.4nm: 1.6114 [####]
428.0nm: 3.0064 [########]
437.6nm: 5.1990 [###############]
447.2nm: 8.6082 [########################]
456.8nm: 12.6327 [####################################]
466.4nm: 13.6560 [#######################################]
476.0nm: 10.8536 [###############################]
485.6nm: 8.3290 [########################]
495.2nm: 6.7889 [###################]
504.8nm: 5.5147 [###############]
514.4nm: 4.7041 [#############]
524.0nm: 4.4857 [############]
533.6nm: 4.6031 [#############]
543.2nm: 4.8814 [##############]
552.8nm: 5.2789 [###############]
562.4nm: 5.6901 [################]
572.0nm: 6.0276 [#################]
581.6nm: 6.2592 [##################]
591.2nm: 6.4122 [##################]
600.8nm: 6.5277 [##################]
610.4nm: 6.6358 [###################]
620.0nm: 6.7792 [###################]
629.6nm: 6.9254 [###################]
639.2nm: 7.0578 [####################]
648.8nm: 7.1569 [####################]
658.4nm: 7.2319 [####################]
668.0nm: 7.2977 [#####################]
677.6nm: 7.3732 [#####################]
687.2nm: 7.4891 [#####################]
696.8nm: 7.5217 [#####################]
706.4nm: 7.4749 [#####################]
716.0nm: 7.3825 [#####################]
725.6nm: 7.2120 [####################]
735.2nm: 7.0133 [####################]
744.8nm: 6.7207 [###################]
754.4nm: 6.3674 [##################]
764.0nm: 5.9602 [#################]
773.6nm: 5.5667 [################]
783.2nm: 5.1329 [##############]
792.8nm: 4.7013 [#############]
802.3nm: 4.2745 [############]
811.9nm: 3.8716 [###########]
821.5nm: 3.4390 [#########]
831.1nm: 3.0240 [########]
840.7nm: 2.6514 [#######]
850.3nm: 2.2870 [######]
859.9nm: 1.9779 [#####]
869.5nm: 1.7045 [####]
879.1nm: 1.4498 [####]
888.7nm: 1.2401 [###]
898.3nm: 1.0367 [##]
907.9nm: 0.8554 [##]
917.5nm: 0.7071 [##]
927.1nm: 0.5781 [#]
936.7nm: 0.4678 [#]
946.3nm: 0.3798 [#]
955.9nm: 0.3085 []
965.5nm: 0.2315 []
975.1nm: 0.1769 []
984.7nm: 0.1405 []
994.3nm: 0.1102 []
1003.9nm: 0.0810 []
1013.5nm: 0.0582 []
1023.1nm: 0.0389 []
1032.7nm: 0.0225 []
1042.3nm: 0.0079 []
+43
View File
@@ -0,0 +1,43 @@
Device: HPCS6500
Date: 2026-02-04 Time: 16:50:38
--- Photometric ---
Phi (lm): 0.00
eta (lm/W): 0.00
CCT (K): 0
Duv: 0.00000
--- Chromaticity ---
x: 0.0000 y: 0.0000
u: 0.0000 v: 0.0000
u': 0.0000 v': 0.0000
--- CRI ---
Ra: 0.0 SDCM: 0.00
R1=0, R2=0, R3=0, R4=0, R5=0, R6=0, R7=0, R8=0
R9=0, R10=0, R11=0, R12=0, R13=0, R14=0, R15=0
--- CIE 1931 ---
X: 0.000 Y: 0.000 Z: 0.000
TLCI-2012: 0
--- Radiometric ---
Phi_e (mW): 0.000
Phi_eb (mW): 0.000
Phi_ey (mW): 0.000
Phi_er (mW): 0.000
Phi_efr (mW): 0.000
--- Electrical ---
Voltage (V): 0.00
Current (A): 0.0000
Power (W): 0.000
Frequency (Hz): 0.00
Power Factor: 0.0000
UThd (%): 0.8692
AThd (%): 116.7091
--- Sensor ---
Peak Signal: 0
Dark Signal: 0
Compensate: 0
+219
View File
@@ -0,0 +1,219 @@
Device: HPCS6500
Date: 2026-02-04 Time: 16:50:38
--- Photometric ---
Phi (lm): 0.00
eta (lm/W): 0.00
CCT (K): 0
Duv: 0.00000
--- Chromaticity ---
x: 0.0000 y: 0.0000
u: 0.0000 v: 0.0000
u': 0.0000 v': 0.0000
--- CRI ---
Ra: 0.0 SDCM: 0.00
R1=0, R2=0, R3=0, R4=0, R5=0, R6=0, R7=0, R8=0
R9=0, R10=0, R11=0, R12=0, R13=0, R14=0, R15=0
--- CIE 1931 ---
X: 0.000 Y: 0.000 Z: 0.000
TLCI-2012: 0
--- Radiometric ---
Phi_e (mW): 0.000
Phi_eb (mW): 0.000
Phi_ey (mW): 0.000
Phi_er (mW): 0.000
Phi_efr (mW): 0.000
--- Electrical ---
Voltage (V): 0.00
Current (A): 0.0000
Power (W): 0.000
Frequency (Hz): 0.00
Power Factor: 0.0000
UThd (%): 0.8692
AThd (%): 116.7091
--- Voltage Harmonics (%) ---
H 1: 100.0000
H 2: 0.3466
H 3: 0.5529
H 4: 0.1935
H 5: 0.1009
H 6: 0.1319
H 7: 0.1455
H 8: 0.0709
H 9: 0.3610
H10: 0.0452
H11: 0.2558
H12: 0.0099
H13: 0.1471
H14: 0.0182
H15: 0.0881
H16: 0.0119
H17: 0.0439
H18: 0.0054
H19: 0.0441
H20: 0.0039
H21: 0.0444
H22: 0.0038
H23: 0.0419
H24: 0.0070
H25: 0.0277
H26: 0.0086
H27: 0.0180
H28: 0.0038
H29: 0.0168
H30: 0.0031
H31: 0.0085
H32: 0.0042
H33: 0.0141
H34: 0.0039
H35: 0.0050
H36: 0.0076
H37: 0.0172
H38: 0.0017
H39: 0.0135
H40: 0.0122
H41: 0.0075
H42: 0.0091
H43: 0.0079
H44: 0.0052
H45: 0.0028
H46: 0.0063
H47: 0.0106
H48: 0.0055
H49: 0.0066
H50: 0.0032
--- Current Harmonics (%) ---
H 1: 100.0000
H 2: 1.3069
H 3: 79.6826
H 4: 1.6782
H 5: 62.0099
H 6: 1.8375
H 7: 43.0251
H 8: 1.4561
H 9: 27.1434
H10: 0.8638
H11: 16.3288
H12: 0.8914
H13: 10.5836
H14: 0.8186
H15: 7.8296
H16: 0.6092
H17: 7.1998
H18: 0.5320
H19: 6.8390
H20: 0.7901
H21: 5.9471
H22: 0.8641
H23: 5.4131
H24: 0.7893
H25: 5.4738
H26: 0.6972
H27: 5.4525
H28: 0.6923
H29: 4.8222
H30: 0.7761
H31: 4.3909
H32: 0.7792
H33: 4.3903
H34: 0.7458
H35: 4.3602
H36: 0.7061
H37: 3.9436
H38: 0.6865
H39: 3.6134
H40: 0.6928
H41: 3.4965
H42: 0.7969
H43: 3.1709
H44: 0.7282
H45: 2.8721
H46: 0.6770
H47: 2.6774
H48: 0.6486
H49: 2.6343
H50: 0.6855
--- Sensor ---
Peak Signal: 0
Dark Signal: 0
Compensate: 0
--- Spectrum (380-1050nm) ---
380.0nm: 0.0000 []
389.6nm: 0.0000 []
399.2nm: 0.0000 []
408.8nm: 0.0000 []
418.4nm: 0.0000 []
428.0nm: 0.0000 []
437.6nm: 0.0000 []
447.2nm: 0.0000 []
456.8nm: 0.0000 []
466.4nm: 0.0000 []
476.0nm: 0.0000 []
485.6nm: 0.0000 []
495.2nm: 0.0000 []
504.8nm: 0.0000 []
514.4nm: 0.0000 []
524.0nm: 0.0000 []
533.6nm: 0.0000 []
543.2nm: 0.0000 []
552.8nm: 0.0000 []
562.4nm: 0.0000 []
572.0nm: 0.0000 []
581.6nm: 0.0000 []
591.2nm: 0.0000 []
600.8nm: 0.0000 []
610.4nm: 0.0000 []
620.0nm: 0.0000 []
629.6nm: 0.0000 []
639.2nm: 0.0000 []
648.8nm: 0.0000 []
658.4nm: 0.0000 []
668.0nm: 0.0000 []
677.6nm: 0.0000 []
687.2nm: 0.0000 []
696.8nm: 0.0000 []
706.4nm: 0.0000 []
716.0nm: 0.0000 []
725.6nm: 0.0000 []
735.2nm: 0.0000 []
744.8nm: 0.0000 []
754.4nm: 0.0000 []
764.0nm: 0.0000 []
773.6nm: 0.0000 []
783.2nm: 0.0000 []
792.8nm: 0.0000 []
802.3nm: 0.0000 []
811.9nm: 0.0000 []
821.5nm: 0.0000 []
831.1nm: 0.0000 []
840.7nm: 0.0000 []
850.3nm: 0.0000 []
859.9nm: 0.0000 []
869.5nm: 0.0000 []
879.1nm: 0.0000 []
888.7nm: 0.0000 []
898.3nm: 0.0000 []
907.9nm: 0.0000 []
917.5nm: 0.0000 []
927.1nm: 0.0000 []
936.7nm: 0.0000 []
946.3nm: 0.0000 []
955.9nm: 0.0000 []
965.5nm: 0.0000 []
975.1nm: 0.0000 []
984.7nm: 0.0000 []
994.3nm: 0.0000 []
1003.9nm: 0.0000 []
1013.5nm: 0.0000 []
1023.1nm: 0.0000 []
1032.7nm: 0.0000 []
1042.3nm: 0.0000 []
+41
View File
@@ -0,0 +1,41 @@
Device: HPCS6500
Date: 2026-02-04 Time: 15:58:53
--- Photometric ---
Phi (lm): 479.83
eta (lm/W): 57.09
CCT (K): 5656
Duv: 0.00552
--- Chromaticity ---
x: 0.3288 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.0 SDCM: 4.70
R1=82, R2=94, R3=93, R4=77, R5=81, R6=89, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=87, R14=97, R15=76
--- CIE 1931 ---
X: 662.277 Y: 702.533 Z: 649.290
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1491.942
Phi_eb (mW): 469.864
Phi_ey (mW): 679.651
Phi_er (mW): 330.758
Phi_efr (mW): 11.142
--- Electrical ---
Voltage (V): 230.30
Current (A): 0.0653
Power (W): 8.405
Frequency (Hz): 50.02
Power Factor: 0.5587
--- Sensor ---
Peak Signal: 53051
Dark Signal: 2228
Compensate: 2834
+113
View File
@@ -0,0 +1,113 @@
Device: HPCS6500
Date: 2026-02-04 Time: 15:58:53
--- Photometric ---
Phi (lm): 479.83
eta (lm/W): 57.09
CCT (K): 5656
Duv: 0.00552
--- Chromaticity ---
x: 0.3288 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.0 SDCM: 4.70
R1=82, R2=94, R3=93, R4=77, R5=81, R6=89, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=87, R14=97, R15=76
--- CIE 1931 ---
X: 662.277 Y: 702.533 Z: 649.290
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1491.942
Phi_eb (mW): 469.864
Phi_ey (mW): 679.651
Phi_er (mW): 330.758
Phi_efr (mW): 11.142
--- Electrical ---
Voltage (V): 230.30
Current (A): 0.0653
Power (W): 8.405
Frequency (Hz): 50.02
Power Factor: 0.5587
--- Sensor ---
Peak Signal: 53051
Dark Signal: 2228
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0000 []
389.6nm: 0.0838 []
399.2nm: 0.3137 []
408.8nm: 0.7712 [##]
418.4nm: 1.6204 [####]
428.0nm: 3.0103 [########]
437.6nm: 5.1952 [###############]
447.2nm: 8.5932 [########################]
456.8nm: 12.6190 [####################################]
466.4nm: 13.6409 [#######################################]
476.0nm: 10.8421 [###############################]
485.6nm: 8.3131 [########################]
495.2nm: 6.7764 [###################]
504.8nm: 5.5052 [###############]
514.4nm: 4.6985 [#############]
524.0nm: 4.4838 [############]
533.6nm: 4.5985 [#############]
543.2nm: 4.8779 [##############]
552.8nm: 5.2744 [###############]
562.4nm: 5.6922 [################]
572.0nm: 6.0260 [#################]
581.6nm: 6.2605 [##################]
591.2nm: 6.4065 [##################]
600.8nm: 6.5303 [##################]
610.4nm: 6.6307 [###################]
620.0nm: 6.7723 [###################]
629.6nm: 6.9229 [###################]
639.2nm: 7.0529 [####################]
648.8nm: 7.1562 [####################]
658.4nm: 7.2298 [####################]
668.0nm: 7.2981 [#####################]
677.6nm: 7.3778 [#####################]
687.2nm: 7.4896 [#####################]
696.8nm: 7.5259 [#####################]
706.4nm: 7.4780 [#####################]
716.0nm: 7.3868 [#####################]
725.6nm: 7.2144 [####################]
735.2nm: 7.0180 [####################]
744.8nm: 6.7219 [###################]
754.4nm: 6.3660 [##################]
764.0nm: 5.9605 [#################]
773.6nm: 5.5733 [################]
783.2nm: 5.1339 [##############]
792.8nm: 4.7023 [#############]
802.3nm: 4.2764 [############]
811.9nm: 3.8736 [###########]
821.5nm: 3.4459 [#########]
831.1nm: 3.0290 [########]
840.7nm: 2.6555 [#######]
850.3nm: 2.2888 [######]
859.9nm: 1.9765 [#####]
869.5nm: 1.7011 [####]
879.1nm: 1.4485 [####]
888.7nm: 1.2418 [###]
898.3nm: 1.0371 [##]
907.9nm: 0.8565 [##]
917.5nm: 0.7085 [##]
927.1nm: 0.5742 [#]
936.7nm: 0.4662 [#]
946.3nm: 0.3787 [#]
955.9nm: 0.3092 []
965.5nm: 0.2320 []
975.1nm: 0.1777 []
984.7nm: 0.1411 []
994.3nm: 0.1086 []
1003.9nm: 0.0792 []
1013.5nm: 0.0565 []
1023.1nm: 0.0397 []
1032.7nm: 0.0197 []
1042.3nm: 0.0046 []
+41
View File
@@ -0,0 +1,41 @@
Device: HPCS6500
Date: 2026-02-04 Time: 16:04:22
--- Photometric ---
Phi (lm): 479.62
eta (lm/W): 57.10
CCT (K): 5655
Duv: 0.00551
--- Chromaticity ---
x: 0.3288 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.1 SDCM: 4.69
R1=82, R2=94, R3=93, R4=76, R5=81, R6=90, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=87, R14=97, R15=76
--- CIE 1931 ---
X: 662.007 Y: 702.221 Z: 648.987
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1491.544
Phi_eb (mW): 469.850
Phi_ey (mW): 679.956
Phi_er (mW): 331.674
Phi_efr (mW): 11.563
--- Electrical ---
Voltage (V): 230.29
Current (A): 0.0653
Power (W): 8.400
Frequency (Hz): 50.02
Power Factor: 0.5586
--- Sensor ---
Peak Signal: 53066
Dark Signal: 2236
Compensate: 2834
+113
View File
@@ -0,0 +1,113 @@
Device: HPCS6500
Date: 2026-02-04 Time: 16:04:22
--- Photometric ---
Phi (lm): 479.62
eta (lm/W): 57.10
CCT (K): 5655
Duv: 0.00551
--- Chromaticity ---
x: 0.3288 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.1 SDCM: 4.69
R1=82, R2=94, R3=93, R4=76, R5=81, R6=90, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=87, R14=97, R15=76
--- CIE 1931 ---
X: 662.007 Y: 702.221 Z: 648.987
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1491.544
Phi_eb (mW): 469.850
Phi_ey (mW): 679.956
Phi_er (mW): 331.674
Phi_efr (mW): 11.563
--- Electrical ---
Voltage (V): 230.29
Current (A): 0.0653
Power (W): 8.400
Frequency (Hz): 50.02
Power Factor: 0.5586
--- Sensor ---
Peak Signal: 53066
Dark Signal: 2236
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0004 []
389.6nm: 0.0896 []
399.2nm: 0.3198 []
408.8nm: 0.7697 [##]
418.4nm: 1.6099 [####]
428.0nm: 2.9921 [########]
437.6nm: 5.1750 [##############]
447.2nm: 8.5520 [########################]
456.8nm: 12.5835 [####################################]
466.4nm: 13.6533 [#######################################]
476.0nm: 10.8713 [###############################]
485.6nm: 8.3388 [########################]
495.2nm: 6.7961 [###################]
504.8nm: 5.5178 [###############]
514.4nm: 4.7100 [#############]
524.0nm: 4.4835 [############]
533.6nm: 4.5955 [#############]
543.2nm: 4.8758 [##############]
552.8nm: 5.2754 [###############]
562.4nm: 5.6932 [################]
572.0nm: 6.0259 [#################]
581.6nm: 6.2639 [##################]
591.2nm: 6.4078 [##################]
600.8nm: 6.5338 [##################]
610.4nm: 6.6373 [###################]
620.0nm: 6.7757 [###################]
629.6nm: 6.9260 [####################]
639.2nm: 7.0568 [####################]
648.8nm: 7.1664 [####################]
658.4nm: 7.2312 [####################]
668.0nm: 7.2992 [#####################]
677.6nm: 7.3760 [#####################]
687.2nm: 7.4918 [#####################]
696.8nm: 7.5267 [#####################]
706.4nm: 7.4803 [#####################]
716.0nm: 7.3913 [#####################]
725.6nm: 7.2224 [####################]
735.2nm: 7.0243 [####################]
744.8nm: 6.7270 [###################]
754.4nm: 6.3784 [##################]
764.0nm: 5.9711 [#################]
773.6nm: 5.5765 [################]
783.2nm: 5.1446 [##############]
792.8nm: 4.7115 [#############]
802.3nm: 4.2878 [############]
811.9nm: 3.8857 [###########]
821.5nm: 3.4575 [#########]
831.1nm: 3.0392 [########]
840.7nm: 2.6646 [#######]
850.3nm: 2.2973 [######]
859.9nm: 1.9856 [#####]
869.5nm: 1.7133 [####]
879.1nm: 1.4529 [####]
888.7nm: 1.2538 [###]
898.3nm: 1.0436 [###]
907.9nm: 0.8680 [##]
917.5nm: 0.7157 [##]
927.1nm: 0.5790 [#]
936.7nm: 0.4731 [#]
946.3nm: 0.3838 [#]
955.9nm: 0.3139 []
965.5nm: 0.2378 []
975.1nm: 0.1854 []
984.7nm: 0.1477 []
994.3nm: 0.1152 []
1003.9nm: 0.0853 []
1013.5nm: 0.0633 []
1023.1nm: 0.0463 []
1032.7nm: 0.0285 []
1042.3nm: 0.0129 []
+41
View File
@@ -0,0 +1,41 @@
Device: HPCS6500
Date: 2026-02-04 Time: 16:04:31
--- Photometric ---
Phi (lm): 479.61
eta (lm/W): 57.05
CCT (K): 5654
Duv: 0.00553
--- Chromaticity ---
x: 0.3288 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.0 SDCM: 4.71
R1=82, R2=94, R3=93, R4=76, R5=81, R6=89, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=87, R14=97, R15=76
--- CIE 1931 ---
X: 661.955 Y: 702.217 Z: 648.778
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1491.409
Phi_eb (mW): 470.118
Phi_ey (mW): 679.660
Phi_er (mW): 331.025
Phi_efr (mW): 11.807
--- Electrical ---
Voltage (V): 230.30
Current (A): 0.0653
Power (W): 8.407
Frequency (Hz): 50.02
Power Factor: 0.5589
--- Sensor ---
Peak Signal: 53066
Dark Signal: 2246
Compensate: 2834
+113
View File
@@ -0,0 +1,113 @@
Device: HPCS6500
Date: 2026-02-04 Time: 16:04:31
--- Photometric ---
Phi (lm): 479.61
eta (lm/W): 57.05
CCT (K): 5654
Duv: 0.00553
--- Chromaticity ---
x: 0.3288 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.0 SDCM: 4.71
R1=82, R2=94, R3=93, R4=76, R5=81, R6=89, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=87, R14=97, R15=76
--- CIE 1931 ---
X: 661.955 Y: 702.217 Z: 648.778
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1491.409
Phi_eb (mW): 470.118
Phi_ey (mW): 679.660
Phi_er (mW): 331.025
Phi_efr (mW): 11.807
--- Electrical ---
Voltage (V): 230.30
Current (A): 0.0653
Power (W): 8.407
Frequency (Hz): 50.02
Power Factor: 0.5589
--- Sensor ---
Peak Signal: 53066
Dark Signal: 2246
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0007 []
389.6nm: 0.1039 []
399.2nm: 0.3310 []
408.8nm: 0.7735 [##]
418.4nm: 1.6222 [####]
428.0nm: 3.0048 [########]
437.6nm: 5.1925 [##############]
447.2nm: 8.5847 [########################]
456.8nm: 12.6066 [####################################]
466.4nm: 13.6462 [#######################################]
476.0nm: 10.8482 [###############################]
485.6nm: 8.3167 [########################]
495.2nm: 6.7854 [###################]
504.8nm: 5.5031 [###############]
514.4nm: 4.7003 [#############]
524.0nm: 4.4902 [############]
533.6nm: 4.6031 [#############]
543.2nm: 4.8753 [##############]
552.8nm: 5.2749 [###############]
562.4nm: 5.6866 [################]
572.0nm: 6.0231 [#################]
581.6nm: 6.2593 [##################]
591.2nm: 6.4088 [##################]
600.8nm: 6.5298 [##################]
610.4nm: 6.6314 [###################]
620.0nm: 6.7770 [###################]
629.6nm: 6.9241 [###################]
639.2nm: 7.0596 [####################]
648.8nm: 7.1581 [####################]
658.4nm: 7.2321 [####################]
668.0nm: 7.2993 [#####################]
677.6nm: 7.3692 [#####################]
687.2nm: 7.4894 [#####################]
696.8nm: 7.5227 [#####################]
706.4nm: 7.4804 [#####################]
716.0nm: 7.3870 [#####################]
725.6nm: 7.2145 [####################]
735.2nm: 7.0141 [####################]
744.8nm: 6.7182 [###################]
754.4nm: 6.3698 [##################]
764.0nm: 5.9647 [#################]
773.6nm: 5.5730 [################]
783.2nm: 5.1334 [##############]
792.8nm: 4.7031 [#############]
802.3nm: 4.2776 [############]
811.9nm: 3.8751 [###########]
821.5nm: 3.4468 [#########]
831.1nm: 3.0270 [########]
840.7nm: 2.6591 [#######]
850.3nm: 2.2925 [######]
859.9nm: 1.9769 [#####]
869.5nm: 1.7079 [####]
879.1nm: 1.4541 [####]
888.7nm: 1.2449 [###]
898.3nm: 1.0430 [###]
907.9nm: 0.8654 [##]
917.5nm: 0.7167 [##]
927.1nm: 0.5787 [#]
936.7nm: 0.4744 [#]
946.3nm: 0.3864 [#]
955.9nm: 0.3180 []
965.5nm: 0.2400 []
975.1nm: 0.1895 []
984.7nm: 0.1487 []
994.3nm: 0.1197 []
1003.9nm: 0.0899 []
1013.5nm: 0.0693 []
1023.1nm: 0.0503 []
1032.7nm: 0.0345 []
1042.3nm: 0.0189 []
+41
View File
@@ -0,0 +1,41 @@
Device: HPCS6500
Date: 2026-02-05 Time: 17:57:56
--- Photometric ---
Phi (lm): 182.62
eta (lm/W): 0.00
CCT (K): 4937
Duv: 0.00214
--- Chromaticity ---
x: 0.3474 y: 0.3577
u: 0.2106 v: 0.3253
u': 0.2106 v': 0.4880
--- CRI ---
Ra: 83.5 SDCM: 1.52
R1=82, R2=90, R3=95, R4=82, R5=82, R6=84, R7=87, R8=67
R9=13, R10=75, R11=81, R12=54, R13=84, R14=97, R15=76
--- CIE 1931 ---
X: 259.640 Y: 267.378 Z: 220.377
TLCI-2012: 71
--- Radiometric ---
Phi_e (mW): 558.636
Phi_eb (mW): 152.549
Phi_ey (mW): 257.969
Phi_er (mW): 144.279
Phi_efr (mW): 5.738
--- Electrical ---
Voltage (V): 0.00
Current (A): 0.0000
Power (W): 0.000
Frequency (Hz): 0.00
Power Factor: 0.0000
--- Sensor ---
Peak Signal: 55124
Dark Signal: 2518
Compensate: 2834
+113
View File
@@ -0,0 +1,113 @@
Device: HPCS6500
Date: 2026-02-05 Time: 17:57:56
--- Photometric ---
Phi (lm): 182.62
eta (lm/W): 0.00
CCT (K): 4937
Duv: 0.00214
--- Chromaticity ---
x: 0.3474 y: 0.3577
u: 0.2106 v: 0.3253
u': 0.2106 v': 0.4880
--- CRI ---
Ra: 83.5 SDCM: 1.52
R1=82, R2=90, R3=95, R4=82, R5=82, R6=84, R7=87, R8=67
R9=13, R10=75, R11=81, R12=54, R13=84, R14=97, R15=76
--- CIE 1931 ---
X: 259.640 Y: 267.378 Z: 220.377
TLCI-2012: 71
--- Radiometric ---
Phi_e (mW): 558.636
Phi_eb (mW): 152.549
Phi_ey (mW): 257.969
Phi_er (mW): 144.279
Phi_efr (mW): 5.738
--- Electrical ---
Voltage (V): 0.00
Current (A): 0.0000
Power (W): 0.000
Frequency (Hz): 0.00
Power Factor: 0.0000
--- Sensor ---
Peak Signal: 55124
Dark Signal: 2518
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0128 []
389.6nm: 0.0556 []
399.2nm: 0.1567 [#]
408.8nm: 0.3618 [##]
418.4nm: 0.7370 [#####]
428.0nm: 1.3826 [##########]
437.6nm: 2.5671 [####################]
447.2nm: 4.3754 [##################################]
456.8nm: 5.0546 [#######################################]
466.4nm: 3.6483 [############################]
476.0nm: 2.4748 [###################]
485.6nm: 1.9566 [###############]
495.2nm: 1.4662 [###########]
504.8nm: 1.1959 [#########]
514.4nm: 1.2093 [#########]
524.0nm: 1.3289 [##########]
533.6nm: 1.5025 [###########]
543.2nm: 1.7276 [#############]
552.8nm: 1.9439 [###############]
562.4nm: 2.1145 [################]
572.0nm: 2.2373 [#################]
581.6nm: 2.3242 [##################]
591.2nm: 2.3852 [##################]
600.8nm: 2.4435 [###################]
610.4nm: 2.5010 [###################]
620.0nm: 2.5665 [####################]
629.6nm: 2.6256 [####################]
639.2nm: 2.6859 [####################]
648.8nm: 2.7312 [#####################]
658.4nm: 2.7605 [#####################]
668.0nm: 2.7875 [#####################]
677.6nm: 2.8117 [#####################]
687.2nm: 2.8452 [######################]
696.8nm: 2.8615 [######################]
706.4nm: 2.8705 [######################]
716.0nm: 2.8641 [######################]
725.6nm: 2.8432 [######################]
735.2nm: 2.8032 [#####################]
744.8nm: 2.7383 [#####################]
754.4nm: 2.6451 [####################]
764.0nm: 2.5241 [###################]
773.6nm: 2.3959 [##################]
783.2nm: 2.2367 [#################]
792.8nm: 2.0679 [################]
802.3nm: 1.8961 [##############]
811.9nm: 1.7246 [#############]
821.5nm: 1.5452 [############]
831.1nm: 1.3706 [##########]
840.7nm: 1.2060 [#########]
850.3nm: 1.0473 [########]
859.9nm: 0.9111 [#######]
869.5nm: 0.7856 [######]
879.1nm: 0.6734 [#####]
888.7nm: 0.5791 [####]
898.3nm: 0.4811 [###]
907.9nm: 0.4019 [###]
917.5nm: 0.3368 [##]
927.1nm: 0.2715 [##]
936.7nm: 0.2226 [#]
946.3nm: 0.1786 [#]
955.9nm: 0.1472 [#]
965.5nm: 0.1139 []
975.1nm: 0.0910 []
984.7nm: 0.0706 []
994.3nm: 0.0585 []
1003.9nm: 0.0451 []
1013.5nm: 0.0379 []
1023.1nm: 0.0298 []
1032.7nm: 0.0207 []
1042.3nm: 0.0151 []
@@ -0,0 +1,90 @@
============================================================
Reading 1 (t=0.01s)
============================================================
Device: HPCS6500
Date: 2026-02-04 Time: 15:58:55
--- Photometric ---
Phi (lm): 479.98
eta (lm/W): 57.09
CCT (K): 5653
Duv: 0.00551
--- Chromaticity ---
x: 0.3289 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.0 SDCM: 4.69
R1=82, R2=94, R3=93, R4=77, R5=82, R6=89, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=87, R14=97, R15=76
--- CIE 1931 ---
X: 662.526 Y: 702.748 Z: 649.286
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1492.631
Phi_eb (mW): 470.398
Phi_ey (mW): 680.493
Phi_er (mW): 331.425
Phi_efr (mW): 11.458
--- Electrical ---
Voltage (V): 230.31
Current (A): 0.0653
Power (W): 8.407
Frequency (Hz): 50.02
Power Factor: 0.5591
--- Sensor ---
Peak Signal: 53066
Dark Signal: 2219
Compensate: 2834
============================================================
Reading 2 (t=2.13s)
============================================================
Device: HPCS6500
Date: 2026-02-04 Time: 16:02:06
--- Photometric ---
Phi (lm): 479.89
eta (lm/W): 57.09
CCT (K): 5655
Duv: 0.00550
--- Chromaticity ---
x: 0.3288 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.0 SDCM: 4.67
R1=82, R2=94, R3=93, R4=77, R5=82, R6=89, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=86, R14=97, R15=76
--- CIE 1931 ---
X: 662.427 Y: 702.620 Z: 649.490
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1492.469
Phi_eb (mW): 470.073
Phi_ey (mW): 679.697
Phi_er (mW): 330.648
Phi_efr (mW): 11.237
--- Electrical ---
Voltage (V): 230.30
Current (A): 0.0653
Power (W): 8.406
Frequency (Hz): 50.02
Power Factor: 0.5592
--- Sensor ---
Peak Signal: 53055
Dark Signal: 2246
Compensate: 2834
@@ -0,0 +1,234 @@
============================================================
Reading 1 (t=0.01s)
============================================================
Device: HPCS6500
Date: 2026-02-04 Time: 15:58:55
--- Photometric ---
Phi (lm): 479.98
eta (lm/W): 57.09
CCT (K): 5653
Duv: 0.00551
--- Chromaticity ---
x: 0.3289 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.0 SDCM: 4.69
R1=82, R2=94, R3=93, R4=77, R5=82, R6=89, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=87, R14=97, R15=76
--- CIE 1931 ---
X: 662.526 Y: 702.748 Z: 649.286
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1492.631
Phi_eb (mW): 470.398
Phi_ey (mW): 680.493
Phi_er (mW): 331.425
Phi_efr (mW): 11.458
--- Electrical ---
Voltage (V): 230.31
Current (A): 0.0653
Power (W): 8.407
Frequency (Hz): 50.02
Power Factor: 0.5591
--- Sensor ---
Peak Signal: 53066
Dark Signal: 2219
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0008 []
389.6nm: 0.0890 []
399.2nm: 0.3229 []
408.8nm: 0.7770 [##]
418.4nm: 1.6247 [####]
428.0nm: 3.0114 [########]
437.6nm: 5.1952 [##############]
447.2nm: 8.5884 [########################]
456.8nm: 12.6235 [####################################]
466.4nm: 13.6578 [#######################################]
476.0nm: 10.8532 [###############################]
485.6nm: 8.3235 [########################]
495.2nm: 6.7865 [###################]
504.8nm: 5.5139 [###############]
514.4nm: 4.7091 [#############]
524.0nm: 4.4881 [############]
533.6nm: 4.6034 [#############]
543.2nm: 4.8833 [##############]
552.8nm: 5.2877 [###############]
562.4nm: 5.6993 [################]
572.0nm: 6.0321 [#################]
581.6nm: 6.2673 [##################]
591.2nm: 6.4150 [##################]
600.8nm: 6.5413 [##################]
610.4nm: 6.6433 [###################]
620.0nm: 6.7819 [###################]
629.6nm: 6.9311 [####################]
639.2nm: 7.0607 [####################]
648.8nm: 7.1652 [####################]
658.4nm: 7.2412 [####################]
668.0nm: 7.3020 [#####################]
677.6nm: 7.3772 [#####################]
687.2nm: 7.5026 [#####################]
696.8nm: 7.5342 [#####################]
706.4nm: 7.4841 [#####################]
716.0nm: 7.3912 [#####################]
725.6nm: 7.2247 [####################]
735.2nm: 7.0265 [####################]
744.8nm: 6.7293 [###################]
754.4nm: 6.3794 [##################]
764.0nm: 5.9717 [#################]
773.6nm: 5.5819 [################]
783.2nm: 5.1382 [##############]
792.8nm: 4.7075 [#############]
802.3nm: 4.2856 [############]
811.9nm: 3.8809 [###########]
821.5nm: 3.4503 [#########]
831.1nm: 3.0323 [########]
840.7nm: 2.6561 [#######]
850.3nm: 2.2916 [######]
859.9nm: 1.9863 [#####]
869.5nm: 1.7127 [####]
879.1nm: 1.4511 [####]
888.7nm: 1.2506 [###]
898.3nm: 1.0459 [###]
907.9nm: 0.8602 [##]
917.5nm: 0.7136 [##]
927.1nm: 0.5768 [#]
936.7nm: 0.4717 [#]
946.3nm: 0.3844 [#]
955.9nm: 0.3112 []
965.5nm: 0.2369 []
975.1nm: 0.1834 []
984.7nm: 0.1431 []
994.3nm: 0.1127 []
1003.9nm: 0.0847 []
1013.5nm: 0.0629 []
1023.1nm: 0.0458 []
1032.7nm: 0.0273 []
1042.3nm: 0.0104 []
============================================================
Reading 2 (t=2.13s)
============================================================
Device: HPCS6500
Date: 2026-02-04 Time: 16:02:06
--- Photometric ---
Phi (lm): 479.89
eta (lm/W): 57.09
CCT (K): 5655
Duv: 0.00550
--- Chromaticity ---
x: 0.3288 y: 0.3488
u: 0.2015 v: 0.3206
u': 0.2015 v': 0.4809
--- CRI ---
Ra: 83.0 SDCM: 4.67
R1=82, R2=94, R3=93, R4=77, R5=82, R6=89, R7=83, R8=64
R9=5, R10=84, R11=76, R12=60, R13=86, R14=97, R15=76
--- CIE 1931 ---
X: 662.427 Y: 702.620 Z: 649.490
TLCI-2012: 68
--- Radiometric ---
Phi_e (mW): 1492.469
Phi_eb (mW): 470.073
Phi_ey (mW): 679.697
Phi_er (mW): 330.648
Phi_efr (mW): 11.237
--- Electrical ---
Voltage (V): 230.30
Current (A): 0.0653
Power (W): 8.406
Frequency (Hz): 50.02
Power Factor: 0.5592
--- Sensor ---
Peak Signal: 53055
Dark Signal: 2246
Compensate: 2834
--- Spectrum (380-1050nm) ---
380.0nm: 0.0003 []
389.6nm: 0.0894 []
399.2nm: 0.3190 []
408.8nm: 0.7735 [##]
418.4nm: 1.6266 [####]
428.0nm: 3.0219 [########]
437.6nm: 5.2066 [###############]
447.2nm: 8.5984 [########################]
456.8nm: 12.6300 [####################################]
466.4nm: 13.6373 [#######################################]
476.0nm: 10.8302 [###############################]
485.6nm: 8.3115 [########################]
495.2nm: 6.7760 [###################]
504.8nm: 5.5051 [###############]
514.4nm: 4.7003 [#############]
524.0nm: 4.4846 [############]
533.6nm: 4.5981 [#############]
543.2nm: 4.8781 [##############]
552.8nm: 5.2836 [###############]
562.4nm: 5.6906 [################]
572.0nm: 6.0287 [#################]
581.6nm: 6.2648 [##################]
591.2nm: 6.4112 [##################]
600.8nm: 6.5259 [##################]
610.4nm: 6.6311 [###################]
620.0nm: 6.7794 [###################]
629.6nm: 6.9210 [###################]
639.2nm: 7.0479 [####################]
648.8nm: 7.1559 [####################]
658.4nm: 7.2319 [####################]
668.0nm: 7.2973 [#####################]
677.6nm: 7.3794 [#####################]
687.2nm: 7.4932 [#####################]
696.8nm: 7.5221 [#####################]
706.4nm: 7.4767 [#####################]
716.0nm: 7.3786 [#####################]
725.6nm: 7.2110 [####################]
735.2nm: 7.0181 [####################]
744.8nm: 6.7234 [###################]
754.4nm: 6.3685 [##################]
764.0nm: 5.9592 [#################]
773.6nm: 5.5700 [################]
783.2nm: 5.1347 [##############]
792.8nm: 4.6961 [#############]
802.3nm: 4.2714 [############]
811.9nm: 3.8696 [###########]
821.5nm: 3.4402 [#########]
831.1nm: 3.0220 [########]
840.7nm: 2.6562 [#######]
850.3nm: 2.2910 [######]
859.9nm: 1.9745 [#####]
869.5nm: 1.7021 [####]
879.1nm: 1.4475 [####]
888.7nm: 1.2388 [###]
898.3nm: 1.0408 [###]
907.9nm: 0.8597 [##]
917.5nm: 0.7104 [##]
927.1nm: 0.5750 [#]
936.7nm: 0.4669 [#]
946.3nm: 0.3804 [#]
955.9nm: 0.3071 []
965.5nm: 0.2300 []
975.1nm: 0.1785 []
984.7nm: 0.1403 []
994.3nm: 0.1103 []
1003.9nm: 0.0812 []
1013.5nm: 0.0610 []
1023.1nm: 0.0417 []
1032.7nm: 0.0264 []
1042.3nm: 0.0066 []
@@ -0,0 +1,2 @@
#1 480.0 lm 5653 K
#2 479.9 lm 5655 K
@@ -0,0 +1,47 @@
============================================================
Reading 1 (t=0.01s)
============================================================
Device: HPCS6500
Date: 2026-02-04 Time: 17:07:33
--- Photometric ---
Phi (lm): 0.00
eta (lm/W): 0.00
CCT (K): 0
Duv: 0.00000
--- Chromaticity ---
x: 0.0000 y: 0.0000
u: 0.0000 v: 0.0000
u': 0.0000 v': 0.0000
--- CRI ---
Ra: 0.0 SDCM: 0.00
R1=0, R2=0, R3=0, R4=0, R5=0, R6=0, R7=0, R8=0
R9=0, R10=0, R11=0, R12=0, R13=0, R14=0, R15=0
--- CIE 1931 ---
X: 0.000 Y: 0.000 Z: 0.000
TLCI-2012: 0
--- Radiometric ---
Phi_e (mW): 0.000
Phi_eb (mW): 0.000
Phi_ey (mW): 0.000
Phi_er (mW): 0.000
Phi_efr (mW): 0.000
--- Electrical ---
Voltage (V): 0.00
Current (A): 0.0000
Power (W): 0.000
Frequency (Hz): 60.04
Power Factor: 0.0000
UThd (%): 0.8692
AThd (%): 116.7091
--- Sensor ---
Peak Signal: 3801
Dark Signal: 3670
Compensate: 2836
@@ -0,0 +1,223 @@
============================================================
Reading 1 (t=0.01s)
============================================================
Device: HPCS6500
Date: 2026-02-04 Time: 17:07:33
--- Photometric ---
Phi (lm): 0.00
eta (lm/W): 0.00
CCT (K): 0
Duv: 0.00000
--- Chromaticity ---
x: 0.0000 y: 0.0000
u: 0.0000 v: 0.0000
u': 0.0000 v': 0.0000
--- CRI ---
Ra: 0.0 SDCM: 0.00
R1=0, R2=0, R3=0, R4=0, R5=0, R6=0, R7=0, R8=0
R9=0, R10=0, R11=0, R12=0, R13=0, R14=0, R15=0
--- CIE 1931 ---
X: 0.000 Y: 0.000 Z: 0.000
TLCI-2012: 0
--- Radiometric ---
Phi_e (mW): 0.000
Phi_eb (mW): 0.000
Phi_ey (mW): 0.000
Phi_er (mW): 0.000
Phi_efr (mW): 0.000
--- Electrical ---
Voltage (V): 0.00
Current (A): 0.0000
Power (W): 0.000
Frequency (Hz): 60.04
Power Factor: 0.0000
UThd (%): 0.8692
AThd (%): 116.7091
--- Voltage Harmonics (%) ---
H 1: 100.0000
H 2: 0.3466
H 3: 0.5529
H 4: 0.1935
H 5: 0.1009
H 6: 0.1319
H 7: 0.1455
H 8: 0.0709
H 9: 0.3610
H10: 0.0452
H11: 0.2558
H12: 0.0099
H13: 0.1471
H14: 0.0182
H15: 0.0881
H16: 0.0119
H17: 0.0439
H18: 0.0054
H19: 0.0441
H20: 0.0039
H21: 0.0444
H22: 0.0038
H23: 0.0419
H24: 0.0070
H25: 0.0277
H26: 0.0086
H27: 0.0180
H28: 0.0038
H29: 0.0168
H30: 0.0031
H31: 0.0085
H32: 0.0042
H33: 0.0141
H34: 0.0039
H35: 0.0050
H36: 0.0076
H37: 0.0172
H38: 0.0017
H39: 0.0135
H40: 0.0122
H41: 0.0075
H42: 0.0091
H43: 0.0079
H44: 0.0052
H45: 0.0028
H46: 0.0063
H47: 0.0106
H48: 0.0055
H49: 0.0066
H50: 0.0032
--- Current Harmonics (%) ---
H 1: 100.0000
H 2: 1.3069
H 3: 79.6826
H 4: 1.6782
H 5: 62.0099
H 6: 1.8375
H 7: 43.0251
H 8: 1.4561
H 9: 27.1434
H10: 0.8638
H11: 16.3288
H12: 0.8914
H13: 10.5836
H14: 0.8186
H15: 7.8296
H16: 0.6092
H17: 7.1998
H18: 0.5320
H19: 6.8390
H20: 0.7901
H21: 5.9471
H22: 0.8641
H23: 5.4131
H24: 0.7893
H25: 5.4738
H26: 0.6972
H27: 5.4525
H28: 0.6923
H29: 4.8222
H30: 0.7761
H31: 4.3909
H32: 0.7792
H33: 4.3903
H34: 0.7458
H35: 4.3602
H36: 0.7061
H37: 3.9436
H38: 0.6865
H39: 3.6134
H40: 0.6928
H41: 3.4965
H42: 0.7969
H43: 3.1709
H44: 0.7282
H45: 2.8721
H46: 0.6770
H47: 2.6774
H48: 0.6486
H49: 2.6343
H50: 0.6855
--- Sensor ---
Peak Signal: 3801
Dark Signal: 3670
Compensate: 2836
--- Spectrum (380-1050nm) ---
380.0nm: 0.0000 []
389.6nm: 0.0000 []
399.2nm: 0.0000 []
408.8nm: 0.0000 []
418.4nm: 0.0000 []
428.0nm: 0.0000 []
437.6nm: 0.0000 []
447.2nm: 0.0000 []
456.8nm: 0.0000 []
466.4nm: 0.0000 []
476.0nm: 0.0000 []
485.6nm: 0.0000 []
495.2nm: 0.0000 []
504.8nm: 0.0000 []
514.4nm: 0.0000 []
524.0nm: 0.0000 []
533.6nm: 0.0000 []
543.2nm: 0.0000 []
552.8nm: 0.0000 []
562.4nm: 0.0000 []
572.0nm: 0.0000 []
581.6nm: 0.0000 []
591.2nm: 0.0000 []
600.8nm: 0.0000 []
610.4nm: 0.0000 []
620.0nm: 0.0000 []
629.6nm: 0.0000 []
639.2nm: 0.0000 []
648.8nm: 0.0000 []
658.4nm: 0.0000 []
668.0nm: 0.0000 []
677.6nm: 0.0000 []
687.2nm: 0.0000 []
696.8nm: 0.0000 []
706.4nm: 0.0000 []
716.0nm: 0.0000 []
725.6nm: 0.0000 []
735.2nm: 0.0000 []
744.8nm: 0.0000 []
754.4nm: 0.0000 []
764.0nm: 0.0000 []
773.6nm: 0.0000 []
783.2nm: 0.0000 []
792.8nm: 0.0000 []
802.3nm: 0.0000 []
811.9nm: 0.0000 []
821.5nm: 0.0000 []
831.1nm: 0.0000 []
840.7nm: 0.0000 []
850.3nm: 0.0000 []
859.9nm: 0.0000 []
869.5nm: 0.0000 []
879.1nm: 0.0000 []
888.7nm: 0.0000 []
898.3nm: 0.0000 []
907.9nm: 0.0000 []
917.5nm: 0.0000 []
927.1nm: 0.0000 []
936.7nm: 0.0000 []
946.3nm: 0.0000 []
955.9nm: 0.0000 []
965.5nm: 0.0000 []
975.1nm: 0.0000 []
984.7nm: 0.0000 []
994.3nm: 0.0000 []
1003.9nm: 0.0000 []
1013.5nm: 0.0000 []
1023.1nm: 0.0000 []
1032.7nm: 0.0000 []
1042.3nm: 0.0000 []
@@ -0,0 +1 @@
#1 0.0 lm 0 K
+1
View File
@@ -0,0 +1 @@
[{"bits":0,"repr":"0.0","g6":"0","f2":"0.00","f0":"0","f1":"0.0","round1":"0.0"},{"bits":9223372036854775808,"repr":"-0.0","g6":"-0","f2":"-0.00","f0":"-0","f1":"-0.0","round1":"-0.0"},{"bits":4607182418800017408,"repr":"1.0","g6":"1","f2":"1.00","f0":"1","f1":"1.0","round1":"1.0"},{"bits":13830554455654793216,"repr":"-1.0","g6":"-1","f2":"-1.00","f0":"-1","f1":"-1.0","round1":"-1.0"},{"bits":4591870180066957722,"repr":"0.1","g6":"0.1","f2":"0.10","f0":"0","f1":"0.1","round1":"0.1"},{"bits":4602678819172646912,"repr":"0.5","g6":"0.5","f2":"0.50","f0":"0","f1":"0.5","round1":"0.5"},{"bits":4609434218613702656,"repr":"1.5","g6":"1.5","f2":"1.50","f0":"2","f1":"1.5","round1":"1.5"},{"bits":4612811918334230528,"repr":"2.5","g6":"2.5","f2":"2.50","f0":"2","f1":"2.5","round1":"2.5"},{"bits":4593671619917905920,"repr":"0.125","g6":"0.125","f2":"0.12","f0":"0","f1":"0.1","round1":"0.1"},{"bits":4600427019358961664,"repr":"0.375","g6":"0.375","f2":"0.38","f0":"0","f1":"0.4","round1":"0.4"},{"bits":4532020583610935537,"repr":"1e-05","g6":"1e-05","f2":"0.00","f0":"0","f1":"0.0","round1":"0.0"},{"bits":4547007122018943789,"repr":"0.0001","g6":"0.0001","f2":"0.00","f0":"0","f1":"0.0","round1":"0.0"},{"bits":4547007085125455641,"repr":"9.99995e-05","g6":"9.99995e-05","f2":"0.00","f0":"0","f1":"0.0","round1":"0.0"},{"bits":4683220279290232832,"repr":"123456.5","g6":"123456","f2":"123456.50","f0":"123456","f1":"123456.5","round1":"123456.5"},{"bits":4696837142389719040,"repr":"999999.5","g6":"1e+06","f2":"999999.50","f0":"1000000","f1":"999999.5","round1":"999999.5"},{"bits":4831355200913801216,"repr":"1000000000000000.0","g6":"1e+15","f2":"1000000000000000.00","f0":"1000000000000000","f1":"1000000000000000.0","round1":"1000000000000000.0"},{"bits":4846369599423283200,"repr":"1e+16","g6":"1e+16","f2":"10000000000000000.00","f0":"10000000000000000","f1":"10000000000000000.0","round1":"1e+16"},{"bits":4847542438873900484,"repr":"1.2345678901234568e+16","g6":"1.23457e+16","f2":"12345678901234568.00","f0":"12345678901234568","f1":"12345678901234568.0","round1":"1.2345678901234568e+16"},{"bits":4936209963552724370,"repr":"1e+22","g6":"1e+22","f2":"10000000000000000000000.00","f0":"10000000000000000000000","f1":"10000000000000000000000.0","round1":"1e+22"},{"bits":4502148214488346440,"repr":"1e-07","g6":"1e-07","f2":"0.00","f0":"0","f1":"0.0","round1":"0.0"},{"bits":1,"repr":"5e-324","g6":"4.94066e-324","f2":"0.00","f0":"0","f1":"0.0","round1":"0.0"},{"bits":9218868437227405311,"repr":"1.7976931348623157e+308","g6":"1.79769e+308","f2":null,"f0":null,"f1":null,"round1":"1.7976931348623157e+308"},{"bits":4636737291354636288,"repr":"100.0","g6":"100","f2":"100.00","f0":"100","f1":"100.0","round1":"100.0"},{"bits":4645392646888488960,"repr":"380.0","g6":"380","f2":"380.00","f0":"380","f1":"380.0","round1":"380.0"},{"bits":9221120237041090560,"repr":"nan","g6":"nan","f2":"nan","f0":"nan","f1":"nan","round1":null},{"bits":9218868437227405312,"repr":"inf","g6":"inf","f2":"inf","f0":"inf","f1":"inf","round1":null},{"bits":18442240474082181120,"repr":"-inf","g6":"-inf","f2":"-inf","f0":"-inf","f1":"-inf","round1":null},{"bits":4548686775598520385,"repr":"0.000123456789","g6":"0.000123457","f2":"0.00","f0":"0","f1":"0.0","round1":"0.0"},{"bits":4712889646492470477,"repr":"12345678.9","g6":"1.23457e+07","f2":"12345678.90","f0":"12345679","f1":"12345678.9","round1":"12345678.9"},{"bits":4607182409792818153,"repr":"0.999999","g6":"0.999999","f2":"1.00","f0":"1","f1":"1.0","round1":"1.0"},{"bits":4607182414296417781,"repr":"0.9999995","g6":"1","f2":"1.00","f0":"1","f1":"1.0","round1":"1.0"},{"bits":4621819117307496543,"repr":"9.9999995","g6":"10","f2":"10.00","f0":"10","f1":"10.0","round1":"10.0"},{"bits":4681608357448201011,"repr":"99999.95","g6":"99999.9","f2":"99999.95","f0":"100000","f1":"99999.9","round1":"99999.9"},{"bits":4698053236609777664,"repr":"1234567.0","g6":"1.23457e+06","f2":"1234567.00","f0":"1234567","f1":"1234567.0","round1":"1234567.0"},{"bits":4599075939470750516,"repr":"0.30000000000000004","g6":"0.3","f2":"0.30","f0":"0","f1":"0.3","round1":"0.3"},{"bits":4645392646888488960,"repr":"380.0","g6":"380","f2":"380.00","f0":"380","f1":"380.0","round1":"380.0"},{"bits":4645426419853101449,"repr":"381.91977077363896","g6":"381.92","f2":"381.92","f0":"382","f1":"381.9","round1":"381.9"},{"bits":4645460192817713938,"repr":"383.8395415472779","g6":"383.84","f2":"383.84","f0":"384","f1":"383.8","round1":"383.8"},{"bits":4645493965782326428,"repr":"385.75931232091693","g6":"385.759","f2":"385.76","f0":"386","f1":"385.8","round1":"385.8"},{"bits":4645527738746938917,"repr":"387.6790830945559","g6":"387.679","f2":"387.68","f0":"388","f1":"387.7","round1":"387.7"},{"bits":4645561511711551406,"repr":"389.59885386819485","g6":"389.599","f2":"389.60","f0":"390","f1":"389.6","round1":"389.6"},{"bits":4645595284676163895,"repr":"391.5186246418338","g6":"391.519","f2":"391.52","f0":"392","f1":"391.5","round1":"391.5"},{"bits":4645629057640Line truncated
+2
View File
@@ -0,0 +1,2 @@
#1 483.7 lm 5635 K
483.7 lm 5635 K
+2
View File
@@ -0,0 +1,2 @@
#2 479.6 lm 5661 K
479.6 lm 5661 K
+2
View File
@@ -0,0 +1,2 @@
#3 0.0 lm 0 K
0.0 lm 0 K
+2
View File
@@ -0,0 +1,2 @@
#4 479.8 lm 5656 K
479.8 lm 5656 K
+2
View File
@@ -0,0 +1,2 @@
#5 479.6 lm 5655 K
479.6 lm 5655 K
+2
View File
@@ -0,0 +1,2 @@
#6 479.6 lm 5654 K
479.6 lm 5654 K
+2
View File
@@ -0,0 +1,2 @@
#7 182.6 lm 4937 K
182.6 lm 4937 K
File diff suppressed because it is too large. Load diff
+143
View File
@@ -0,0 +1,143 @@
//! The driver against the simulated instrument: command bytes, measurement
//! sequences, supply handling, timeouts and cancellation.
use hpcs6500::protocol::{self, cmd};
use hpcs6500::sim::Simulator;
use hpcs6500::{Error, Hpcs6500, Mode};
use std::sync::Arc;
use std::sync::atomic::{AtomicBool, Ordering};
use std::time::{Duration, Instant};
fn dev() -> Hpcs6500<Simulator> {
Hpcs6500::with_transport(Simulator::sample(), "sim")
}
fn cmds(d: &Hpcs6500<Simulator>) -> Vec<u8> {
d.transport().log.iter().map(|f| f[1]).collect()
}
#[test]
fn identify_and_supply_commands() {
let mut d = dev();
assert_eq!(d.identify().unwrap(), "HPCS6500");
d.set_mode(Mode::Dc).unwrap();
d.set_dc_voltage(12.0).unwrap();
d.set_dc_current(1.5).unwrap();
d.set_ac_voltage(230.0).unwrap();
d.set_ac_frequency(60.0).unwrap();
d.set_integration_time(500.0).unwrap();
let s = d.read_psu_settings().unwrap();
assert_eq!(
(
s.mode,
s.dc_voltage,
s.dc_current,
s.ac_voltage,
s.ac_frequency
),
(Mode::Dc, 12.0, 1.5, 230.0, 60.0)
);
let log = &d.transport().log;
assert_eq!(log[1], vec![0x8C, 0x7A, 0x01]);
assert_eq!(log[2], protocol::frame_f32(cmd::SET_DC, 1, 12.0));
assert_eq!(log[3], protocol::frame_f32(cmd::SET_DC, 0, 1.5));
assert_eq!(log[6], vec![0x8C, 0x01, 0x20, 0xA1, 0x07, 0x00]); // 500 000 us
d.psu_on().unwrap();
assert!(d.transport().output_on);
d.psu_off().unwrap();
assert!(!d.transport().output_on);
}
#[test]
fn single_reading_follows_the_vendor_sequence() {
let mut d = dev();
d.send_test_config(false).unwrap();
let r = d.take_single_reading().unwrap();
assert_eq!(r.device, "HPCS6500");
assert!((r.flux_lm() - 483.7375).abs() < 1e-3);
assert!(r.electrical.is_some());
// 2B 2B, trigger (0E 02), polls, 13, 77, reset
let c = cmds(&d);
assert_eq!(&c[..3], &[cmd::TEST_CONFIG, cmd::TEST_CONFIG, cmd::START]);
assert_eq!(d.transport().log[2], vec![0x8C, 0x0E, 0x02]);
assert!(c[3..c.len() - 3].iter().all(|&x| x == cmd::POLL_STATE));
assert_eq!(
&c[c.len() - 3..],
&[cmd::READ_MEASUREMENT, cmd::READ_ELECTRICAL, cmd::RESET]
);
assert!(!d.transport().output_on, "the supply is not touched");
}
#[test]
fn continuous_reading_switches_the_supply_around_it() {
let mut d = dev();
let r = d.take_reading(true).unwrap();
assert_eq!(r.spectrum.len(), 350);
let c = cmds(&d);
assert_eq!(c[0], cmd::PSU_OUTPUT);
assert_eq!(d.transport().log[0], vec![0x8C, 0x72, 0x00]);
assert_eq!(d.transport().log[1], vec![0x8C, 0x0E, 0x01]);
assert_eq!(
&c[c.len() - 4..],
&[
cmd::READ_MEASUREMENT,
cmd::READ_ELECTRICAL,
cmd::START,
cmd::PSU_OUTPUT
]
);
assert_eq!(d.transport().log.last().unwrap(), &vec![0x8C, 0x72, 0x01]);
assert!(!d.transport().output_on);
}
#[test]
fn silent_instrument_times_out_and_the_supply_still_goes_off() {
let mut d = dev();
d.transport_mut().mute = vec![cmd::POLL_STATE];
let mut sim = Simulator::sample();
sim.mute = vec![cmd::IDENTIFY];
let mut quiet = Hpcs6500::with_transport(sim, "sim");
let t = Instant::now();
assert!(matches!(
quiet.identify(),
Err(Error::BadResponse { cmd: 0, .. })
));
assert!(t.elapsed() >= Duration::from_secs(2) && t.elapsed() < Duration::from_secs(4));
// a reading whose data never arrives: cancel it instead of waiting 30 s
let stop = Arc::new(AtomicBool::new(false));
d.set_cancel_flag(stop.clone());
let s2 = stop.clone();
std::thread::spawn(move || {
std::thread::sleep(Duration::from_millis(300));
s2.store(true, Ordering::SeqCst);
});
let t = Instant::now();
let r = d.take_reading(true);
assert!(matches!(r, Err(Error::Cancelled)), "{r:?}");
assert!(t.elapsed() < Duration::from_secs(8));
assert!(
!d.transport().output_on,
"supply off after the failed reading"
);
assert_eq!(d.transport().log.last().unwrap(), &vec![0x8C, 0x72, 0x01]);
}
#[test]
fn missing_ack_is_an_error() {
let mut sim = Simulator::sample();
sim.mute = vec![cmd::PSU_OUTPUT];
let mut d = Hpcs6500::with_transport(sim, "sim");
assert!(matches!(d.psu_on(), Err(Error::NoAck { cmd: 0x72, .. })));
}
#[test]
fn passive_read_and_replay_cycle_through_readings() {
let mut sim = Simulator::sample();
sim.polls_to_ready = 0;
let mut d = Hpcs6500::with_transport(sim, "sim");
let a = d.read_current().unwrap();
let b = d.take_single_reading().unwrap();
assert_eq!(a, b);
assert_eq!(d.transport().served, 1);
}