"Blalock, William T." <WILLIAM.T.BLALOCK@saic.com> wrote:
> Hello all,
>
> I'm working with a Logic Analyzer that sends a data block back to the
> controller in binary one byte at a time.
> In some cases I have to convert a 64 bit word (8 bytes) to its decimal
> equivalent. Vee only allows up to a 32 bit word (bits(str)) for conversion
> to decimal. Anyone have an efficient way to do this without umpteen loops ,
> bit shifts, ....etc. I'm using Vee 6.03 on Win2000. Thanks in advance.
If you are tallking about a 64-bit binary value and not a 64-bit
representation of a decimal value ala IEEE 64 bit specs, then you're
going to need some loops. VEE's reals (like most) are based on IEEE
64 bit floating point spec so is not capable of directly doing what you want.
You'll therefore need an extended-resolution algorithm of some sort.
Are you sure that you aren't getting a 64-bit IEEE value from the instrument?
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> Hello all,
>
> I'm working with a Logic Analyzer that sends a data block back to the
> controller in binary one byte at a time.
> In some cases I have to convert a 64 bit word (8 bytes) to its decimal
> equivalent. Vee only allows up to a 32 bit word (bits(str)) for conversion
> to decimal. Anyone have an efficient way to do this without umpteen loops ,
> bit shifts, ....etc. I'm using Vee 6.03 on Win2000. Thanks in advance.
If you are tallking about a 64-bit binary value and not a 64-bit
representation of a decimal value ala IEEE 64 bit specs, then you're
going to need some loops. VEE's reals (like most) are based on IEEE
64 bit floating point spec so is not capable of directly doing what you want.
You'll therefore need an extended-resolution algorithm of some sort.
Are you sure that you aren't getting a 64-bit IEEE value from the instrument?
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
I'm working with a Logic Analyzer that sends a data block back to the
controller in binary one byte at a time.
In some cases I have to convert a 64 bit word (8 bytes) to its decimal
equivalent. Vee only allows up to a 32 bit word (bits(str)) for conversion
to decimal. Anyone have an efficient way to do this without umpteen loops ,
bit shifts, ....etc. I'm using Vee 6.03 on Win2000. Thanks in advance.
William T. Blalock
Science Applications International Corporation
Engineering Technician/Technical Analyst
E-Mail: blalockw@saic.com
RF Lab (Comm / DSN):(256) 313-7869 / 897-7869
RF Lab Fax (Comm / DSN):(256) 313-7861 / 897-7861
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".