Get Irig-B Board Hardware Id; Open Irig-B Device; Close Irig-B Device; Get Digital Input Signal - Moxa Technologies DA-IRIGB-4DIO-PCI104-EMC4 User Manual

Hide thumbs Also See for DA-IRIGB-4DIO-PCI104-EMC4:
Table of Contents

Advertisement

DA-IRIGB-4DIO-PCI104-EMC4 Module

Get IRIG-B Board Hardware ID

MXIRIG_API BOOL mxIrigbGetHardwareID (HANDLE hDev, PDWORD pdwHwId)
Parameters
in
hDev
out
pdwHwId
Returns
If the operation completes successfully, the return value is nonzero. If the operation fails or is pending, the
return value is zero. To display detailed error information, use GetLastError.

Open IRIG-B Device

MXIRIG_API HANDLE mxIrigbOpen (int index)
Parameters
in
index
Returns
Returns the pointer to the device handle. A return value is of -1 indicates a failure.

Close IRIG-B Device

MXIRIG_API void mxIrigbClose (HANDLE hDev)
Parameters
in
hDev
Returns
None.

Get Digital Input Signal

MXIRIG_API BOOL mxIrigbGetDigitalInputSignal (HANDLE hDev, DWORD dwPort, PDWORD pValue)
Parameters
in
hDev
in
dwPort
out
pValue
The handle for value returned from the mxIrigbOpen function.
The pointer for the hardware ID
The device number (starting from 0).
A valid handle value returned from the mxIrigbOpen function.
A valid handle value returned from the mxIrigbOpen function.
The port number (starting from 0).
The port data (1:HIGH, 0:LOW).
4-2
API Reference

Advertisement

Table of Contents
loading

Table of Contents