pmokeDOCS
設定

設定リファレンス

pmoke config schema version 5の自動生成fieldリファレンス。

型付きconfig metadata registryから自動生成。手動編集は上書き対象。

JSON Schema · pmoke config explain

version

path必須状態既定値 / 候補説明・制約
versioninteger必須5設定スキーマのバージョン 新規設定と移行済み設定で使用するバージョン5。 制約: must equal 5

scope

path必須状態既定値 / 候補説明・制約
scopetable必須-オシロスコープ設定 登録済みモデルと通信URIの組み合わせ。
scope.modelstring必須DHO5108オシロスコープモデル instruments crateに登録されたモデル名との一致。 制約: must be a registered oscilloscope model
scope.connectionconnection URI必須tcp://, visa:, gpib://オシロスコープの通信URI DHO5108で使用するdirect TCP/IP。Prologix transport対象外。 制約: transport must be supported by the model and build features

generator

path必須状態既定値 / 候補説明・制約
generatortable任意absent任意のファンクションジェネレータ設定 triggerまたは自動測定系commandで必要な装置設定。 制約: required by trigger, autoshot, automeasure, and auto
generator.modelstring条件付きWF1946Bファンクションジェネレータモデル generator table使用時に必要な登録名。 制約: must be a registered generator model
generator.connectionconnection URI条件付きgpib://, prologix-tcp://, prologix-serial://ファンクションジェネレータの通信URI native GPIBまたはPrologix TCP/serialの選択。 制約: transport must be supported by the model and build features

data

path必須状態既定値 / 候補説明・制約
datatable必須-取得データ方針 標準波形形式と任意のスクリーンショット取得の設定。
data.outputstring enum必須csv, raw, both取得波形の保存形式 大規模取得向けraw、CSV併記向けboth。
data.inputstring enum必須csv, raw, auto解析波形の入力形式 利用可能な標準データを選ぶauto。検証済みraw優先。
data.screenshotboolean任意false; true, falseオシロスコープ画面取得 display transfer対応モデル・通信方式での任意取得。 制約: DHO5108 capture requires TCP/IP or USB-TMC

sensors

path必須状態既定値 / 候補説明・制約
sensorsarray of tables条件付き[]センサーチャンネル一覧 各channelと単一scale方針の対応。 制約: channels must not overlap reference or lock-in signal channels

sensors[]

path必須状態既定値 / 候補説明・制約
sensors[].channelinteger必須-センサーチャンネル番号 DHO5108向け1以上8以下の番号。 制約: 1 <= value <= 8; must be unique across all channel roles
sensors[].scaleinline table union必須{ factor = ... }, { max_abs = ..., polarity = ... }センサー変換規則 直接係数または最大絶対値正規化の択一。 制約: factor and max_abs forms are mutually exclusive
sensors[].scale.factorfloat条件付き-線形センサー変換係数 積分センサー値への直接乗算。 制約: must be finite and non-zero
sensors[].scale.max_absfloat条件付き-最大絶対値の正規化目標 測定最大絶対値に対応する正の目標値。 制約: must be finite and positive
sensors[].scale.polarityinteger enum条件付き-1, 1最大絶対値正規化の極性 max_abs使用時の必須符号。 制約: must equal -1 or 1
sensors[].labelstring必須-センサープロットラベル TOML literal stringで指定可能なMatplotlib mathtext。 制約: must not be empty
sensors[].unitstring必須-変換後センサーの出力単位 表・プロット・解析保存headerでの単位。 制約: must not be empty

pulse

path必須状態既定値 / 候補説明・制約
pulsetable必須-パルス背景区間 パルス前後のベースライン領域。 制約: background windows must not overlap
pulse.background_beforeinline time window · s必須-パルス前背景区間 有限なstartとendのinline table。 制約: start < end
pulse.background_afterinline time window · s必須-パルス後背景区間 有限なstartとendのinline table。 制約: start < end

reference

