Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   End or Identify (EOI) character ? (http://www.velocityreviews.com/forums/t349233-end-or-identify-eoi-character.html)

Madhusudan Singh 09-18-2005 12:48 AM

End or Identify (EOI) character ?
 
Hi

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

Thanks.

Terry Reedy 09-18-2005 05:31 AM

Re: End or Identify (EOI) character ?
 

"Madhusudan Singh" <spammers-go-here@spam.invalid> wrote in message
news:432cb8fd$0$18650$14726298@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




Donn Cave 09-19-2005 04:33 PM

Re: End or Identify (EOI) character ?
 
In article <mailman.552.1127021597.509.python-list@python.org>,
"Terry Reedy" <tjreedy@udel.edu> wrote:

> "Madhusudan Singh" <spammers-go-here@spam.invalid> wrote in message
> news:432cb8fd$0$18650$14726298@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, donn@u.washington.edu

Torsten Bronger 09-19-2005 04:53 PM

Re: End or Identify (EOI) character ?
 
Hallöchen!

Donn Cave <donn@u.washington.edu> writes:

> In article <mailman.552.1127021597.509.python-list@python.org>,
> "Terry Reedy" <tjreedy@udel.edu> wrote:
>
>> "Madhusudan Singh" <spammers-go-here@spam.invalid> wrote in message
>> news:432cb8fd$0$18650$14726298@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

rob.irwin 02-14-2013 02:11 PM

Re: End or Identify (EOI) character ?
 
GPIB is an old established industry standard for hardware control of instruments. It is defined in IEE 488. It evolved from HPIB.
EOI is a character that is sent at the end of a command to show it is the end (over GPIB or RS232 or LAN etc.). The original question was sensible in that the EOI can be different, depending on the instument. It is normally Carriage Return\Line Feed but can be either just CR or LF or something else (LF may be sent as '\n' etc. depends on language and OS)
Instruments I know of that are not standard are Agilent8703 and Agilent E5260. You'd think as the inventors of GPIB (Agilent spun off from HP) they would be standard wouldn't you?


All times are GMT. The time now is 09:36 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57