05-29-2007 12:06 PM
05-29-2007 12:57 PM
@cincidude wrote:
Hi,
I am querying a hardware device which has a specific 32-bit address (for e.g. "1.6"). But when I query the address, I receive the address as a 32-bit signed integer. How do I interpret this integer to tally with the actual address value? Is there any section on the NI website, where I could read up the fundamentals of 'bit' mathematics?
-Dude
32-bit addresses are typically unsigned integers, so I am not sure how you come up with a noninteger value such as "1.6". Just typecast your I32 to U32 and you should be all set. No fancy bit mathematics needed. 😉
In what form do you receive the raw data from the instrument? Where in the code does it turn into a signed integer. Maybe you can change things around so you get the U32 right away?
See how far you get. If I misunderstood, please attach some simplified code.
05-29-2007 01:15 PM
05-29-2007 03:30 PM
05-29-2007 03:45 PM