W5K_Pulse_SetOutputCounts

 

This function code is used to set the contiguous pulse channel's output count.

 

C/C++

int W5K_Pulse_SetOutputCounts( int hConnection,

BYTE bytStartChannel,

BYTE bytCount,

DWORD dwOutputCounts[ ]);

 

Visual Basic

Declare Function W5K_Pulse_SetOutputCounts Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, nOutputCounts As Long) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytStartChannel

Specifies the starting channel.

bytCount

The number of channels to be set.

dwOutputCounts

An array that stores the contiguous pulse channel's output count, dwOutputCounts[0] represents the pulse output count of the starting channel.

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.