Jump to content

Count the Number of Times in Each Stage


Curious George
 Share

Recommended Posts

  • Administrators

Hi Curious George-

This can be accomplished using the Histogram tool.  Follow these steps to perform the analysis:

1. Create a capsule for each stage in the process.  This can be done using the .toCapsules() function in Formula.

image.png.163c848c8b40898b861bcbea0894a4bd.png

This function creates a new capsule for every value change in the Compressor Stage signal.

 

2. Use Histogram to count the number of times in each stage.

image.png

Please let me know if you have any additional questions.

 

Lindsey

 

 

 

Edited by Lindsey.Wilcox
Link to comment
Share on other sites

  • 7 months later...
  • Administrators

Update as of R21.0.41:

As of the release of R21.0.41, the .toCapsules() operator has changed.  As of this version, the operator may be used to create a condition that contains a capsule for every valid sample in an input signal (regardless of whether the value has changed).

image.png

To create a condition that contains a capsule for every value change in an input signal (as done in the previous post), the toCondition() operator must be used.

image.png

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
 Share

×
×
  • Create New...