コード例 #1
0
 /**
  * <summary>
  *   Sets the relay to output B (active) for a specified duration, then brings it
  *   automatically back to output A (idle state).
  * <para>
  * </para>
  * <para>
  * </para>
  * </summary>
  * <param name="ms_duration">
  *   pulse duration, in milliseconds
  * </param>
  * <para>
  * </para>
  * <returns>
  *   <c>0</c> if the call succeeds.
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public int pulse(int ms_duration)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Relay connected");
     }
     return(_func.pulse(ms_duration));
 }