By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,907 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,907 IT Pros & Developers. It's quick & easy.

End or Identify (EOI) character ?

P: n/a
Hi

I was wondering how does one detect the above character. It is returned by
an instrument I am controlling via GPIB.

Thanks.
Sep 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Madhusudan Singh" <sp**************@spam.invalid> wrote in message
news:43***********************@news.sunsite.dk...
Hi

I was wondering how does one detect the above character. It is returned
by
an instrument I am controlling via GPIB.


EOI = chr(n) # where n is ASCII number of the character.
# then whenever later
if gpid_in == EOI: #do whatever

Terry J. Reedy

Sep 18 '05 #2

P: n/a
In article <ma************************************@python.org >,
"Terry Reedy" <tj*****@udel.edu> wrote:
"Madhusudan Singh" <sp**************@spam.invalid> wrote in message
news:43***********************@news.sunsite.dk...
Hi

I was wondering how does one detect the above character. It is returned
by
an instrument I am controlling via GPIB.


EOI = chr(n) # where n is ASCII number of the character.
# then whenever later
if gpid_in == EOI: #do whatever


Which begs the question, what is the ASCII number of the
character? I was curious enough to feed GPIB and EOI into
a search engine, and from what I got back, I believe it is
not a character, but rather a hardware line that may be
asserted or not. GPIB, whatever that is, may support some
configuration options where EOI causes a character output,
but the actual value depends on configuration. The documentation
is probably the place to find out more about this stuff.

Donn Cave, do**@u.washington.edu
Sep 19 '05 #3

P: n/a
Hallöchen!

Donn Cave <do**@u.washington.edu> writes:
In article <ma************************************@python.org >,
"Terry Reedy" <tj*****@udel.edu> wrote:
"Madhusudan Singh" <sp**************@spam.invalid> wrote in message
news:43***********************@news.sunsite.dk...
I was wondering how does one detect the above character. It is
returned by an instrument I am controlling via GPIB.


[...]


Which begs the question, what is the ASCII number of the
character? I was curious enough to feed GPIB and EOI into
a search engine, and from what I got back, I believe it is
not a character, but rather a hardware line that may be
asserted or not.


Right. Well, sometimes there are "termination characters" that
denote the end of a message sent from the intrument to the computer
and vice versa, see
<http://pyvisa.sourceforge.net/pyvisa/node17.html>. They are not
EOI though but \r or \n.

Besides, normally you work on an abstraction level where you don't
worry about the EOI line or any termination characters. For
example, you work with <http://pyvisa.sourceforge.net>. ;-)

Tschö,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus ICQ 264-296-646
Sep 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.