04-23-2015
07:40 AM
- last edited on
10-05-2024
02:17 PM
by
Content Cleaner
How can I get the current max value of a measurement?
I've tried the while loop max-min-solution described in this link. But using this my myRio Acceleration measurement dosen't work anymore. It seems to crash.
I'm using I2C-Communication.
Solved! Go to Solution.
04-23-2015 07:41 AM
04-23-2015 07:48 AM
The inner while loop is a bad construct. It will either run once if the boolean entering it is True, or run forever if the boolean is false.
Put your shift registers on the timed loop and eliminate the inner while loop. Then your code should work.
04-23-2015 07:49 AM - edited 04-23-2015 07:50 AM
Hi Maloya,
THINK DATAFLOW!
(And debugging would help here too…)
Your inner loop will block and never stop - due to dataflow.
Get rid of that inner loop, use the one you already have to put your shift registers on!
Hint: Next time you should edit your own post instead of creating two more messages just to attach one changed image…