Jump to content

Distingushing start / stop from flow signal


Recommended Posts

I don't have string signal that identify my situation (run or stop)

image.png.44e200122a3bbf79bc6265946fb6aecf.png

SO I tried to make simple condition like this.

 

but the goal is

to be able to distinguish which one is Run signal which one is Stop signal

image.png.e289d0df3629f54649e4dbe7766ec862.png

 

so on the property set

I'll be having

Start
StDev value


Or 

 

Stop

StDev value

 

need help

 

 

Link to comment
Share on other sites

Hi zaky,

if I understood you correctly you want to have one condition that generates capsules with properties for the current mode of operation (Start / Stop) and the stddev of a signal.

You can achieve this by combining the two conditions into a single condition and calculate the stddev on that condition. Before combining the conditions you can set a property containing the mode of operation. The use of removeLongerThan() is necessary as setProperty needs a condition with a maximum duration.

$runMode.setProperty('Mode', 'Start')
.combineWith($stop.setProperty('Mode', 'Stop'))
.removeLongerThan(1mo)
.setProperty('StdDev', $signal, stdDev())

image.png.5d4e039576dfdd439820848deff9141f.png

Regards,

Thorsten

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...