Расширить DSView осциллографом и декодерами двигателя и сигма-дельта

This commit is contained in:
2026-11-12 15:00:41 +03:00
parent fa5ea166a9
commit 1fc88684d5
41 changed files with 4147 additions and 151 deletions
+32
View File
@@ -77,6 +77,11 @@ requires Windows 10/11; it does not add Windows 7 support.
## SET decoders
The **Sigma-delta** decoder (`sigma_delta`) reconstructs a clocked one-bit
DATA/CLK stream using sinc1/2/3 decimation. It includes sampling-edge and polarity
selection, normalized samples, voltage scaling and clock/output-rate annotations.
See [sigma-delta settings](decoders/sigma_delta/README.md).
`decoders/` contains the sigrok front ends for `gate_driver_timing` (1SP0635 /
1SD536F2), `set_uart` (SET v1/v2, ProtoCAN bridge), `set_can` (ProtoCAN, SET v2,
Balsam), and `pm35_uart` (TMS320F28335 MODBUS 03/06).
@@ -226,8 +231,35 @@ section headings. The changes are packaged in `decoder-panel.patch`.
Добавление пакетов обновляет Python-декодеры без пересборки EXE;
изменение раздела «Пользовательские» применяется при следующей нативной сборке.
## Фазные токи асинхронного двигателя
**PWM motor currents** (`pwm_motor`) оценивает линейные Ia/Ib/Ic в амперах
по ШИМ двухуровневого или трёхуровневого инвертора, полному напряжению звена
и параметрам короткозамкнутого асинхронного двигателя. Входы: три верхние
команды, шесть команд P/N или двенадцать затворов NPC. Скорость ротора
задаётся постоянной; доступны звезда/треугольник и начальные токи/поток.
[Назначение входов, параметры и ограничения](decoders/pwm_motor/README.md).
Цветные кривые и шкала ампер требуют `motor-currents.patch`, который штатный
рецепт применяет после остальных графических патчей. Адаптер и общее ядро
входят в общую ведомость установки. Проверка:
`python -m unittest discover -s tools/dsview/tests -p test_pwm_motor.py -v`.
Нативная проверка готовой DSL-записи:
`python tools/dsview/tests/check_motor_native.py --runtime <dsview> --capture <motor.dsl> --output <artifacts>`.
## PWM waveform / ШИМ → синус
Double-click an individual decoder plot to open it in a separate scope window.
The decoder label context menu offers the same action for each visible plot.
Combined A/B/C opens as one scope; split phases, theta and carrier open separately.
Wheel zoom, drag to pan, full-record fit, amplitude fit, physical Y range and
phase visibility affect only the extra window. It shares the decoder's indexed
results and follows input colours; removing the source decoder closes the scope.
The build includes `decoder-scope.patch` and `native/decoder_scope.h`.
Native interaction check (a 120000-sample DSL with the motor decoder last):
`python tools/dsview/tests/check_decoder_scope_native.py --runtime <dsview> --capture <example.dsl> --output <artifacts>`.
Декодер восстанавливает кривые заполнения для 1–3 цифровых входов.
В SETGUI он находится в меню **Анализаторы SET → ШИМ → синус · 1–3 канала**.
[Настройки, режимы и ограничения](decoders/pwm_waveform/README.md).