Provides access to Qwerk's analog inputs.

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

Sample usage:

// get Qwerk's analog inputs service Qwerk.AnalogIn analogIns = qwerk.GetAnalogInService( ); // get state of 0th input short input0 = analogIns.GetInput( 0 ); // get state of all inputs short[] inputs = analogIns.GetInputs( );
Esempio n. 1
0
 /// <summary>
 /// Get Qwerk's analog inputs service.
 /// </summary>
 ///
 /// <returns>Returns Qwerk's analog inputs service.</returns>
 ///
 /// <remarks>For the list of possible exceptions, see documentation to
 /// <see cref="Qwerk.AnalogIn(Qwerk)"/>.</remarks>
 ///
 public Qwerk.AnalogIn GetAnalogInService( )
 {
     if (analogIns == null)
     {
         analogIns = new AnalogIn(this);
     }
     return(analogIns);
 }
Esempio n. 2
0
 /// <summary>
 /// Get Qwerk's analog inputs service.
 /// </summary>
 /// 
 /// <returns>Returns Qwerk's analog inputs service.</returns>
 /// 
 /// <remarks>For the list of possible exceptions, see documentation to
 /// <see cref="Qwerk.AnalogIn(Qwerk)"/>.</remarks>
 /// 
 public Qwerk.AnalogIn GetAnalogInService( )
 {
     if ( analogIns == null )
     {
         analogIns = new AnalogIn( this );
     }
     return analogIns;
 }