Jump to content

Create Table View of string signal and duration at each value


Recommended Posts

  • Super Seeqer

Here is an example of how to convert a String signal into a table where each row contains information on the start / end time and total duration of each time the string signal changed values 

Step 1: Convert your string signal into a condition inside of Formula 

$signal.tocondition()     -> This formula creates a new capsule every time that the string signal changes value regardless of how many sample points have the same string value. 

image.png

 

Step 2: Create a table view of the condition. Select the "Tables and Charts" view and the "Condition" mode 

image.png

Step 3: Add Capsule properties as values to the table. To add the "Value" property which is the value from the string signal type in "Value" into the Capsule property statistics table. You can also select the duration here 

image.png

Final Product 

image.png

  • 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...