Cyclone Automated Control Package
14
3.3 Initialization
U
Loading the DLL (C/C++ Projects only)
Before calling any routines from the DLL, the DLL must be loaded into
memory. To do this, the following function has been provided in the included
header files. Refer to Chapter 4 of this manual for a detailed description of this
function.
load_dll( )
For Delphi (Pascal) and C# users, this process is transparent for the user and no
action is required.
U
Enumerate all ports
After loading the DLL, a call to the following function is required in order to
properly initialize all devices. This function should only be called once, typically at
the beginning of the application.
enumerate_all_ports( )
U
Connect to the P&E hardware interface
The next step is to establish communications with the P&E Cyclone unit.
This is accomplished with the following function call:
connect_to_cyclonepromax( )
Refer to Chapter 4 of this manual for a detailed description of this function.
This call returns the handle to the Cyclone unit which is used in all other routines
in the DLL to identify the Cyclone. Note that the special case of a return value of
0 indicates an error contacting the Cyclone. This function will be called once for
each Cyclone.