Pulse2K_SetSignalWidths

 

This function code is used to set the contiguous pulse channel's Hi/Lo signal width.

 

C/C++

int Pulse2K_SetSignalWidths( int hConnection,

BYTE bytStartChannel,

BYTE bytCount,

WORD wHiWidth[ ],

WORD wLoWidth[ ]);

 

Visual Basic

Declare Function Pulse2K_SetSignalWidths Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, iHiWidth As Integer, iLoWidth As Integer) 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.

wHiWidth

An array that stores the contiguous pulse channel's Hi signal width, dwHiWidth[0] represents the Hi signal width of the starting channel.

wLoWidth

An array that stores the contiguous pulse channel's Lo signal width, dwLoWidth[0] represents the Lo signal width of the starting channel.

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.