ICP DAS USA I-7188XB Series User Manual page 120

Hide thumbs Also See for I-7188XB Series:
Table of Contents

Advertisement

break;
case '4':
Delay_2(1000); /*delay unit is 0.01 ms, uses the Timer 1
break;
case 'q':
quit=1;
break;
}
}
time=TimerReadValue(); /*reads the timer*/
Print("\r\nTime=%8.3f sec", 0.001*time);
}
TimerClose(); /*closes the timer function*/
}
TimerClose()
Function:
Stops the timer function.
Syntax:
int TimerClose(void);
Header:
#include "7188xb.h"
Description: If the program has called the OpenTimer() function, it
must call TimerClose() before exiting.
Return Value: Always returns NoError.
Example:
Please refer to "TimerOpen()" function for more detailed
information.
TimerResetValue()
Function:
Resets the timer to 0.
Syntax:
void TimerResetValue(void);
Header:
#include "7188xb.h"
Description: Resets the main time ticks to 0.
Example:
Please refer to "TimerOpen()" function for more detailed
information.
TimerReadValue()
Function:
Reads the main time ticks.
Syntax:
unsigned long TimerReadValue(void);
Header:
#include "7188xb.h"
Description: Reads the main time ticks. The time unit is ms. When
I-7188XB Series User's Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 120
of the CPU.*/
feature of the CPU .*/

Advertisement

Table of Contents
loading

Table of Contents