Article View: alt.lang.basic
Article #544Re: HELP: Data extraction from HP34901/34970 meter/loggers - how?
From: budgie
Date: Sat, 09 Feb 2002 05:02
Date: Sat, 09 Feb 2002 05:02
87 lines
4322 bytes
4322 bytes
On Fri, 08 Feb 2002 14:20:01 GMT, DeductThisPart.gpsnav@pacific.net.sg
(Tom Werry) wrote:
>budgie <budgie@nowhere.cantech.net.au> wrote:
>
>>This request is for info to assist in the above. I'm not after
>>general "how-to" stuff, rather I'd like to get some clues from someone
>>who has "been there".
>
>>I have a HP34970A on loan, c/w all manuals. Normally I'm quite
>>capable of writing Basic code for RS232 comms for pretty much
>>anything, but this one has me stumped. I've read the user manual for
>>far too long - all aussie support have gone for the weekend :-(
>
>>All the commands to the instrument seem to be accepted OK, but all
>>attempts to actually receive any data from it are met with a "hang" on
>>the input statement. DOS platform, QBasic and/or QB4.5 in use ('cos
>>VB-DOS and serial comms don't get along).
>
>>Anyone been there? All help appreciated.
>
>Peter,
>
>Post/email a bit of your code, specifically the open comms stmt and
>the input for comms.
Will do - it's on another box elsewhere. Probably in about 20 hours
from now I can post some of it ...
>Are you using the LOC (n) function to see if there is anything at the
>port? If yes send that code as well.
Not at this stage. I have just got an INPUT# sitting waiting. Once
the HP actually sends some strings I will look further at how I will
best absorb them into QB(asic).
>You may not have the right open options set and then your device
>doesn't set the correct control lines to be compatible with Basic's
>port settings - RTS, CTS, DTR, DSR, CD, etc. - that kind of stuff.
Tried RTS/CTS intially at both ends - no difference to now, when i
have moved to XON/XOFF (HP's preferred mode).
>How many wires do you have connected end to end - 3? 5? 7? What?
It's the supplied HP lead. The HP is a DTE (also), so it is a null
modem config with (IIRC) all leads employed.
>Do your DB9/DB25 plugs have anything shorted to loop back?
No, all end-to-end with crossovers. When I next grab the book I can
give you the pinouts, but I can't see that being the problem. No
breaks - checked that first.
>Are the port parameters set right in the HP device?
Yes. 9600-8N1 both ends.
>Do you have one of those blinkie-lights thingees that you can use to
>verify that the HP device is actually wanting to send data?
Yes, and it isn't sending a cracker. That's the problem - all the
SCPI commands I saw resulted in data in the HP output port, but I
couldn't find an SCPI command to force it to actually Tx any data ..
>Can you verify that your cable does not have an open/shorted solder
>connection somewhere in one or more of the pins on one of the
>connectors? (Meter?)
Done.
>Have you been a bad boy or forgotten to say your prayers or something?
>
Ahah!! That could be it ;-)
>If you are sending an email, send the whole effing program because
>it's probly fairly short - I can just fix it for you if there's
>something wrong.
You speak SCPI?
Tnx Tom
Peter
Technical Details
Message-ID:
<3c64abb7.2197555@news.cantech.net.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.ozemail.com.au!news.netspace.net.au!newsfeed.iinet.net.au!nntp.waia.asn.au!nnrp.waia.asn.au!not-for-mailReferences:
<3c63c419.3768865@news.cantech.net.au> <a40ju6$ptl$1@newton3.pacific.net.sg>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10ab99,cb9fb01f867bc3e X-Google-Attributes: gid10ab99,public X-Google-Thread: 103407,cb9fb01f867bc3e X-Google-Attributes: gid103407,public X-Google-ArrivalTime: 2002-02-08 21:05:10 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.ozemail.com.au!news.netspace.net.au!newsfeed.iinet.net.au!nntp.waia.asn.au!nnrp.waia.asn.au!not-for-mail From: budgie <budgie@nowhere.cantech.net.au> Newsgroups: alt.lang.basic,aus.electronics Subject: Re: HELP: Data extraction from HP34901/34970 meter/loggers - how? Date: Sat, 09 Feb 2002 05:02:33 GMT Organization: CanTech Online Lines: 87 Message-ID: <3c64abb7.2197555@news.cantech.net.au> References: <3c63c419.3768865@news.cantech.net.au> <a40ju6$ptl$1@newton3.pacific.net.sg> NNTP-Posting-Host: proteus.cantech.net.au X-Trace: nnrp.waia.asn.au 1013230831 18872 203.26.6.6 (9 Feb 2002 05:00:31 GMT) X-Complaints-To: usenet@nnrp.waia.asn.au NNTP-Posting-Date: Sat, 9 Feb 2002 05:00:31 +0000 (UTC) X-Newsreader: Forte Free Agent 1.21/32.243 Cache-Post-Path: proteus.cantech.net.au!unknown@ra66.cantech.net.au X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)