
Application Note (AN312)
eCARD-FRM11 board API Programming
2005 DAQ system, all rights reserved.
http://www.daqsystem.com
Overview
Board Level APIs
int OpenDAQDevice(void)
BOOL ResetBoard(int nBoard)
BOOL CloseDAQDevice(void)
int GetBoardNum(void)
OpenDAQDevice
int OpenDAQDevice(void)
Parameters:
None
Return Value:
If the function succeeds, it returns the number of boards which were detected.
If the function fails, the return value is -1, it means there is no device in the system.
ResetBoard
BOOL ResetBoard(int nBoard)
Parameters:
nBoard :
The ordinal number of board which you want to initialize. You can get how may boards are
installed in this system using OpenDAQDevice function.
You may call this function at the very first time you run the program and some suspicious
operation.
Return Value:
It returns TRUE in case of the success of reset and initialization.
If you get FALSE you should not call any API functions with the board and call the
CloseDAQDevice() instead.
CloseDAQDevice
BOOL CloseDAQDevice(void)
The CloseDAQDevice function closes all opened devices(boards).
Parameters:
None
Komentarze do niniejszej Instrukcji