|
楼主 |
发表于 2023-5-22 09:39
|
显示全部楼层
Hi 版主您好, 我是想要做一个简单的筛选加套用工具,将如下EXCEL中的CDD Name一列和元素一列中的内容嵌入到一个统一的格式里面(麻烦您看一下可以帮忙做一下么):CDD Name | 元素 | Cell Voltages | Maximum Cell Voltage | Minimum Cell Voltage | Average Cellvoltage | Invalid Cell Voltages Number | Cell Voltages 0V Number | Single Cell Voltages | Number Of Cells | Cell Voltage Iterator
(1byte PackNumber + 1byte CellNumber + 2byte CellVoltage) | Power Values | voltage at continous power charge | voltage at continous power discharge | current at continous power charge | current at continous power discharge | Public Function f_Cell_Voltage_Read(ByRef dictReturn As Dictionary(Of String, String)) As Boolean
Dim strParams As String
Dim strOutput As String = "Maximum_Cell_Voltage|" +
"Minimum_Cell_Voltage|" +
"Average_Cellvoltage|" +
"Invalid_Cell_Voltages_Number|" +
"Cell_Voltages_0V_Number"
strParams = strOutput
ActivateSecureDiagSession(CEBAS.UserRole.DevelopmentEnhanced)
f_Cell_Voltage_Read = DG.SendService(DiagName, "Cell_Voltages_Read",,strOutput)
dictReturn = f_CreateReturnParamDict(strParams, strOutput)
End Function
Public Function f_Single_Cell_Voltage_Read(ByRef dictReturn As Dictionary(Of String, String)) As Boolean
Dim strParams As String
Dim strOutput As String = "Number_Of_Cells|" +
"Cell Voltage Iterator
(1byte PackNumber + 1byte CellNumber + 2byte CellVoltage)|"
strParams = strOutput
ActivateSecureDiagSession(CEBAS.UserRole.DevelopmentEnhanced)
f_Single_Cell_Voltage_Read = DG.SendService(DiagName, "Single_Cell_Voltages_Read",,strOutput)
dictReturn = f_CreateReturnParamDict(strParams, strOutput)
End Function
|
|