Jump to content

Create a String Signal that Shows the Different Operational Modes in a Device at each Time


Sepide

Recommended Posts

  • Seeq Team

Goal is to create a string signal that  shows the different operation modes in a device at each time.

Step 1. Create the sample modes using Values Search Tool, Advanced Search: Value Search Tool, Advanced Search

image.png

Step 2. Create a continuous condition called “Mode” comprising all three (startup, steady state, shutdown), and assign a property to each capsule to identify the mode.  

for more information please look at the following link: Set property to a capsule 

Formula for creating the mode with property condition: 

$ShutDown   = $Shutdown.setProperty("Mode", "ShutDown")
$StartUp     = $Startup.setProperty("Mode", "StartUp")
$steady = $Steady.setProperty("Mode", "Steady")


combineWIth($StartUp, $steady, $ShutDown)

image.png

Step 3. Use the Formula Tool to create a string signal using the "mode with property" condition and shows the mode of the input signal at each time. 

Here is the formula for creating the string signal (Mode is the Mode with property condition in here)

$inputsignal.transformToSamples(  $capsule -> sample($capsule.getStart(), $capsule.getproperty('Mode')), 10d)

image.png

 

Edited by Sepide
  • Like 1
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...