I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
122
of the CPU.*/
break;
case '4':
Delay_2(1000); /*delay unit is 0.01 ms, uses the Timer 1
feature of the CPU .*/
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 ”7188xa.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 ”7188xa.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 ”7188xa.h”
Description: Reads the main time ticks. The time unit is ms. When
Summary of Contents for I-7188XA
Page 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Page 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Page 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Page 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Page 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Page 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Page 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Page 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...