labcom.Retriever (version 22.0.0, 2020-07-31)
index

計測データの取り出しを制御する。
 
計測名、ショット番号、サブショット番号、チャネル番号を指定して取り出す。
計測データはArcDataオブジェクトに格納される。
複数のチャネルを指定した場合は、配列に格納される。
 
Retrieve+dbStoreパッケージがインストールされている必要がある。

 
class Retriever( )
    Retriever(timeout=0, server=None, path=None, port=0)
 

 
  Methods defined here:
__del__(self)
__init__(self, timeout=0, server=None, path=None, port=0)
[ コンストラクタ ]
< 引数 >
  timeout(int)      : データの出現を待つ時間(秒) 
          default=0 : no wait
  server(string)    : データ取得ホスト(ホスト指定)
          default=None : INDEXのSHOTテーブルを参照する。
  path(string)      : データ取得時のパス(ホスト指定)
          default=None : INDEXのSHOTテーブルを参照する。
  port(int)         : データ転送サーバ(transd)のサービスポート番号
          default=None : INDEXのSHOTテーブル等を参照する。
get(self, diag, shot, sub_shot, channels, range_type=0, range_str='')
[ 関数名 ] get
< 引数 >
  diag(string)   : 取得したいデータの計測名
  shot(int)      : 取得したいデータのショット番号
  sub_shot(int)  : 取得したいデータのサブショット番号
  channels(int,str,[],())
                 : 取得したいデータのチャネル番号,信号名 
  range_type(int)  : 取得範囲の種別
  range_str(string)   : 取得範囲の文字列
                              
< 返値 >
  ArcDataオブジェクトまたは配列
< 説明 >
  計測データを取得する。
  可能であれば、電圧値に変換する。
< 例外 >
  TypeError     : チャネル番号の型があわない。
  ValueError    : チャネル番号が不正である。
  RetrieveError : retrieveライブラリでエラーが発生した。
get_frames(self, diag, shot, sub_shot, channel, frames)
[ 関数名 ] get_frames
< 引数 >
  diag(string)      : 取得したいデータの計測名
  shot(int)         : 取得したいデータのショット番号
  sub_shot(int)     : 取得したいデータのサブショット番号
  channel(int,str)   : 取得したいデータのチャネル番号 
  frames(int,[],())  : 取得したいデータのフレーム番号 
                              
< 返値 >
  ArcDataオブジェクト
< 説明 >
  フレームを指定して、データを取得できる。 ただし、フレーム構造の計測データ(画像)のみである。
< 例外 >
  TypeError     : チャネル番号が型があわない。
  ValueError    : チャネル番号が不正である。
  RetrieveError : retrieveライブラリでエラーが発生した。

Class methods defined here:
version() from builtins.type

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
RANGE_EXP = 1
RANGE_FRAMES = 4
RANGE_NOSET = 0
RANGE_SAMPLES = 3
RANGE_TRIG = 2

 
Author
        S.Imazu