ZmGetCircuit


Function

Get the equivalent circuit mode.

Format

Ret = ZmGetCircuit ( Id , ChannelNo , Circuit )

Parameters

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ]
Specify the device ID retrieved from ZmInit.

ChannelNo [ VB.NET: UShort ] [ C, C++: unsigned short ] [ C#: ushort ]
Specify the channel number.

Circuit [ VB.NET: UShort ] [ C, C++: unsigned short * ] [ C#: out ushort ]
Specify the variable address for storing the equivalent circuit mode.

Return Value

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

Definition

Value
[Dec]

Description

ZM_ERR_SUCCESS

0

Normality completion

ZM_ERR_SYS_CHANNEL_NO

20100

Channel No is out of the settable range.

The others (See also: Details of Error Code)

Initial Value

0 : AUTO

Remarks

Get the equivalent circuit mode.
The equivalent circuit mode is gotten for each channel.

If the equivalent circuit mode is set to AUTO, the equivalent circuit mode set during measurement cannot be gotten by this function.

For details about how to get equivalent circuit mode, please refer to the ZmSingleCMeasure function.
For details about equivalent circuit mode, please refer to the glossary "Equivalent Circuit Mode".

Example

Get the equivalent circuit mode for ChannelNo = 1.

VB.NET

Dim Ret As Integer

Dim Circuit As UShort
Ret = ZmGetCircuit ( Id , 1 , Circuit )
 

C, C++

long Ret;

unsigned short Circuit;
Ret = ZmGetCircuit ( Id , 1 , &Circuit );
 

C#

int Ret;
ushort Circuit;
Ret = zm.GetCircuit ( Id , 1 , out Circuit );
 

See Also

ZmSetCircuit ZmSingleCMeasure