comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Read Hex numbers
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Read Hex numbers [message #5255] Fri, 24 November 1995 00:00 Go to previous message
boswell is currently offline  boswell
Messages: 7
Registered: October 1994
Junior Member
Apologies to the group for the wasted bandwidth of my last post.

Michael is reading in his binary data just fine, he simply wants to print out
the result in hex. My last answer had the right idea, but my example was
backwards.

What you want to do is use the Z format specifier on output. This works fine
in IDL. For example, if you want to output nibbles of your 2 byte array, you
could use a statement such as

IDL> print, bytearray, format='(2Z2)'

Jonathan Boswell
FDA/CDRH
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Problems transferring an XDR file.
Next Topic: Representing graphs in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 09:20:47 PDT 2025

Total time taken to generate the page: 0.00229 seconds