110,534
社区成员
发帖
与我相关
我的任务
分享
int tempLength=10;
float[] speedList = new float[tempLength];
float[] fypList = new float[tempLength];
for (int i = 0; i < tempLength; i++)
{
speedList[i] = float.Parse(vibDateList[i].RPM.ToString());
fypList[i] = float.Parse(vibDateList[i].FONEX.ToString());
}
StringBuilder[] symIDList = new StringBuilder[5];
symIDList.SetValue(new StringBuilder(1024), 0);
symIDList.SetValue(new StringBuilder(1024), 1);
symIDList.SetValue(new StringBuilder(1024), 2);
symIDList.SetValue(new StringBuilder(1024), 3);
symIDList.SetValue(new StringBuilder(1024), 4);
DiagnosisPro(speedList, fypList, 6000F, 50F, ref symIDList);
[DllImport(@"E:\DigsAlgorithm.dll")]
public static extern void DiagnosisPro(float[] speedList, float[] fypList, float StaticSpeed, float StaticFyp, ref StringBuilder[] symIDList);
void _stdcall DiagnosisProc(float speed[AryCount],
float fyb[AryCount], //swing list in time section
float StaticSpeed, //Speed condition
float StaticFyp, string ret[AryCount]);
[DllImport(@"E:\DigsAlgorithm.dll", EntryPoint="NewDiagnosisProc",CallingConvention = CallingConvention.StdCall)]
public static extern void DiagnosisPro(float[] speedList, float[] fypList, float StaticSpeed, float StaticFyp, [In,Out]string[] symIDList);