Download Server/Loader User Manual

Transcript
The semaphore will only be flagged when the Server/Loader is called with the “-s”
option or when the Server-only function (hesl class’s ‘server’ function) is called, and
the loading and serve setup phase have proceeded successfully.
Parameters: s is the semaphore that you want to be flagged.
Include: #include “hesl.h”
Return value: none.
int hesl::GetBoardCount(void);
GetBoardCount is an ‘information’ function. After a function such as ‘loader’,
‘heartconf’, ‘serverloader’, or ‘parse_network_file’ has been executed,
you can use this function to extract certain information from the network file.
GetBoardCount returns the number of boards defined in a network file. Every
“BD” definition represents one board.
Example
BD API hep9a 0 0
BD API hep9a 1 0
With the above network file definitions, GetBoardCount() will return 2.
Include: #include “hesl.h”
Return value: the number of boards (“BD …” entries) in a network file.
int hesl::GetBoardFifo(
int bdid,
int *fifo
);
GetBoardFifo is an ‘information’ function. After a function such as ‘loader’,
‘heartconf’, ‘serverloader’, or ‘parse_network_file’ has been executed,
you can use this function to extract certain information from the network file.
GetBoardFifo will set the ‘fifo’ parameter to the fifo used in a “BD API”
board definition in the network file.
Parameters: The board is identified with a board id (‘bdid’). In your network file,
the very first “BD” declaration will define a board with id 0, the second “BD”
declaration will define a board with id 1, and so on. Don’t confuse the board id with
the red board switch!
Use ‘GetBoardCount’ to find the number of boards in a network file.
Example
BD API hep9a 0 3
BD API hep9a 2 5
With the above network file definitions, GetBoardFifo(0,&f) will return 0,
and ‘f’ will be set to 3 (fifo D). GetBoardFifo(1,&f) will return 0, and ‘f’ will
be set to 5 (fifo F). GetBoardFifo(2,&f) will return an error, because there’s no
board with id 2 (i.e. there’s no third “BD” definition).
Include: #include “hesl.h”
67
HUNT ENGINEERING Server/Loader USER MANUAL