增加CAN读取逆变器的选项
修改波特率的下拉框选择
This commit is contained in:
@@ -55,6 +55,18 @@ namespace CapMachine.Wpf.ViewModels
|
||||
//MachineDataService = machineDataService;
|
||||
DialogService = dialogService;
|
||||
|
||||
//数据波特率
|
||||
DataBaudRateCbxItems = new ObservableCollection<CbxItems>()
|
||||
{
|
||||
new CbxItems(){ Key="38400",Text="38400"},
|
||||
new CbxItems(){ Key="19200",Text="19200"},
|
||||
new CbxItems(){ Key="14400",Text="14400"},
|
||||
new CbxItems(){ Key="9600",Text="9600"},
|
||||
new CbxItems(){ Key="4800",Text="4800"},
|
||||
new CbxItems(){ Key="2400",Text="2400"},
|
||||
};
|
||||
|
||||
|
||||
WriteNameCbxItems = new ObservableCollection<CbxItems>()
|
||||
{
|
||||
new CbxItems(){ Key="转速",Text="转速"},
|
||||
@@ -70,6 +82,7 @@ namespace CapMachine.Wpf.ViewModels
|
||||
new CbxItems(){ Key="通讯母线电流",Text="通讯母线电流"},
|
||||
new CbxItems(){ Key="通讯相电流",Text="通讯相电流"},
|
||||
new CbxItems(){ Key="通讯功率",Text="通讯功率"},
|
||||
new CbxItems(){ Key="通讯逆变器温度",Text="通讯逆变器温度"},
|
||||
new CbxItems(){ Key="通讯芯片温度",Text="通讯芯片温度"},
|
||||
};
|
||||
InitLoadLinConfigPro();
|
||||
@@ -771,6 +784,18 @@ namespace CapMachine.Wpf.ViewModels
|
||||
|
||||
#region LIN操作
|
||||
|
||||
|
||||
private ObservableCollection<CbxItems> _DataBaudRateCbxItems;
|
||||
/// <summary>
|
||||
/// CAN 数据波特率
|
||||
/// </summary>
|
||||
public ObservableCollection<CbxItems> DataBaudRateCbxItems
|
||||
{
|
||||
get { return _DataBaudRateCbxItems; }
|
||||
set { _DataBaudRateCbxItems = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
|
||||
private LINConfigExdDto _SelectedLINConfigExdDto;
|
||||
/// <summary>
|
||||
/// 选中的LIN操作
|
||||
|
||||
Reference in New Issue
Block a user