10-03-2019 04:45 AM - edited 10-03-2019 04:47 AM
I am trying to accept only good data which is recognised by the checksum however as the program is running inside a while loop i believe this is the issue I am having because data must be passed to the point during the while loop.
How do I extract only the good data packets? otherwise this data comes through as sound and throws my program off. NOTE I am aware i have double passed data in the loop. this was a test to see why the code was not executing and it was found that a state must be passed to the value. I tried accepting the last good value however this only works for short periods of time. tried getting it to hold the value and still some sound is coming through.
10-03-2019 07:20 AM
What does "passed to the point during the while loop" mean? What is "the point"? Where is the while loop? A picture of a small section of your code doesn't tell us anything. When I see a few local variables, and a Rube Goldberg of Array to Cluster when you should just be using Index Array to get the individual elements, I get worried.
When you calculate the checksum, aren't you getting a boolean that says whether it is valid or not? If it is valid (True), then you do whatever action you. When it is not (False) then you don't. That means you need to put your code in a case structure.
10-04-2019 09:33 AM
I like the script node
If (x=y)
return 1
else
return 1 ![]()
/Y