08-20-2009 03:45 AM
08-20-2009 03:55 AM
So based on that information you expect people can help you? You have an input value and you know what output you want, there's many options to achieve that...
For your initial question, some hints in the screenshot.
08-20-2009 04:12 AM
Hi,
Check the help message for "Number to Boolean array" and you'll see that the output array has the same number of elements as there are bits in the input integer. To see what type a wire is, turn context help on, then hover the mouse on the wire.
BTW, You almost certainly won't need to convert your CRC to a bool array to do bit arithmetic. Remember that the AND, OR, etc functions are not just for booleans. If you use integers for inputs to the logical functions, you get a bitwise operation.
Rod.
08-20-2009 04:20 AM
08-20-2009 04:26 AM
08-20-2009 04:34 AM - edited 08-20-2009 04:37 AM
Hi igurov,
"still does not return the correct result "
Well, it's your code-fragment transflated to LabVIEW to my best knowledge
And you didn't state if your example string is in hex display or plain ASCII and does it contain that checksum at the end or not (not that any combination will result in the expected result...)
08-20-2009 04:38 AM
08-20-2009 04:42 AM
08-20-2009 04:48 AM
Yes. Use the split function...
http://zone.ni.com/reference/en-XX/help/371361E-01/glang/split_number/
08-20-2009 04:52 AM
Dear wireworkers,
what a big screen do you use ??
As often as I can - I first try to find a solution in I - net ( if a problem seems not easy to solve for me ..... )
Find attached a succesfully re-used CRC - Program. This is the unchanged version I found.
Try to use it.
Regards
wha