/**Check the cycel name of MeasurementData.*/ //Sometimes we get the datas from file, but the cycles'name are not the same with those we set. public override bool isBoardNameInMeasureCorrect() { int index; if ((measurementDataList == null) || (measurementDataList.Count == 0)) { return(true); } foreach (MeasurementData data in measurementDataList) { foreach (RowData rowData in data.rowDataList) { if (rowData.activity) { index = SessionHardWare.getUserIndex(rowData.Cycle); if (index == -1) { return(false); } } } } return(true); }
public double add(GatePacket gatePacket, int boardIndex) { if (stripSeries == null) { return(0); } if (delay == -1 || delay == 0 || range == -1 || range == 0) { int port; int userIndex = SessionHardWare.getUserIndex(assignName); SessionInfo info = SessionHardWare.getSessionAttr(userIndex); //SessionHardWare.getInfo(assignName, out port); GetGateDAQ.Delay((uint)info.sessionIndex, (uint)info.port, GateType.B, ref delay); GetGateDAQ.Width((uint)info.sessionIndex, (uint)info.port, GateType.B, ref range); } double max = stripSeries.add(gatePacket, boardIndex, delay, range); return(max); }