OnTaskInput


Function

 

Returns input task event information when an input task event occurs.

 

Format

 

dncDaq1_OnTiming( object sender, TaskInputEventArgs e )

 

Parameters

 

sender [ C#: object ] [ VB.NET: object ]

The event source.

 

e [ C#: TaskInputEventArgs  ] [ VB.NET: TaskInputEventArgs ]

Event arguments. Details are shown below.

 

Event argument

 

Arguments

C# Type

VB.NET Type

Description

InputTaskNo

int

Integer

Indicates the input task No. that occurred.

ValueType

int

Integer

Indicates the variable type of Value.

0:Byte

1:Int

2:Float

Value

obeject

Obeject

Indicates the inputted value.

Please cast it to the type indicated by ValueType.

The number of array depends on the number of channels specified in the input task.

* For 0-3ch, the number of elements is 4

 

Usage example: C #

 float value;

 value = ((float[])e.Value)[0];

 

Usage example: VB.NET

 Dim value As float

 value = CType(e.Value, Single())(0)

 

 

Remarks

 

This event is used to acquire input task information when an input task occurs.