計測制御技術ラウンジ >> GPIB技術ラウンジ 全部 1- 最新50

INES社のGPIBのデリミタ設定について

1 名前: Aki 投稿日:2004/09/13(月) 18:21 ID:M6TGw9MQ

お世話になっております。

INES社のGPIBのGPIBをVBで制御していますが、デリミタの設定は良く分かりません。
OnlineManualを見てみると以下の関数で設定するようです。

Function IeSet(ByVal pad%, ByVal tmo%, ByVal termin%, ByVal termout%) As Integer


'---------------------------------------------------------
Selection of the termination value (termin/termout)

<0>  The data blocks will not be terminated. During a listener transfer (see Enter),
  this may result in the error message unexpected end of transfer buffer.
  If using an ines board with the ines IGPIB controller chip, the internal FIFO
  can be activated by adding a 1 to this value.

<900>  Data blocks will be terminated with EOI. During a talker transfer,
  the EOI line will be set to true with the last byte of data, and signals
  the end of the block. During a listener transfer, the input of data is
  stopped at the first byte with EOI set to TRUE. If using an ines board
  with the ines IGPIB controller chip, the internal FIFO can be activated by
  adding a 1 to this value.

<1XXX>  Data blocks will be delimited by the byte specified by decimal XXX.
  The listener transfer ends with the reception of this byte.
  During a talker transfer, the byte specified by XXX is appended to the data.
  The values allowed are between 1000 (EOS byte 00) and 1255 (EOS byte 0FFH).
  The EOI line is ignored.If using an ines board with the ines IGPIB controller chip,
  the internal FIFO can be activated by adding a 256 to this value.

<9XXX>  Data blocks will be delimited by the byte specified by decimal XXX
  and/or EOI TRUE. The listener transfer ends with the reception of the EOS byte or
  recognition of EOI TRUE. During a talker transfer, the byte specified by XXX will
  be appended to the data and the EOI line will be set to TRUE at the same time.
  The values allowed are between 9000 (EOS byte 00) and 9255 (EOS byte 0FFH).
  If using an ines board with the ines IGPIB controller chip, the internal FIFO
  can be activated by adding a 256 to this value.

1<XXXX> ATN mode The ines-ieee488 interface system will normally set the
  ATN line to TRUE following the end of a data transfer event. This can be modified,
  however, since this can sometimes prompt a malfunction of certain devices.
  By adding 10.000 (decimal) to the termin/termout value it is possible to cause
  the ATN line to remain in the FALSE state following completion of a data transfer event.

Initial Settings (Default Setting)

After the initialization of the ines-ieee488, the following values are used as default
settings:
  <timeout>  = 1000   ms
  <termin>  = 900   EOI
  <termout>  = 9010   EOI/LF

'---------------------------------------------------------

しかし、<termin>と<termout>を 0, 900, 9010, ...など設定しても
受信文字列の最後に<10h>が付いています。ということはデリミタの設定はうまく
できなかったと思います。

これについてご存知の方がいらっしゃいましたら教えていただけませんか。

よろしくお願いいたします。

動作環境:
  Windows2000 - VB6.0
  ボード:Ines GPIB-PSMCIA

新着レスの表示

名前 : E-mail(省略可) :

文責:計測制御技術ラウンジ, Powered by ©タカヒロ@みちのく掲示板 [12ch BBS 2.03]