08-12-2014 02:21 PM
Hi, guys.
I'm using a CRC-08-maxim VI to check 3 different bytes. The VI is attached in this post.
I want that every time one of the bytes changes, the CRC operates again, for the 3 bytes. For this, i'm using an event structure on which each byte value change activates it.
My problem is: I want the same 3-bytes combination to always produce the same CRC value, so when the CRC is unpacked, my checking is correctly done.
I imagine that (and correct me if i'm wrong), the way i'm doing things (with 8-bit entrance, for loop and shift register), I would need the CRC to reset at each 3 loops, so it check's the 3 bytes i'm plugging in. My reset would need to be a constant True-False-False sequence.
How can I do that?
(Do not consider the second CRC for loop - it was just a test i ran.)
Thanks for any help.
08-12-2014 02:35 PM - edited 08-12-2014 02:36 PM
I don't have your subVIs, but it looks like all you really need to do is initialize your shift register. You can also just use Build Array to combine your bytes instead of doing the weird string conversions.