beautypg.com

Acrosser AR-B104D User Manual

Page 21

background image

AR-B104D Software Programming Guide

17

2.3.25 SetPGInterruptEnable

Description

Enable the interrupt of the selected output channel (pulse generator).

Syntax

XXX_SetPGInterruptEnable (i16 CardNum, i16 ChannelNum, u8 Enable)

Argument

CardNum: The card number of AR-B104D. Range from 1~4.

ChannelNum: Output channel number. Range from 0~11.

Enable: 0 indicates no interrupt triggers if the preset cycle of the

related pulse generator is finished; 1 indicates interrupt triggers if the

preset cycle of the related pulse generator is finished.

2.3.26 GetPGInterruptEnable

Description

Get the interrupt status of the selected output channel (pulse generator).

Syntax

XXX_GetPGInterruptEnable (i16 CardNum, i16 ChannelNum, u8* Enable)

Argument

CardNum: The card number of AR-B104D. Range from 1~4.

ChannelNum: output channel number. Range from 0~11.

Enable: 0 indicates no interrupt triggers if the preset cycle of the

related pulse generator is finished; 1 indicates interrupt triggers if the

preset cycle of the related pulse generator is finished.

2.3.27 SetPGBase

Description

Set the pulse generator timebase of the selected output channel.

Syntax

XXX_SetPGBase (i16 CardNum, i16 ChannelNum, u8 Base)

Argument

CardNum: The card number of AR-B104D. Range from 1~4.

ChannelNum: Output channel number. Range from 0~11.

Base: The pulse generator timebase of the selected output channel. 0

indicates the base is 1 ms; 1 indicates the base is 100 ms.

2.3.28 GetPGBase