GenGetOscillation


Function

Get the oscillation information.

Format

Ret = GenGetOscillation ( AppId , OscillationType , OscillationStart , OscillationStop )

Parameters

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 
Specify Application ID retrieved by GenOpenApplication.

OscillationType [ VB.NET : Short ] [ C++ : short * ] [ C# : out short ]

Return the oscillation type.

0

None

1

Auto burst

2

Trigger burst(rising edge)

3

Trigger burst(falling edge)

OscillationStart  [ VB.NET: Short ] [ C++: short * ] [ C#: out short ]

Return the number of oscillations used for conversion.

OscillationStop [ VB.NET: Single ] [ C++: float * ] [ C#: out float ]

Return the stop wave number or stop time used for conversion.

Return Value

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

Definition

Return Value

Description

GEN_ERR_SUCCESS

0

Normal completed

GEN_ERR_OSCILLATION_TYPE

20006

Oscillation type is outside the settable range.

The others (See also: Error Code List)

Remarks

Get the oscillation information.
This function can be executed even if the device is in operation.

Example

Get the oscillation type, oscillation count, and stop wave number or stop time.

VB.NET

Dim Ret As Integer

Dim OscillationType As Short

Dim OscillationStart  As Short

Dim OscillationStop As Short

Ret = GenGetOscillation(AppId, OscilationType, OscillationStart , OscillationStop)

 

C++

long Ret;

short OscilationType;

short OscillationStart ;

float OscillationStop;

Ret = GenGetOscillation(AppId, &OscilationType, &OscillationStart , &OscillationStop);

 

C#

int Ret;

short OscilationType;

short OscillationStart ;

float OscillationStop;

Ret = gen.GetOscilation(AppId, out OscilationType, out OscillationStart , out OscillationStop);

 

See Also

GenSetOscilation