Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #34675
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!rt.uk.eu.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <wrw@mac.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.013 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'implements': 0.07; 'subject:skip:c 10': 0.07; 'python': 0.09; 'cc:addr:python-list': 0.10; 'dec': 0.15; 'character).': 0.16; 'received:mac.com': 0.16; 'wrote:': 0.17; 'byte': 0.17; 'driver': 0.17; 'received:10.0.1': 0.17; 'thanks,': 0.18; 'examples': 0.18; 'written': 0.20; 'subject:problem': 0.22; 'device': 0.24; 'cc:2**1': 0.24; 'command': 0.24; 'cc:addr:python.org': 0.25; 'skip:m 30': 0.26; 'jean': 0.29; 'pointer.': 0.29; 'url:mailman': 0.29; "i'm": 0.29; 'call.': 0.30; 'writes': 0.30; 'function': 0.30; 'url:python': 0.32; 'url:listinfo': 0.32; '11,': 0.33; 'int': 0.33; 'received:10.0': 0.33; 'another': 0.33; 'received:17': 0.35; 'pm,': 0.35; 'something': 0.35; 'really': 0.36; 'skip:u 20': 0.36; 'but': 0.36; 'url:org': 0.36; 'cc:no real name:2**1': 0.36; 'characters': 0.36; 'depends': 0.36; 'subject:with': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'received:10': 0.38; 'notice': 0.39; 'where': 0.40; 'subject:-': 0.40; 'url:mail': 0.40; 'from:no real name:2**0': 0.60; 'course.': 0.62; 'charset:windows-1252': 0.65; 'counts': 0.81; 'suspicious': 0.91 |
| MIME-version | 1.0 |
| Content-type | text/plain; charset=windows-1252 |
| Subject | Re: problem with usbtmc-communication |
| From | wrw@mac.com |
| In-reply-to | <b3fa909b-a89d-4087-b562-08efb6fb0797@17g2000vba.googlegroups.com> |
| Date | Tue, 11 Dec 2012 21:21:06 -0500 |
| Content-transfer-encoding | quoted-printable |
| References | <05927d41-f73f-4fef-9a6d-4133e5c7d86a@n8g2000vbb.googlegroups.com> <mailman.492.1354721221.29569.python-list@python.org> <fc36067e-9b74-4eed-b1db-92ee5760af30@c16g2000yqi.googlegroups.com> <mailman.533.1354746072.29569.python-list@python.org> <d8253611-dab9-461a-8b82-9c52287718a9@w8g2000yqm.googlegroups.com> <mailman.564.1354805416.29569.python-list@python.org> <123edfab-b46a-4a47-8b73-3f47e807e074@c16g2000yqi.googlegroups.com> <mailman.586.1354824932.29569.python-list@python.org> <01cdbc70-7e46-4225-9baa-b555619d1aa8@10g2000yqo.googlegroups.com> <99b04e06-734c-4702-bf74-855e28d8f633@x20g2000vbf.googlegroups.com> <mailman.675.1355153683.29569.python-list@python.org> <50b9eb4f-f319-491d-894c-2a9386b6941a@x20g2000vbf.googlegroups.com> <mailman.728.1355236484.29569.python-list@python.org> <b3fa909b-a89d-4087-b562-08efb6fb0797@17g2000vba.googlegroups.com> |
| To | Jean Dubois <jeandubois314@gmail.com> |
| X-Mailer | Apple Mail (2.1499) |
| Cc | python-list@python.org, wrw@mac.com |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.764.1355278877.29569.python-list@python.org> (permalink) |
| Lines | 39 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1355278877 news.xs4all.nl 6861 [2001:888:2000:d::a6]:55910 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:34675 |
Show key headers only | View raw
On Dec 11, 2012, at 3:48 PM, Jean Dubois <jeandubois314@gmail.com> wrote:
[byte]
>>
>> OK - I see where the examples came from, and I notice -
>>
>> int my_inst;
>> my_inst=open(ā/dev/usbtmc1ā,O_RDWR);
>> write(my_inst,ā*RST\nā,5);
>> close(my_inst);
>>
>> and similarly in another place -
>>
>> retval=write(myfile,"*IDN?\n",6);
>>
>> Note that both write commands contain a byte count of the number of characters to be written (\n counts as one character).
>> Again, the read commands contain byte counts. I'm very suspicious that a write command with no byte count writes nothing, but does move a buffer pointer.
>>
>> -Bill
>
> Does Python support/implement simular commands? Can I use
> usbkeith.write("*IDN?\n",6) and something simular for the reading
> commands?
>
> thanks,
> jean
> --
> http://mail.python.org/mailman/listinfo/python-list
Yes of course. BUT, that isn't really a python question, it depends on how the device driver implements the function call.
-Bill
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[newbie] problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-04 04:14 -0800
Re: [newbie] problem with usbtmc-communication wrw@mac.com - 2012-12-04 09:33 -0500
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-04 08:12 -0800
Re: problem with usbtmc-communication wrw@mac.com - 2012-12-05 10:26 -0500
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-05 12:38 -0800
Re: problem with usbtmc-communication wrw@mac.com - 2012-12-05 17:21 -0500
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-06 05:50 -0800
Re: problem with usbtmc-communication wrw@mac.com - 2012-12-06 09:50 -0500
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-06 11:41 -0800
Re: problem with usbtmc-communication Dave Angel <d@davea.name> - 2012-12-06 15:10 -0500
Re: problem with usbtmc-communication wrw@mac.com - 2012-12-06 15:15 -0500
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-07 05:46 -0800
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-10 05:31 -0800
Re: problem with usbtmc-communication wrw@mac.com - 2012-12-10 10:34 -0500
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-10 22:58 -0800
Re: problem with usbtmc-communication wrw@mac.com - 2012-12-11 09:34 -0500
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-11 12:48 -0800
Re: problem with usbtmc-communication wrw@mac.com - 2012-12-11 21:21 -0500
Re: problem with usbtmc-communication Jerry Hill <malaclypse2@gmail.com> - 2012-12-11 19:49 -0500
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-12 08:16 -0800
Re: problem with usbtmc-communication Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-12-05 18:08 -0500
Re: [newbie] problem with usbtmc-communication Terry Reedy <tjreedy@udel.edu> - 2012-12-04 14:55 -0500
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-06 06:05 -0800
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-06 07:44 -0800
Re: problem with usbtmc-communication Terry Reedy <tjreedy@udel.edu> - 2012-12-06 15:28 -0500
Re: problem with usbtmc-communication Jean Dubois <jeandubois314@gmail.com> - 2012-12-07 05:51 -0800
csiph-web