GetWaveType


Function

Get the waveform type.

Format

Ret = GetWaveType (AoChannel, WaveType, Arg1)

Parameters

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

Specify the channel number.

 

WaveType [ VB.NET : Short ] [ C++ : short * ] [ C# : ref short ]

Return the waveform type.

0

Sinewave

1

Constant

2

Triangular

3

Ramp

4

Square

5

Noise

6

Arbitrary

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

Specify the address of the reserved area. 0 is fixed (reserved)

Return Value

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

Return Value

Description

0

Normal completed

22000

Channel number is outside the settable range.

The others (See also: Error Code List)

Remarks

Get the waveform type.

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

Example

Get the waveform type of channel 0.

VB.NET

Dim Ret As Long

Dim WaveType As Short

Dim Arg As Short

Ret = c_fgen.GetWaveType(0, WaveType, Arg)

 

C++

long Ret;

ICWaveformGeneratorPtr c_fgen;

short WaveType;

short Arg;

Ret = c_fgen->GetWaveType(0, &WaveType, &Arg);

 

C#

int Ret;

short WaveType = 0;

short Arg = 0;

Ret = c_fgen.GetWaveType(0, ref WaveType, ref Arg);

 

See Also

SetWaveType