16-ch Counter/Frequency Board
with 32-ch Programmable DIO
User Manual, Ver. 1.2, Apr. 2017, PMH-030-12 Page 45
PCIFC16_ReadFrequency
This function could read frequency from signal.
Syntax:
WORD
PCIFC16_ReadFrequency
(WORD
wBoardNO
,
WORD
wChannel
,
WORD
*fValue
,
DWORD
dwTimeOutMs
,
WORD
*wStatus
);
Parameters:
wBoardNo
[Input]
The Board number for PCI-FC16U board. (Start from 0)
wChannel
[Input]
User set the channel number of Counter/Frequency, while wChannel is 0 that is first
channel, and wChannel is 1 that is second channel. And so on.
*fValue
[Output]
Get the read Frequency data.
dwTimeOutMs
[Input]
Set the timeout for Counter/Frequency. The default settings is 1 ms.
The unit is ms.
wStatus
[Output]
Get the Counter/Frequency status.
Status
wStatus
Ready
0
Timeout
1
Launch
2
Returns:
Refer to
Section 7.1 “Error Code Table”
.