NI Home > Community > NI Discussion Forums

BioBench

Showing results for 
Search instead for 
Do you mean 
Reply
Member
Strokes
Posts: 168
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: 168
0 Kudos

Re: Byte conversion error

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

 

Thanks