path必須状態既定値 / 候補説明・制約
referencetable必須-EOM駆動用正弦波の解析設定 EOMへ入力するファンクションジェネレータ正弦波の記録チャンネル、FFT区間、fit間引きを指定。
reference.channelinteger必須-EOM駆動信号の記録チャンネル EOMへ入力するファンクションジェネレータ正弦波を記録するDHO5108の1以上8以下のチャンネル。 制約: 1 <= value <= 8; must be unique across all channel roles
reference.fft_windowinline time window · s必須-EOM駆動信号FFTの時間区間 記録した正弦波の安定区間を表す有限なstartとend。 制約: start < end
reference.stride_samplesinteger · samples必須-EOM駆動正弦波fitの間引き幅 計算量と時間分解能の調整値。 制約: must be positive
reference.window_samplesinteger · samples必須-局所EOM駆動正弦波fitの窓幅 FFT推定値周辺で使用するsample数。 制約: must be positive

lockin

path必須状態既定値 / 候補説明・制約
lockintable必須-数値lock-in設定 信号channel、並列度、出力間引き、low-pass filterの指定。
lockin.signal_channelsinteger array条件付き-lock-in 復調対象チャンネル lock-inと後段解析で必要な1件以上のchannel番号。 制約: each value must be in 1..=8; must be unique across all channel roles
lockin.workersinteger必須-lock-inの並列worker数 物理CPU数付近を初期値とする並列度。 制約: must be positive
lockin.stride_samplesinteger · samples必須-lock-in 出力間引き幅 入力sample rateを割るsample数。出力sample rateを決定。 制約: must be positive
lockin.filtertagged inline table必須-lock-in low-pass filter 設定 schema v5ではboxcar_legacyのみを使用。 制約: fields from other filter kinds are rejected
lockin.filter.kindstring enum必須boxcar_legacylock-in filter アルゴリズム 現在のLPFはboxcar_legacyのみ。過去のFIR/IIR kindは移行診断のためだけに読み取る。
lockin.filter.half_window_cyclesfloat · reference cycles必須-参照周期単位の半窓幅 boxcar積分窓を参照周期単位で指定する半窓幅。 制約: must be finite and positive
lockin.debug_outputboolean任意false; true, falselock-in debug artifact 出力 filter調査時のみ有効化する大容量artifact出力。
lockin.debug_labelstring任意absentdebug artifactの安全なsuffix 短いASCII filename-safe文字列。 制約: 1-64 ASCII alphanumeric, '.', '_', or '-'; must not be '.' or '..'
lockin.debug_overwriteboolean任意false; true, falsedebug artifact 上書き方針 同名debug出力の置換許可。
lockin.snr_background_windowinline time window · s任意absentSNR 診断用背景区間 有限なstartとendの任意inline table。 制約: start < end
lockin.snr_signal_windowinline time window · s任意absentSNR 診断用信号区間 有限なstartとendの任意inline table。 制約: start < end
lockin.save_npyboolean任意false; true, falselock-in結果のNumPy出力 標準CSVに追加するNPY artifact。

phase

path必須状態既定値 / 候補説明・制約
phasetable必須-位相回転設定 第1から第6高調波のoffset。
phase.offsetsfloat or expression array · rad必須-6高調波の位相offset pi/2などの数式指定に対応するrad値。 制約: must contain exactly 6 finite values

kerr

path必須状態既定値 / 候補説明・制約
kerrtable必須-Kerr角度の変換設定 校正用センサー、計算方法、最終係数を指定。
kerr.sensorinteger必須-Kerr角度の校正に使用するセンサーチャンネル sensors配列に存在するチャンネルを指定。 制約: must reference sensors[].channel
kerr.methodstring enum必須standard, harmonicsKerr角度の計算方法 standardまたはharmonics実装を選択。
kerr.factorfloat必須-Kerr角度の最終変換係数 選択したKerr角度計算後に乗算する値。 制約: must be finite

plot

path必須状態既定値 / 候補説明・制約
plottable任意defaultsプロット生成設定 表示・保存、間引き、失敗方針の指定。
plot.modestring enum任意save; off, save, interactive, bothplot出力mode batch向けsaveとMatplotlib window向けinteractive。
plot.max_pointsinteger · points per series任意100000プロット入力の最大点数 大規模取得時のMatplotlib応答性調整値。 制約: must be positive
plot.decimationstring enum任意stride; none, stride, min_maxプロット間引きアルゴリズム 狭い極値の保持に適したmin_max。
plot.on_errorstring enum任意warn; warn, failプロット失敗方針 解析成功を保持するwarnと致命扱いのfail。
plot.output_dirstring任意absent非推奨のplot directory互換field version 5で受理後に無視される値。artifactは標準run layout。 制約: ignored with a warning

目次