ZmSetCircuit


Function

Set the equivalent circuit mode.

Format

Ret = ZmSetCircuit ( 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#: ushort ]
Specify the equivalent circuit mode.

Definition

Value
[Dec]

Description

ZM_CIRCUIT_AUTO

0

Equivalent circuit mode AUTO

ZM_CIRCUIT_SERIAL

1

Equivalent circuit mode Serial equivalent circuit

ZM_CIRCUIT_PARALLEL

2

Equivalent circuit mode Parallel equivalent circuit

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.

ZM_ERR_SYS_CIRCUIT

20105

Circuit is out of the settable range.

The others (See also: Details of Error Code)

Initial Value

0 : Equivalent circuit mode AUTO

Remarks

Set the equivalent circuit mode.
The equivalent circuit mode can be set for each channel.

When the equivalent circuit mode is set to auto, the equivalent circuit mode is automatically set according to the conditions for the correction.

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

Example

Set ChannelNo = 1 to "1 : Equivalent circuit mode Serial equivalent circuit".

VB.NET

Dim Ret As Integer
Ret = ZmSetCircuit ( Id , 1 , 1 )
 

C, C++

long Ret;
Ret = ZmSetCircuit ( Id , 1 , 1 );
 

C#

int Ret;
Ret = zm.SetCircuit ( Id , 1 , 1 );
 

See Also

ZmGetCircuit