DAC2_AutoInit


Initialize and reset the DAC-2 controller.

BOOL WINAPI DAC2_AutoInit(

    BOOL bEmulate
);

Parameters

bEmulate

Enable the DAC-2 emulator instead of the actual DAC-2 Controller

Return value
If successful, TRUE is returned, else FALSE is returned. Use DAC2_ErrorGetCode to get the error code.

Remarks
You can choose to use the emulator if you wish by passing in TRUE to the emulate parameter. If bEmulate is FALSE then this function will scan through all the available com ports and search for the DAC-2. If it finds it then it opens the com port, initializes settings, and resets the display.

Example
Initialize the DAC-2 library

//Initialize the real DAC-2 controller

DAC2_AutoInit();

//Initialize the DAC-2 emulator

DAC2_AutoInit(TRUE);