473,385 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.
Sep 18 '05 #1
3 5494

"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ayokunle Giwa | last post by:
Why do I keep getting this error in the function to insert data below, any help would be apprecaited: CREATE OR REPLACE FUNCTION public.add_apppointment (date, time, integer,time, boolean, text,...
8
by: DraguVaso | last post by:
Hi, I want my application do different actions depending on the exception it gets. For exemple: I have an SQL-table with a unique index. In case I try to Insert a record that's alreaddy in it I...
0
by: Mike Leahy | last post by:
Okay.I'm following the documentation that came with the PostgreSQL source code (located in /usr/doc/postgresql-7.3.4-2/html/arrays.hmtl in my cygwin root). I created have a table with a varchar...
3
by: D r . P r o z a c | last post by:
Hi, I want to identify combinations of letters (a-z)... to make the combination unique, but where the order of these letters is not important. For example: 'er' and 're' should have the same...
1
by: Dennis | last post by:
If a Window's form contains two textboxes, txtUserName for names and the other txtDimension for mathematical values, how could the program code be set up to identify that only letter character(s)...
12
by: weaselboy1976 | last post by:
Hello, If we have c code like what's below, we will get an error because in the stringManipulator function we attempt to modify a string literal on the second call to the function. My question...
4
by: joboils | last post by:
I'm at a pretty early stage of learning php and I'm looking to be able to examine a string and tell which each character in that string is - a letter or a number. I've tried php.net but I'm either...
3
by: srinithi | last post by:
1.write a program to identify whether a character entered by a user is a vowel or a consonant? 2.write a program to identify whether the number entered by user is even or odd? 3.write a program to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.