AnsweredAssumed Answered


Question asked by VRFuser on Jun 18, 1998
send q VRF_character_escapes ww vrf

from: Greg Goebel / HP-MXD / 800-452-4844
to:   VRF-Michel Cyr
date: Thursday, 18 June 1998 1508 MDT

Michel Cyr wrote:

> I have an instrument which require that I send  @x51
with HPIB.
> Unfortunately, if I used a direct I/O with this sequence I get the
> following error message:
> "illegal escape sequence"

The issue here is whether the "" codes in the string are supposed to
represent one-bytee character codes or are supposed to be actually sent as
ASCII strings of two characters.

The "
" specifies the CR-LF character code sequence.  This should actually
be provided by the Direct I/O EOL sequence by default (as long as you have
configured I/O correctly).

VEE doesn't know what character code "x" corresponds to.  I'm not sure what
it corresponds to, either, but if there is a particular character code that
corresponds to "x" then you can send it by just using a BYTE transaction:


I am arbitrarily assuming that "x" is just a space character in this example
and giving it the value 32.  I am assuming that the EOL sequence is set to
CR-LF ("
") Note that I have suppressed EOL on the first two transactions.

If what you actually want to send is the two characters "" and "x" and not a
character code, then you have to send the "" by doubling it:  "\".

> How can I solve this problem?
> Michel Cyr
> Nortel
> e-mail:
> ph: 613-765-2634
> fx: 613-765-2471

[<>] regards -- greg goebel