LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1's complement 16 bit

Solved!
Go to solution

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.

0 Kudos
Message 1 of 10
(5,209 Views)

Sum all of your 16 bit integers.

Then XOR with 0xFFFF.

0 Kudos
Message 2 of 10
(5,201 Views)

I am new to labview can you show me how?

0 Kudos
Message 3 of 10
(5,197 Views)

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/

0 Kudos
Message 4 of 10
(5,194 Views)

Something like this:

0 Kudos
Message 5 of 10
(5,188 Views)

Read the tutorials, too! 🙂

0 Kudos
Message 6 of 10
(5,184 Views)
Solution
Accepted by topic author Philip1969

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

0 Kudos
Message 7 of 10
(5,181 Views)

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.

Message 8 of 10
(5,149 Views)

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.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 9 of 10
(5,130 Views)

Hallo Rolf ,

 

bedankt.

 

I got it working,thanks everyone.

 

Philip

0 Kudos
Message 10 of 10
(5,123 Views)