OnTaskOutput


Function

 

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

 

Format

 

dncDaq1_OnTiming( object sender, TaskOutputEventArgs e )

 

Parameters

 

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

The event source.

 

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

Event arguments. Details are shown below.

 

Event argument

 

Arguments

C# Type

VB.NET Type

Description

OutputTaskNo

int

integer

Indicates the output task No. that occurred.

ValueType

int

Integer

Indicates the variable type of Value.

0:Byte

1:Int

2:Float

Value

obeject

Obeject

Indicates the output value.

Please cast it to the type indicated by ValueType.

The number of array depends on the number of channels specified in the output 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 output task information when an output task occurs.