synthesis模式bug修改

This commit is contained in:
“hsc”
2026-10-22 14:36:21 +08:00
parent 6bbca727ca
commit d9052861f5
3 changed files with 103 additions and 41 deletions
@@ -394,10 +394,21 @@
Text="{Binding SynthDc, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Text="V" VerticalAlignment="Center" Margin="2,0,0,0" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,4">
<TextBlock Text="编辑相位" Style="{StaticResource ParamLabel}" />
<ComboBox Width="100" Height="32" FontSize="12" Margin="4,0"
ToolTip="当前编辑的相位(INST:NSEL 1/2/3),起始相位/谐波振幅/谐波相位作用于该相"
ItemsSource="{Binding ListPhaseOptions}"
SelectedIndex="{Binding SynthEditPhaseIndex}" />
<Button Content="复制当前相到三相(起始相位自动 ±120°)"
Command="{Binding CopySynthPhaseToThreeCommand}"
Style="{StaticResource CmdBtn}" Margin="8,0,0,0"
ToolTip="把当前相的起始相位/谐波振幅/谐波相位复制到另外两相:谐波内容相同,起始相位按 ±120° 偏移生成对称三相;需再点「下发并启动 SYNTH」写入仪器" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,4">
<TextBlock Text="起始相位" Style="{StaticResource ParamLabel}" />
<TextBox Style="{StaticResource NumInput}"
ToolTip="SYNT:SPH,起始相位角,单位 °,0.0 ~ 359.9"
ToolTip="SYNT:SPH,起始相位角,单位 °,0.0 ~ 359.9(作用于上方选中的编辑相位)"
Text="{Binding SynthStartPhase, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Text="°" VerticalAlignment="Center" Margin="2,0,0,0" />
</StackPanel>
@@ -415,12 +426,13 @@
<StackPanel Orientation="Horizontal" Margin="0,4">
<Button Content="下发并启动 SYNTH" Command="{Binding DownloadSynthesisCommand}"
Style="{StaticResource CmdBtn}"
ToolTip="三相独立下发(INST:EDIT EACH + INST:NSEL 逐相):每相谐波内容相同、起始相位各不相同(±120° 对称)"
Background="#388E3C" Foreground="White" />
<Button Content="停止 SYNTH" Command="{Binding SynthStopCommand}"
Style="{StaticResource WarnBtn}" />
<Button Content="重置谐波(50个0)" Command="{Binding ResetSynthHarmonicsCommand}"
<Button Content="重置谐波(49个0)" Command="{Binding ResetSynthHarmonicsCommand}"
Style="{StaticResource CmdBtn}"
ToolTip="把谐波振幅/相位两框填成 50 个 0(仅改界面文本,需再点「下发并启动 SYNTH」才写入仪器)" />
ToolTip="谐波范围 2~50 阶共 49 个值(首值对应 2 次):把谐波振幅/相位两框填成 49 个 0(仅改界面文本,需再点「下发并启动 SYNTH」才写入仪器)" />
</StackPanel>
</StackPanel>
</GroupBox>