06-21-2012 03:38 PM
Hello , I need to calculate from a hex string the 16 bits one's complement of the one's complement of all 16 bits words in the header and data.
the string is as follows 7E03 00FE 2010 0000 000C and the calculated checksum of this is 60E2
The description is that it also used in UDP/IP but i cannot find how to do this in Labview,i saw a few a posts in this forum but i cannot get it working..
Any help is very appreciated.
Solved! Go to Solution.
06-21-2012 03:51 PM
Sum all of your 16 bit integers.
Then XOR with 0xFFFF.
06-21-2012 03:59 PM
I am new to labview can you show me how?
06-21-2012 04:04 PM
Since you are new to LabVIEW, then wouldn't it make sense to take the tutorials? Very helpful. http://www.ni.com/academic/students/learnlabview/
06-21-2012 04:09 PM
Something like this:
06-21-2012 04:10 PM
Read the tutorials, too! 🙂
06-21-2012 04:12 PM
Tnx, i will try it
I have studied the tutorials and the forum but was curious if there is a function in Labview that does this
06-21-2012 09:29 PM
Did you find the solution? You marked your message as the solution even though you didn't solve your own problem. Please mark the message of one of the people you helped you as the solution. First you will need to unmark your message as the solution by going to the options menu to the upper right of your message.
06-22-2012 01:45 AM
No need to use an XOR. The Not function in the Boolean palette does the same without the need to fill in a numeric constant to have the maximum value of the according unsigned int type.
Why Boolean palette? Well it is strictly speaking operating in Boolean mode on numerics.
06-22-2012 02:39 AM
Hallo Rolf ,
bedankt.
I got it working,thanks everyone.
Philip