xPCI-3009 API
|
Functions | |
_INT_ | i_PCI3009_InitFrequencyMeasurement (DWORD_ dw_BoardHandle, BYTE_ b_TimingUnity, DWORD_ dw_TimingInterval, PDWORD_ pdw_RealTimingInterval) |
_INT_ | i_PCI3009_EnableFrequencyMeasurement (DWORD_ dw_BoardHandle, BYTE_ b_InterruptEnable) |
_INT_ | i_PCI3009_ReadFrequencyMeasurement (DWORD_ dw_BoardHandle, PBYTE_ pb_Status, PBYTE_ pb_UDStatus, PDWORD_ pdw_ReadValue) |
_INT_ | i_PCI3009_DisableFrequencyMeasurement (DWORD_ dw_BoardHandle) |
_INT_ i_PCI3009_InitFrequencyMeasurement | ( | DWORD_ | dw_BoardHandle, |
BYTE_ | b_TimingUnity, | ||
DWORD_ | dw_TimingInterval, | ||
PDWORD_ | pdw_RealTimingInterval | ||
) |
Sets the time for the frequency measurement.
Configures the selected TOR incremental counter.
The dw_TimingInterval and ul_TimingUnity determine the time base for the measurement.
The pdw_RealTimingInterval returns the real time value. You must call up this function before
you call up any other function which gives access to the frequency measurement.
[in] | dw_BoardHandle | : Handle of board PCI-3009 |
[in] | b_TimingUnity | : Base time unit (0 to 2) 0 : ns 1 : ęs 2 : ms |
[in] | dw_TimingInterval | Base time value. |
[out] | pdw_RealTimingInterval | : Real base time value. |
_INT_ i_PCI3009_EnableFrequencyMeasurement | ( | DWORD_ | dw_BoardHandle, |
BYTE_ | b_InterruptEnable | ||
) |
Enables the frequency measurement function
[in] | dw_BoardHandle | : Handle of board PCI-3009 |
[in] | b_InterruptEnable | : Enable or disable the interrupt. PCI3009_ENABLE : Enable the interrupt PCI3009_DISABLE: Disable the interrupt |
_INT_ i_PCI3009_ReadFrequencyMeasurement | ( | DWORD_ | dw_BoardHandle, |
PBYTE_ | pb_Status, | ||
PBYTE_ | pb_UDStatus, | ||
PDWORD_ | pdw_ReadValue | ||
) |
Returns the status (pb_Status) and the number of increments in the set time.
See function "i_PCI3009_InitFrequencyMeasurement"
[in] | dw_BoardHandle | : Handle of board PCI-3009 |
[out] | pb_Status | : Returns the frequency measurement status 0 : Counting cycle not started. 1 : Counting cycle started. 2 : Counting cycle stopped. The measurement cycle is completed. |
[out] | pb_UDStatus | : 0 : Counter progress in the selected mode down 1 : Counter progress in the selected mode up |
[out] | pdw_ReadValue | : Return the number of increments in the defined time base. |
_INT_ i_PCI3009_DisableFrequencyMeasurement | ( | DWORD_ | dw_BoardHandle | ) |
Disables the frequency measurement function
[in] | dw_BoardHandle | : Handle of board PCI-3009 |