OpenApplication


Function

Start the application and allow access.

Format

Ret = OpenApplication (OpenMode, DeviceName, Arg1)

Parameters

OpenMode [ VB.NET : Short ] [ C++ : short ] [ C# : short ]

Specifies the screen startup status.

0

Minimize

1

Normal size for each application

2

Maximize

DeviceName [ VB.NET : String] [ C++ : BSTR ] [ C# : String]

Specify the device name.

Arg1 [ VB.NET : String] [ C++ : BSTR ] [ C# : String]

Fixed to "". (Reserved)

Return Value

Ret [ VB.NET : Integer ] [ C++ : long ] [ C# : int ]

Return Value

Description

0

Normal completed

10000

Unable to specify screen size

The others (See also: Error Code List)

Remarks

Start the application and allow access.

If C-WaveformGenerator is not installed, this function is not available.

Please set the device that is supported by C-WaveformGenerator.

Example

Start the application by specifying AIO000 with the normal size of the application.

VB.NET

Dim Ret As Long

Ret = c_fgen.OpenApplication(1, "AIO000", "")

 

C++

long Ret;

ICWaveformGeneratorPtr c_fgen;

Ret = c_fgen->OpenApplication(1, L"AIO000", L"");

 

C#

int Ret;

Ret = c_fgen.OpenApplication(1, "AIO000", "");

 

See Also

CloseApplication