492 lines
36 KiB
XML
492 lines
36 KiB
XML
<UserControl x:Class="AuroraTriggerBoard.SJT.UCTriggerBoard"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:AuroraTriggerBoard.SJT"
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
d:DataContext="{d:DesignInstance Type=local:UCTriggerBoardViewModel}"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="550"
|
|
d:DesignWidth="1000"
|
|
d:Background="#efefef">
|
|
<UserControl.Resources>
|
|
<!--색상-->
|
|
<Color x:Key="GreenColor">#00C28C</Color>
|
|
<Color x:Key="LightGrayColor">#C5C5C5</Color>
|
|
<SolidColorBrush x:Key="GreenBrush"
|
|
Color="{StaticResource GreenColor}" />
|
|
<SolidColorBrush x:Key="LightGrayBrush"
|
|
Color="{StaticResource LightGrayColor}" />
|
|
|
|
<!--스타일-->
|
|
<Style x:Key="SliderCheckBox" TargetType="{x:Type CheckBox}">
|
|
<Setter Property="MaxHeight" Value="20" />
|
|
<Setter Property="MaxWidth" Value="35" />
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type CheckBox}">
|
|
<ControlTemplate.Resources>
|
|
<Storyboard x:Key="StoryboardIsChecked">
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)"
|
|
Storyboard.TargetName="CheckFlag">
|
|
<EasingDoubleKeyFrame KeyTime="0" Value="0" />
|
|
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="14" />
|
|
</DoubleAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
<Storyboard x:Key="StoryboardIsCheckedOff">
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)"
|
|
Storyboard.TargetName="CheckFlag">
|
|
<EasingDoubleKeyFrame KeyTime="0" Value="14" />
|
|
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0" />
|
|
</DoubleAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</ControlTemplate.Resources>
|
|
<BulletDecorator Background="Transparent" SnapsToDevicePixels="true">
|
|
<BulletDecorator.Bullet>
|
|
<Border x:Name="ForegroundPanel" BorderThickness="1" Width="35" Height="20" CornerRadius="10">
|
|
<Canvas>
|
|
<!--원 색상-->
|
|
<Border x:Name="CheckFlag" Background="White"
|
|
Width="19" Height="18" CornerRadius="10"
|
|
VerticalAlignment="Center" BorderThickness="1" RenderTransformOrigin="0.5,0.5">
|
|
<Border.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform />
|
|
<SkewTransform />
|
|
<RotateTransform />
|
|
<TranslateTransform />
|
|
</TransformGroup>
|
|
</Border.RenderTransform>
|
|
<Border.Effect>
|
|
<DropShadowEffect ShadowDepth="1" Direction="180" />
|
|
</Border.Effect>
|
|
</Border>
|
|
</Canvas>
|
|
</Border>
|
|
</BulletDecorator.Bullet>
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
Margin="{TemplateBinding Padding}"
|
|
RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
VerticalAlignment="Center" />
|
|
</BulletDecorator>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="HasContent" Value="true">
|
|
<!--<Setter Property="FocusVisualStyle"
|
|
Value="{StaticResource CheckRadioFocusVisual}"/>-->
|
|
<Setter Property="Padding" Value="4,0,0,0" />
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter TargetName="ForegroundPanel" Property="Background"
|
|
Value="{StaticResource GreenBrush}" />
|
|
<Trigger.EnterActions>
|
|
<BeginStoryboard x:Name="BeginStoryboardCheckedTrue"
|
|
Storyboard="{StaticResource StoryboardIsChecked}" />
|
|
<RemoveStoryboard BeginStoryboardName="BeginStoryboardCheckedFalse" />
|
|
</Trigger.EnterActions>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="False">
|
|
<Setter TargetName="ForegroundPanel" Property="Background" Value="{StaticResource LightGrayBrush}" />
|
|
<Trigger.EnterActions>
|
|
<BeginStoryboard x:Name="BeginStoryboardCheckedFalse"
|
|
Storyboard="{StaticResource StoryboardIsCheckedOff}" />
|
|
<RemoveStoryboard BeginStoryboardName="BeginStoryboardCheckedTrue" />
|
|
</Trigger.EnterActions>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="SliderCheckBox_Square" TargetType="{x:Type CheckBox}">
|
|
<Setter Property="MaxHeight" Value="20" />
|
|
<Setter Property="MaxWidth" Value="35" />
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type CheckBox}">
|
|
<ControlTemplate.Resources>
|
|
<Storyboard x:Key="StoryboardIsChecked">
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)"
|
|
Storyboard.TargetName="CheckFlag">
|
|
<EasingDoubleKeyFrame KeyTime="0" Value="0" />
|
|
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="14" />
|
|
</DoubleAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
<Storyboard x:Key="StoryboardIsCheckedOff">
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)"
|
|
Storyboard.TargetName="CheckFlag">
|
|
<EasingDoubleKeyFrame KeyTime="0" Value="14" />
|
|
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0" />
|
|
</DoubleAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</ControlTemplate.Resources>
|
|
<BulletDecorator Background="Transparent" SnapsToDevicePixels="true">
|
|
<BulletDecorator.Bullet>
|
|
<Border x:Name="ForegroundPanel" BorderThickness="1"
|
|
Width="35" Height="20" CornerRadius="3">
|
|
<Canvas>
|
|
<!--원 색상-->
|
|
<Border x:Name="CheckFlag" Background="White"
|
|
Width="19" Height="18" CornerRadius="3"
|
|
VerticalAlignment="Center" BorderThickness="1" RenderTransformOrigin="0.5,0.5">
|
|
<Border.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform />
|
|
<SkewTransform />
|
|
<RotateTransform />
|
|
<TranslateTransform />
|
|
</TransformGroup>
|
|
</Border.RenderTransform>
|
|
<Border.Effect>
|
|
<DropShadowEffect ShadowDepth="1" Direction="180" />
|
|
</Border.Effect>
|
|
</Border>
|
|
</Canvas>
|
|
</Border>
|
|
</BulletDecorator.Bullet>
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
Margin="{TemplateBinding Padding}"
|
|
RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
VerticalAlignment="Center" />
|
|
</BulletDecorator>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="HasContent" Value="true">
|
|
<!--<Setter Property="FocusVisualStyle"
|
|
Value="{StaticResource CheckRadioFocusVisual}"/>-->
|
|
<Setter Property="Padding" Value="4,0,0,0" />
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter TargetName="ForegroundPanel" Property="Background" Value="{StaticResource GreenBrush}" />
|
|
<Trigger.EnterActions>
|
|
<BeginStoryboard x:Name="BeginStoryboardCheckedTrue"
|
|
Storyboard="{StaticResource StoryboardIsChecked}" />
|
|
<RemoveStoryboard BeginStoryboardName="BeginStoryboardCheckedFalse" />
|
|
</Trigger.EnterActions>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="False">
|
|
<Setter TargetName="ForegroundPanel" Property="Background"
|
|
Value="{StaticResource LightGrayBrush}" />
|
|
<Trigger.EnterActions>
|
|
<BeginStoryboard x:Name="BeginStoryboardCheckedFalse"
|
|
Storyboard="{StaticResource StoryboardIsCheckedOff}" />
|
|
<RemoveStoryboard BeginStoryboardName="BeginStoryboardCheckedTrue" />
|
|
</Trigger.EnterActions>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="CheckRadioFocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle Margin="14,0,0,0"
|
|
SnapsToDevicePixels="true"
|
|
Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
|
|
StrokeThickness="1"
|
|
StrokeDashArray="1 2" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</UserControl.Resources>
|
|
<b:Interaction.Triggers>
|
|
<b:EventTrigger EventName="Loaded">
|
|
<b:InvokeCommandAction Command="{Binding CMD_ViewLoaded}" />
|
|
</b:EventTrigger>
|
|
<b:EventTrigger EventName="Unloaded">
|
|
<b:InvokeCommandAction Command="{Binding CMD_ViewUnloaded}" />
|
|
</b:EventTrigger>
|
|
</b:Interaction.Triggers>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="470" />
|
|
<ColumnDefinition Width="1*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!--1열-->
|
|
<Grid Column="0">
|
|
<StackPanel Margin="5">
|
|
<GroupBox Header="Version Check" HorizontalAlignment="Left" VerticalAlignment="Top" Width="447">
|
|
<StackPanel Margin="5">
|
|
<StackPanel Margin="2" Orientation="Horizontal">
|
|
<TextBlock Text="HW Ver." Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Text="{Binding HW_Ver}" IsReadOnly="True" Width="240" />
|
|
</StackPanel>
|
|
<StackPanel Margin="2" Orientation="Horizontal">
|
|
<TextBlock Text="SW Ver." Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Text="{Binding SW_Ver}" IsReadOnly="True" Width="240" />
|
|
</StackPanel>
|
|
<StackPanel Margin="2" Orientation="Horizontal">
|
|
<TextBlock Text="DLL Ver." Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Text="{Binding DLL_Ver}" IsReadOnly="True" Width="240" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<GroupBox Header="Trigger Mode Select" HorizontalAlignment="Left" VerticalAlignment="Top" Width="447">
|
|
<StackPanel Margin="5">
|
|
<StackPanel Margin="0, 5, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Teaching Mode" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<RadioButton Content="Normal" Command="{Binding CMD_CheckTeachingMode}"
|
|
CommandParameter="Normal" Margin="10, 0, 0, 0" Width="127" />
|
|
<RadioButton Content="Teaching" Command="{Binding CMD_CheckTeachingMode}" CommandParameter="Teaching"
|
|
Margin="10, 0, 0, 0" Width="127" />
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Param Scroll" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<ScrollBar Name="scrollbar" Orientation="Horizontal"
|
|
Maximum="255" LargeChange="10" SmallChange="1" Width="253" />
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Table Setting" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<!--ComboBox SelectedIndex="{Binding TableSettingIndex}"
|
|
Width="253">
|
|
<ComboBoxItem IsSelected="True">Pos - Enc 1:1 Match</ComboBoxItem>
|
|
<ComboBoxItem>CustomTable</ComboBoxItem>
|
|
</ComboBox-->
|
|
<ComboBox ItemsSource="{Binding EncPosMaps}" SelectedItem="{Binding TableSettingIndex}" Width="253"/>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Encoder Input by" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<!--ComboBox SelectedIndex="{Binding EncoderInputByIndex}"
|
|
Width="253">
|
|
<ComboBoxItem IsSelected="True">Manual ( ENC Connector )</ComboBoxItem>
|
|
<ComboBoxItem>Auto Increase ( 10 Mhz )</ComboBoxItem>
|
|
</ComboBox-->
|
|
<ComboBox ItemsSource="{Binding EncModes}" SelectedItem="{Binding EncoderInputByIndex}" Width="253"/>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Encoder Direction" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<!--ComboBox SelectedIndex="{Binding EncoderDirectionIndex}"
|
|
Width="253">
|
|
<ComboBoxItem IsSelected="True">Normal</ComboBoxItem>
|
|
<ComboBoxItem>Reverse</ComboBoxItem>
|
|
</ComboBox-->
|
|
<ComboBox ItemsSource="{Binding EncDirections}" SelectedItem="{Binding EncoderDirectionIndex}" Width="253"/>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Trigger Generate Mode" Width="160"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<!--ComboBox SelectedIndex="{Binding GeneratorModeIndex}"
|
|
Width="253">
|
|
<ComboBoxItem>SEQ_GENMODE</ComboBoxItem>
|
|
<ComboBoxItem>DIRECT_GENMODE</ComboBoxItem>
|
|
<ComboBoxItem>NOTUSE_GENMODE</ComboBoxItem>
|
|
<ComboBoxItem IsSelected="True">TIMER_GENMODE</ComboBoxItem>
|
|
<ComboBoxItem>EXTINPUT_GENMODE</ComboBoxItem>
|
|
</ComboBox-->
|
|
<ComboBox ItemsSource="{Binding TrigGenModes}" SelectedItem="{Binding GeneratorModeIndex}" Width="253"/>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Trigger Limst Set" Width="160"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Text="{Binding TrigLimit_Set}" Width="253" />
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Seq Start" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Text="{Binding Seq_StartEnc}" Width="253" />
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Seq Interval" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Text="{Binding Seq_IntervalEnc}" Width="253" />
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Seq Iteration" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Text="{Binding Seq_IterationCnt}" Width="253" />
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Timer Set" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Text="{Binding Timer_Set}" Width="253" />
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Channel Output Mode" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<!--ComboBox SelectedIndex="{Binding ChOutputModeIndex}"
|
|
Width="253">
|
|
<ComboBoxItem>SEQBY1TIRG_OUTMODE</ComboBoxItem>
|
|
<ComboBoxItem>DIRECTMASK_OUTMODE</ComboBoxItem>
|
|
<ComboBoxItem>SEQMASK_OUTMODE</ComboBoxItem>
|
|
<ComboBoxItem IsSelected="True">SIMPLE_OUTMODE</ComboBoxItem>
|
|
</ComboBox-->
|
|
<ComboBox ItemsSource="{Binding TrigChOutModes}" SelectedItem="{Binding ChOutputModeIndex}" Width="253"/>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<Button Margin="3, 0, 0, 0" Name="btnSettingSave" Width="130"
|
|
Command="{Binding CMD_Setting}">Setting</Button>
|
|
<Button Margin="6, 0, 0, 0" Name="btnTriggerStop" Width="130"
|
|
Command="{Binding CMD_TriggerStop}">Trigger Stop</Button>
|
|
<Button Margin="6, 0, 0, 0" Name="btnTriggerStart" Width="130"
|
|
Command="{Binding CMD_TriggerStart}">Trigger Start</Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<!--2열-->
|
|
<Grid Column="1">
|
|
<StackPanel Margin="5">
|
|
<GroupBox Header="Channel Output Parameter Setting (Unit : 1 us, Decimal)"
|
|
HorizontalAlignment="Left" VerticalAlignment="Top" Width="490">
|
|
<StackPanel Margin="5">
|
|
<StackPanel Height="25" Orientation="Horizontal">
|
|
<TextBlock Margin="45, 10, 0, 0" Text="Ch" Width="40" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBlock Margin="123, 10, 0, 0" Text="Width" Width="40"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBlock Margin="41, 10, 0, 0" Text="Delay" Width="40"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBlock Margin="43, 10, 0, 0" Text="Set" Width="40"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Ch1" Margin="25, 0, 0, 0" Width="30"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<CheckBox IsChecked="{Binding CheckedChannel[0]}" VerticalAlignment="Center" Style="{StaticResource SliderCheckBox}" />
|
|
<TextBox Text="{Binding WidthChannel[0]}" Margin="100, 0, 0, 0" Width="74" />
|
|
<TextBox Text="{Binding DelayChannel[0]}" Margin="7, 0, 0, 0" Width="74" />
|
|
<Button Margin="7,0,0,0" Name="Ch1Set" Width="60"
|
|
Command="{Binding CMD_SetStrobe}" CommandParameter="Ch1">Set</Button>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Ch2" Margin="25, 0, 0, 0" Width="30"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<CheckBox IsChecked="{Binding CheckedChannel[1]}" VerticalAlignment="Center" Style="{StaticResource SliderCheckBox}" />
|
|
<TextBox Text="{Binding WidthChannel[1]}" Margin="100, 0, 0, 0" Width="74" />
|
|
<TextBox Text="{Binding DelayChannel[1]}" Margin="7, 0, 0, 0" Width="74" />
|
|
<Button Margin="7,0,0,0" Name="Ch2Set" Width="60"
|
|
Command="{Binding CMD_SetStrobe}" CommandParameter="Ch2" >Set</Button>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Ch3" Margin="25, 0, 0, 0" Width="30"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<CheckBox IsChecked="{Binding CheckedChannel[2]}" VerticalAlignment="Center" Style="{StaticResource SliderCheckBox}" />
|
|
<TextBox Text="{Binding WidthChannel[2]}" Margin="100, 0, 0, 0" Width="74" />
|
|
<TextBox Text="{Binding DelayChannel[2]}" Margin="7, 0, 0, 0" Width="74" />
|
|
<Button Margin="7,0,0,0" Name="Ch3Set" Width="60"
|
|
Command="{Binding CMD_SetStrobe}" CommandParameter="Ch3" >Set</Button>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Ch4" Margin="25, 0, 0, 0" Width="30"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<CheckBox IsChecked="{Binding CheckedChannel[3]}" VerticalAlignment="Center" Style="{StaticResource SliderCheckBox}" />
|
|
<TextBox Text="{Binding WidthChannel[3]}" Margin="100, 0, 0, 0" Width="74" />
|
|
<TextBox Text="{Binding DelayChannel[3]}" Margin="7, 0, 0, 0" Width="74" />
|
|
<Button Margin="7,0,0,0" Name="Ch4Set" Width="60"
|
|
Command="{Binding CMD_SetStrobe}" CommandParameter="Ch4">Set</Button>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Ch5" Margin="25, 0, 0, 0" Width="30"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<CheckBox IsChecked="{Binding CheckedChannel[4]}" VerticalAlignment="Center" Style="{StaticResource SliderCheckBox}" />
|
|
<TextBox Text="{Binding WidthChannel[4]}" Margin="100, 0, 0, 0" Width="74" />
|
|
<TextBox Text="{Binding DelayChannel[4]}" Margin="7, 0, 0, 0" Width="74" />
|
|
<Button Margin="7,0,0,0" Name="Ch5Set" Width="60"
|
|
Command="{Binding CMD_SetStrobe}" CommandParameter="Ch5">Set</Button>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Ch6" Margin="25, 0, 0, 0" Width="30"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<CheckBox IsChecked="{Binding CheckedChannel[5]}" VerticalAlignment="Center" Style="{StaticResource SliderCheckBox}" />
|
|
<TextBox Text="{Binding WidthChannel[5]}" Margin="100, 0, 0, 0" Width="74" />
|
|
<TextBox Text="{Binding DelayChannel[5]}" Margin="7, 0, 0, 0" Width="74" />
|
|
<Button Margin="7,0,0,0" Name="Ch6Set" Width="60"
|
|
Command="{Binding CMD_SetStrobe}" CommandParameter="Ch6">Set</Button>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Ch7" Margin="25, 0, 0, 0" Width="30"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<CheckBox IsChecked="{Binding CheckedChannel[6]}" VerticalAlignment="Center" Style="{StaticResource SliderCheckBox}" />
|
|
<TextBox Text="{Binding WidthChannel[6]}" Margin="100, 0, 0, 0" Width="74" />
|
|
<TextBox Text="{Binding DelayChannel[6]}" Margin="7, 0, 0, 0" Width="74" />
|
|
<Button Margin="7,0,0,0" Name="Ch7Set" Width="60"
|
|
Command="{Binding CMD_SetStrobe}" CommandParameter="Ch7">Set</Button>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Ch8" Margin="25, 0, 0, 0" Width="30"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<CheckBox IsChecked="{Binding CheckedChannel[7]}" VerticalAlignment="Center" Style="{StaticResource SliderCheckBox}" />
|
|
<TextBox Text="{Binding WidthChannel[7]}" Margin="100, 0, 0, 0" Width="74" />
|
|
<TextBox Text="{Binding DelayChannel[7]}" Margin="7, 0, 0, 0" Width="74" />
|
|
<Button Margin="7,0,0,0" Name="Ch8Set" Width="60"
|
|
Command="{Binding CMD_SetStrobe}" CommandParameter="Ch8">Set</Button>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<Button Margin="7,0,0,0" Name="AllSet" Width="200" Command="{Binding CMD_SetStrobe}" CommandParameter="All">Set All</Button>
|
|
<Button Margin="7,0,0,0" Name="AllGet" Width="200" Command="{Binding CMD_GetAllParameter}" CommandParameter="All">Get All Parameter</Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<GroupBox Header="Encoder Counter Test" HorizontalAlignment="Left" VerticalAlignment="Top" Width="490">
|
|
<StackPanel Margin="5">
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Encoder Trigger Count" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<Button Margin="30,0,0,0" Name="EncoderGet" Width="108" Command="{Binding CMD_GetEncoderCnt}">Get</Button>
|
|
<Button Margin="6,0,0,0" Name="CounterClear" Width="108" Command="{Binding CMD_ResetEncoderCount}">Counter Clear</Button>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBox Text="{Binding EncoderTriggerCount}" Width="156" />
|
|
<Button Margin="30,0,0,0" Name="EncoderSet" Width="108" Command="{Binding CMD_SetEncoderCount}">Set</Button>
|
|
<Button Margin="6,0,0,0" Name="ResetSystem" Width="108" Command="{Binding CMD_ResetSystem}">Reset System </Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<GroupBox Header="Trigger Counter Test" HorizontalAlignment="Left" VerticalAlignment="Top" Width="490">
|
|
<Grid Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="1*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
<ColumnDefinition Width="1*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Margin="0, 10, 0, 0" Text="Trigger Count" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Grid.Row="0" Grid.Column="1" Margin="2, 10, 2, 2" Text="{Binding TriggerCount}"/>
|
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="Error Count" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding ErrorCount}"/>
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="Max Frequency" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding MaxFrequency}"/>
|
|
|
|
<Button Grid.Row="0" Grid.Column="2" Grid.RowSpan="3" Margin="10,10,0,0" Command="{Binding CMD_GetTriggetCountErrorCountMaxFrequency}">Get</Button>
|
|
<Button Grid.Row="0" Grid.Column="3" Margin="6,10,0,0" Command="{Binding CMD_ResetTriggerCount}">Counter Clear</Button>
|
|
</Grid>
|
|
<!--
|
|
<StackPanel Margin="5">
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBlock Text="Trigger Count" Width="160" HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
<Button Margin="30,0,0,0" Name="TriggerGet" Width="108" Command="{Binding CMD_GetTriggerCnt}">Get</Button>
|
|
<Button Margin="6,0,0,0" Name="TriggerCounterClear" Width="108" Command="{Binding CMD_ResetTriggerCount}">Counter Clear</Button>
|
|
</StackPanel>
|
|
<StackPanel Margin="0, 10, 0, 0" Orientation="Horizontal">
|
|
<TextBox Text="{Binding TriggerCount}" Width="156" />
|
|
<Button Margin="30,0,0,0" Name="TriggerSet" Width="108" Command="{Binding CMD_SetTriggerCount}">Set</Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
-->
|
|
</GroupBox>
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|