NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Strokes
Posts: 160
0 Kudos

Byte conversion error

I'm trying to send the number -8 in decimal (i8 representation)  to an external device using visa write. However, when I use the typecast function to convert -8 to a hex string, it converts it to the unsigned equivalent which is F8 in hex and 248 in decimal.

 

Any way around this happening?

Member
Strokes
Posts: 160
0 Kudos

Re: Byte conversion error

Could a mod please move this to the labVIEW section please...

 

Thanks

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page