ZmGetLevel


機能

測定信号レベルを取得します。

書式

Ret = ZmGetLevel ( Id , ChannelNo , Level )

引数

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
ZmInitで取得したデバイスIDを指定します。

ChannelNo [ VB.NET: UShort ] [ C, C++: unsigned short ] [ C#: ushort ] [ Python: ctypes.c_ushort ]
チャネル番号を指定します。

Level [ VB.NET: UShort ] [ C, C++: unsigned short * ] [ C#: out ushort ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]
測定信号レベルを格納する変数アドレスを指定します。

戻り値

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

定義

戻り値
[Dec]

内容

ZM_ERR_SUCCESS

0

正常終了

ZM_ERR_SYS_CHANNEL_NO

20100

チャネル番号が設定可能範囲外です。

その他のエラー(参照:エラーコード詳細

初期値

0 : 500[mV]

説明

測定信号レベルを取得します。
測定信号レベルはチャネル毎に取得します。

使用例

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) )
 

関連項目

ZmSetLevel