Thank you everyone!
I used smurfier's code and have been listening to it for minutes, works like a charm!
@jsmorley:
Where do i need to put that !DisableMeasure? Calc always confuses me!
EDIT:
[Ms_CPUTempCalc]
Measure=Calc
Formula=Ms_CPUTemp<Ms_CPUTempTjMax
IfAboveValue=0
IfAboveAction=!EnableMeasure cCalc
IfBelowValue=0
IfBelowAction=!DisableMeasure cCalc
Like this?
It is currently June 26th, 2024, 3:13 am
Repeat IfAboveAction in regular intervals
-
- Posts: 126
- Joined: August 12th, 2011, 12:30 pm
-
- Developer
- Posts: 2701
- Joined: November 24th, 2011, 1:42 am
- Location: Utah
Re: Repeat IfAboveAction in regular intervals
Correct me if I am wrong, but I believe you would want it to be "IfBelowValue=1"....or "IfEqualValue=0" and "IfEqualAction".
Conditional operators result in 1 for true, and 0 for false.
-Brian
Conditional operators result in 1 for true, and 0 for false.
-Brian
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Repeat IfAboveAction in regular intervals
Code: Select all
[Ms_CPUTempCalc]
Measure=Calc
Formula=Ms_CPUTemp<Ms_CPUTempTjMax
IfAboveValue=0
IfAboveAction=!EnableMeasure cCalc
IfBelowValue=1
IfBelowAction=!DisableMeasure cCalc
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 126
- Joined: August 12th, 2011, 12:30 pm
Re: Repeat IfAboveAction in regular intervals
Thank you! You are right of course, it was past 1 AM so my brain was already half asleep!