Commit Graph

12 Commits

Author SHA1 Message Date
cfd589b04b Only auto-control PSU in continuous mode
Single measurements don't toggle PSU - the device handles it.
PSU auto-control now only happens with --continuous flag.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 14:38:51 +07:00
20c61d5cff Use take_single_reading() for single measurements in CLI
Only use take_reading() (continuous-style) when --continuous flag is set.
Default single measurement now matches vendor single-test behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 14:36:58 +07:00
d06bf451f5 Simplify single-test to match vendor capture exactly
Remove send_test_config() call - vendor software doesn't send 8C 2B for
each single test, only when changing modes. Remove set_integration_time()
from spectrometer.py - vendor doesn't send 8C 01 either.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 14:34:31 +07:00
fe9ced5f5b Send test config (8C 2B) before single-shot measurement
The device needs the test config commands to enter single-test mode.
Without them it behaves as continuous start+stop. Supports auto_psu flag
so the device can handle PSU on/off automatically.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 10:04:47 +07:00
98101ab5d0 Document single-shot measurement and test config commands (8C 2B, 8C 7B)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 09:29:05 +07:00
3bf4a7ad36 Add single-shot measurement mode matching vendor protocol
Stop command triggers a one-shot reading instead of start+poll+stop.
spectrometer.py now uses take_single_reading() for this flow.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 09:23:38 +07:00
15d8444cac Add calibration.py and force auto integration in spectrometer.py
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 09:13:07 +07:00
739f828dea Remove PSU control from spectrometer.py — machine handles it
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 15:05:59 +07:00
85da7f09dc Add delay after PSU on to let it stabilize before measuring
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 15:02:50 +07:00
031bb420f9 Add spectrometer.py JSON wrapper for external tools
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 14:21:15 +07:00
7c00320fe8 Fix unicode multiplication signs in comments
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 14:00:34 +07:00
0f09c70215 first commit
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 13:57:58 +07:00