TaskExecute


Function

 

Performs the specified task.

 

Format

 

ret = dncDaq01.TaskExecute(TaskType, TaskNo)

 

Parameters

 

TaskType [ C#: enum DaqTaskType] [ VB.NET: Enum DaqTaskType]
Specifies the task type.

Value

Enumeration member

Description

0

Timing

Timing

1

InputTask

Input task

2

OutputTask

Output task

 

TaskNo [ C#: int ] [ VB.NET: Integer ]

Specifies the task No..

 

Return value

 

Ret [ C#: int ] [ VB.NET: Integer ]

 

â– Common

Value

Description

0

Normality completion

500001

The method on an unconfigured device has been called. Check the device settings.

500002

The method was called that the device does not support.

510001

The input parameter is invalid. Check the parameter contents.

Other errors (see: Error code details)

 

Remarks

 

Specifies the task to be executed by the combination of task type and task No..

 

Example

 

Executes timing task No. 0.

C#

int Ret;

Ret = dncDaq01.TaskExecute(dncDaq01.DaqTaskType.Timing, 0);

 

VB.NET

Dim Ret As Integer

Ret = dncDaq01.TaskExecute(dncDaq01.DaqTaskType.Timing, 0)