/// <summary> /// Pulses to the specified BSO. /// </summary> /// <param name="bsoId">The BSO identifier.</param> /// <param name="type">The pulse's type.</param> /// <param name="pulseCount">The pulse's count.</param> /// <exception cref="System.ArgumentOutOfRangeException"> /// bsoId - The BSO Identifier must be between 1 and 32 /// or /// pulseCount - The number of pulse must be between 1 and 127 /// </exception> public void Pulse(int bsoId, SetPulseType type, int pulseCount) { if (pulseCount < 1 || pulseCount > 127) { throw new ArgumentOutOfRangeException(nameof(pulseCount), "The number of pulse must be between 1 and 127"); } this.Interface.Set(type == SetPulseType.Up ? SetArgument.PulseUp : SetArgument.PulseDown, bsoId, ((int)pulseCount).ToString()); }
public void Pulse(int bsoId, SetPulseType type, int pulseCount) { PackageHost.WriteInfo("Pulse {0} {1} for {2} impulsion(s)", type.ToString(), bsoId, pulseCount); this.ipx.Pulse(bsoId, type, pulseCount); }