Provides access to Qwerk's digital inputs.

The class allows to retrieve state of Qwerk's digital inputs. The total number of available digital inputs equals to DigitalIn.Count.

Sample usage:

// get Qwerk's digital inputs service Qwerk.DigitalIn digitalIns = qwerk.GetDigitalInService( ); // get state of 0th input bool input0 = digitalIns.GetInput( 0 ); // get state of all inputs bool[] inputs = digitalIns.GetInputs( );
Example #1
0
 /// <summary>
 /// Get Qwerk's digital inputs service.
 /// </summary>
 ///
 /// <returns>Returns Qwerk's digital inputs service.</returns>
 ///
 /// <remarks>For the list of possible exceptions, see documentation to
 /// <see cref="Qwerk.DigitalIn(Qwerk)"/>.</remarks>
 ///
 public Qwerk.DigitalIn GetDigitalInService( )
 {
     if (digitalIns == null)
     {
         digitalIns = new DigitalIn(this);
     }
     return(digitalIns);
 }
Example #2
0
 /// <summary>
 /// Get Qwerk's digital inputs service.
 /// </summary>
 /// 
 /// <returns>Returns Qwerk's digital inputs service.</returns>
 /// 
 /// <remarks>For the list of possible exceptions, see documentation to
 /// <see cref="Qwerk.DigitalIn(Qwerk)"/>.</remarks>
 /// 
 public Qwerk.DigitalIn GetDigitalInService( )
 {
     if ( digitalIns == null )
     {
         digitalIns = new DigitalIn( this );
     }
     return digitalIns;
 }