Example: Void Main() - Advantech ADAM-5511 Manual

Table of Contents

Advertisement

Start/Stop Counter
Syntax:
int Stop_Start_Counter(int slotno, int channel, StartOrStop)
Description:
Start or stop the specific counter
Parameter
slotno
channel
Start
Stop
Return Value:
None
Example:
void main ()
{
int Start=1, Stop=0;
//Start counter
ids=Start_Stop_Counter(0, 0, 1);
//if the returned value is 0, print out the start fail message
if(ids==0)
Description
The specific slot inserted with
ADAM-5080
0-3 or slot0-slot3
The specific channel in ADAM-5080
0-3
1
0

Advertisement

Table of Contents
loading

Table of Contents