An empty integer array.

Namespace:  Quanser.Hardware
Assembly:  Quanser.Hardware.Hil (in Quanser.Hardware.Hil.dll)

Syntax

Visual Basic (Declaration)
Public Shared ReadOnly Property NoIntegerBuffer As Integer()
C#
public static int[] NoIntegerBuffer { get; }
Visual C++
public:
static property array<int>^ NoIntegerBuffer {
	array<int>^ get ();
}
JavaScript
Quanser.Hardware.Hil.get_noIntegerBuffer = function();

Field Value

An empty buffer for encoder counts.

Remarks

This array is useful in Visual Basic for invoking methods like Read(array<Int32>[]()[], array<Int32>[]()[], array<Int32>[]()[], array<Int32>[]()[], array<Double>[]()[], array<Int32>[]()[], array<SByte>[]()[], array<Double>[]()[]) for which some of the integral buffer arrays may be empty.

Examples

This sample illustrates how to use the NoIntegerBuffer member. It reads analog channels 0-3 and digital channels 11-12 in a single Read(array<Int32>[]()[], array<Int32>[]()[], array<Int32>[]()[], array<Int32>[]()[], array<Double>[]()[], array<Int32>[]()[], array<SByte>[]()[], array<Double>[]()[]) call. The encoder channel array and other channel array are set to Hil.NoChannel since these channels are not used. In C# and C++, the nullptr may be used as well. Likewise, the integral encoder buffer is set to NoIntegerBuffer and the real-valued other buffer is set to NoDoubleBuffer.
C# Copy Code
int [] analogChannels  = { 0, 1, 2, 3 };
int [] digitalChannels = { 11, 12 };

double [] analogBuffer  = new double [analogChannels.Length];
sbyte []  digitalBuffer = new sbyte  [digitalChannels.Length];

board.Read(analogChannels, Hil.NoChannels, digitalChannels, Hil.NoChannels,
           analogBuffer, Hil.NoIntegerBuffer, digitalBuffer, Hil.NoDoubleBuffer);
Visual Basic Copy Code
Dim analogChannels() As Integer = {0, 1, 2, 3}
Dim digitalChannels() As Integer = {11, 12}

Dim analogBuffer(analogChannels.Length - 1) As Double
Dim digitalBuffer(digitalChannels.Length - 1) As SByte

board.Read(analogChannels, Hil.NoChannels, digitalChannels, Hil.NoChannels, _
           analogBuffer, Hil.NoIntegerBuffer, digitalBuffer, Hil.NoDoubleBuffer);
Visual C++ Copy Code
array<int>^ analogChannels  = { 0, 1, 2, 3 };
array<int>^ digitalChannels = { 11, 12 };

array<double>^ analogBuffer  = gcnew array<double>(analogChannels->Length);
array<char>^   digitalBuffer = gcnew array<char>(digitalChannels->Length);

board->Read(analogChannels, Hil::NoChannels, digitalChannels, Hil::NoChannels,
           analogBuffer, Hil::NoIntegerBuffer, digitalBuffer, Hil::NoDoubleBuffer);

See Also