AnsweredAssumed Answered

Indeterminate string from instrument?

Question asked by VRFuser on Oct 31, 1996
From: Johannes Mulder
Re:     VRF: Indeterminate string from instrument?

> From:          Stan Bischof <stanb@hpnmrsb2.sr.hp.com>
> Date:          Thu, 31 Oct 1996 09:04:00 -0800 (PST)
> To:            hpvxd_xc%hpislsup.lvld.hp.com@hplb.hpl.hp.com
> Subject:       VRF: Indeterminate string from instrument?

> Very simple problem:
>
> I want to read in a character stream from an instrument but have
> no way of knowing up front how long the stream is (is an HPGL output
> in this case). Am using DIO, but unlike "from string" or
> "from file" there is no
>
>   READ TEXT x STR ARRAY:*  (read till end of array) option available.
>

I wanted to do the same with my PM3382 scope. It works perfect, as
follows:

Using DIO with READ TEXT x STR (default num chars) (scalar)
DIO configured with ReadTerminator = "
"

Hope this helps you
With kind regards,
  Johannes Mulder           
  Philips Electron Optics            tel +31 40 2766947
  Building AAE-room 21               fax +31 40 2766820
  P.O.B. 218                  
  5600 MD ACHT, the Netherlands

Date: Fri, 01 Nov 96 08:44:11 EDT
From: "Ian Dalton" <daltoni@macom.com>
To: hpvxd_xc@hpislsup.lvld.hp.com, Stan Bischof <stanb@hpnmrsb2.sr.hp.com>
Subject: Re: VRF: Indeterminate string from instrument?

          Hi Stan
         
          I had the same problem in trying to read a HPGL plot output from
          a network analyser, The following works well for me with no error
          trapping involved.
         
          WRITE TEXT "OUTPLOT" EOL
          READ BINARY x STR
         
         
          OUTPLOT in this case is the command I use to get the HPGL data.
          The second line is the format you could try.
         
          Regards
         
          Ian Dalton   M/A-Com Eurotec


______________________________ Reply Separator _________________________________
Subject: VRF: Indeterminate string from instrument?
Author:  Stan Bischof <stanb@hpnmrsb2.sr.hp.com> at corp
Date:    31/10/96 12:14


Very simple problem:
         
I want to read in a character stream from an instrument but have
no way of knowing up front how long the stream is (is an HPGL output
in this case). Am using DIO, but unlike "from string" or
"from file" there is no
         
  READ TEXT x STR ARRAY:*  (read till end of array) option available.
         
I can think of two ugly workarounds
         
(1) read a character at a time until an error occurs. Extremely slow
    with full handshaking with every character.
         
(2) ask for a humongous array size- larger than I'd ever expect and
let the DIO error out, trapping and ignoring the error. At the same time
have the IO Moniotr active and logging it's output to a file. Read
in the file and sort out the returned string from it. Maybe faster than
above but very clumsy.
         
I'm assuming that my mind just isn;t working this AM and there's a simple
way to do this!
         
Someone please set me straight
         
thanks
         
Stan Bischof
stanb@sr.hp.com
         
         
----------------------------------------------------------------------
Stan Bischof   Hewlett Packard Company   707-577-3994  stanb@sr.hp.com
----------------------------------------------------------------------


Outcomes