06-30-2014 09:23 AM
Hello crossrulz,
Thanks for your suggestions that finally made it working perfectly.
And for converting hexadecimal to 2’s complement using (DataSeparator.vi) one of the solutions found here
http://forums.ni.com/t5/LabVIEW/24bit-hex-to-2-s-complement/m-p/1685722/highlight/true#M598940
I wonder if the converted 2’s complement value is right (result is shown in the attached iamge)because when I used this http://www.hobbyprojects.com/calculators/binary_decimal_hex_converter.html
calculator it is showing 13176 as the result when the 00CC88 hexadecimal value is converted into 2’s complement.
Can someone clarify this and the working of 2’s complement.
Thanks.
07-01-2014 03:41 AM
Hi,
Can anyone help me out in verifying the working of hexadecimal value to 2's complement.
thankyou.
07-01-2014 07:59 AM - edited 07-01-2014 08:00 AM
You have a major issue with knowing what your data is. The output of that Array To Spreadsheet String is ASCII data. You can't do binary operations on it. You want to perform the 2s Compliment on your raw numeric data.
Here's what I would do
07-01-2014 12:24 PM
Hi,
Can you please psot the vi for this image(conversion from hexadecimal to 2's complment).
Thanks.
07-01-2014 02:59 PM
That image is actually a snippet. Save the image to your computer and then drag the file from your Windows Explorer onto your block diagram. *poof* You have code.