12-03-2021 04:29 PM
i have to Monitor the last three temperature readings, if i get three “High” temperatures in a row the Emergency LED light. The temperature has been too high for three (or more) successive readings). Once the temperature changes back to something other than high else the light off.
this is my attempt
12-03-2021 05:28 PM
12-03-2021 05:35 PM
@jiji_830 wrote:
this is my attempt
No, that's just an image. If you want help, attach your VI.
12-06-2021 06:24 PM
could someone help me to figure it out , I still not got it .thank you
12-07-2021 09:39 AM
Try wiring the output of your comparison to the Shift Register. You should also initialize the all of the Shift Register values to FALSE. Then you can use the Compound Arithmetic Node in the AND configuration to see if all of the 3 previous values are TRUE. You can wire that result straight to your indicator.
12-07-2021 09:53 AM - edited 12-07-2021 10:17 AM
@jiji_830 wrote:
could someone help me to figure it out , I still not got it .thank you
Sorry, I don't have LabVIEW 2021 here, but see if this can give you some ideas:
(Make sure you fully understand every single element!)
Note that this is scalable code. For example if you later want to modify it so the LED goes on only if the last 1000 reading are above a certain threshold, all you need to change is a single diagram constant (which one?). In your original code picture, you would need a diagram the size of a skyscraper! Of course for large histories there are even more efficient solutions. You figure it out 🙂 )