ZmGetLevel


Function

Get the measurement signal level.

Format

Ret = ZmGetLevel ( Id , ChannelNo , Level )

Parameters

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

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

Level [ VB.NET: UShort ] [ C, C++: unsigned short * ] [ C#: out ushort ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]
Specify the variable address for storing the measurement signal level.

Return Value

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

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 : 500[mV]

Remarks

Get the measurement signal level.
The measurement signal level is gotten for each channel.

Example

Get the measurement signal level for ChannelNo = 1.

VB.NET

Dim Ret As Integer

Dim Level As UShort
Ret = ZmGetLevel ( Id , 1 , Level  )
 

C, C++

long Ret;

unsigned short Level;
Ret = ZmGetLevel ( Id , 1 , &Level );
 

C#

int Ret;
ushort Level;
Ret = zm.GetLevel ( Id , 1 , out Level );
 

Python

Ret = ctypes.c_long()
Level = ctypes.c_ushort()
Ret.value = czm.ZmGetLevel ( Id , 1 , ctypes.byref(Level) )
 

See Also

ZmSetLevel