Init and Exit Processing


Init and exit processing are common processing that are necessary for all programming.
Init processing is performed by function GenOpenApplication.
This function starts the application and allows access.

There are 3 parameters in function GenOpenApplication.

The first parameter is the device name.
The device name is a string such as "AIO000" registered in the device manager or utility.

The second parameter is the device ID.
The device ID comes from C-WaveformGenerator and you must call all functions of C-WaveformGenerator SDK with this device ID.

The third parameter is the screen status.
Screen status include Minimize, Normal size for each application, and Maximize. For normal size, pass 1 as the parameter.

If the function completes normally, the return value (Ret) is 0.
If the function fails to execute, a value other than 0 is returned.

Exit processing is performed by function GenCloseApplication.
This function closes the application and disables access.
Please make sure to execute this function before terminating your application.
Otherwise, the resources used by the device driver may remain unreleased.

 

Programming Example for each language

Visual Basic .NET  
Visual C#
Visual C++ (MFC)