epiz Posted July 13, 2023 Report Share Posted July 13, 2023 I have a sub vi that I have used to calculate the CRC for a set of data. It works perfectly, as the data stays the same the crc stays the same. I have run into this issue where once I implement the sub vi into the main Vi the CRC value will change every time I hit run when the data has not changed. If there is a reason why it is happening or if anyone knows how to fix it that would be great thank you Quote Link to comment
Neil Pate Posted July 14, 2023 Report Share Posted July 14, 2023 17 hours ago, epiz said: I have a sub vi that I have used to calculate the CRC for a set of data. It works perfectly, as the data stays the same the crc stays the same. I have run into this issue where once I implement the sub vi into the main Vi the CRC value will change every time I hit run when the data has not changed. If there is a reason why it is happening or if anyone knows how to fix it that would be great thank you Can you post your code? Quote Link to comment
ShaunR Posted July 14, 2023 Report Share Posted July 14, 2023 Uninitialised shift register. Quote Link to comment
epiz Posted July 17, 2023 Author Report Share Posted July 17, 2023 Here is the CRC conversion that I used in one of the sub vi. This works properly. In my main VI, everything is within an event structure in a while loop. Would that be why the CRC updates every time? Quote Link to comment
epiz Posted July 17, 2023 Author Report Share Posted July 17, 2023 @ShaunR how do you initialize a shift register? Quote Link to comment
crossrulz Posted July 17, 2023 Report Share Posted July 17, 2023 Wire a value into the shift register on the left side of the loop. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.