public void AddTrip(int index, UlTripState trip) { if (Type == EAxtDio.DO) { throw new AxtException("Occurred adding trip exception to DO in AxtDio"); } CheckRange(index); trips.Add(index, trip); }
public void AddTrip(string name, UlTripState trip) { if (Type == EAxtDio.DO) { throw new AxtException("Occurred adding trip exception to DO in AxtDio"); } int index = nowValue.TagIndex(name); CheckRange(index); trips.Add(index, trip); }