# Search the Community

Showing results for tags 'multiple signals'.

• ### Search By Tags

Type tags separated by commas.

### Forums

• Community Technical Forums
• General Seeq Discussions
• Training Resources
• Product Suggestions
• Seeq Data Lab
• Community News
• Seeq Blog Posts
• News Articles
• Press Releases
• Upcoming Events
• Resources

### Calendars

• Community Calendar

### Categories

• Seeq FAQs
• Online Manual
• General Information

• Published
• Code
• Media

• 0 Replies

• 0 Reviews

• 0 Views

### Level of Seeq User

Found 4 results

1. While Seeq is working towards enhancing our features in the Histogram tool, here are a simple workaround commonly used to create a histogram for multiple signals with display times in chronological order. Step 1: Start by loading all of the signals we want to include in the matrix into the display. Step 2: Create a monthly condition with a property that split the years and months (YYYY-MM) from the initial date format (YYYY-MM-DDT00:00:00Z) using the formula tool. Formula 1 - month_withProperty \$monthly = months("Asia/Kuala_Lumpur") //split the years and month of the data \$monthly .move(8hrs) //move based on specific timezone example the timezone used here is UTC+8 .transform(\$capsule -> \$capsule.setProperty('month_year',\$capsule.property('start').tostring().replace('/(.*)(-..T.*)/','\$1'))) Step 3: Combine the aggregate calculation for the multiple signals in a formula. Formula 2 -combine the aggregate calculations, example here is based on average. //Step 1: calculate monthly average for each signals \$monthlyaverageA = \$t1.aggregate(average(),\$month_withProperty, startKey(),0s) \$monthlyaverageB = \$t2.aggregate(average(),\$month_withProperty, startKey(),0s) \$monthlyaverageC = \$t3.aggregate(average(),\$month_withProperty, startKey(),0s) //Step2: combine all the discrete points and move each signal by 1,2 and 3 hours to have different time stamp. Please refer combinewith() formula documentation. combinewith( \$monthlyaverageA.move(1hr), \$monthlyaverageB.move(2hr), \$monthlyaverageC.move(3hr)) Step 4 : Create condition for each average temperature signals and use setProperty() function to set the naming for each signal. //Step 1: calculate monthly average for each signals \$monthlyaverageA = \$t1.aggregate(average(), \$month_withProperty, startKey(),0s) \$monthlyaverageB = \$t2.aggregate(average(), \$month_withProperty, startKey(),0s) \$monthlyaverageC = \$t3.aggregate(average(), \$month_withProperty, startKey(),0s) //Step2: combine all and create condition for each discrete points and set the property accordingly. combinewith( \$monthlyaverageA.move(1hr).toCapsules().setProperty('Mode','Area A'), \$monthlyaverageB.move(2hr).toCapsules().setProperty('Mode','Area B'), \$monthlyaverageC.move(3hr).toCapsules().setProperty('Mode','Area C')) Step 5: Create the histogram as shown in the screenshot below. The colour for each signal can be changed by selecting the legend box on the top right side of the histogram. For users who would like to split the quarter_year or year_week, please refer to the formula below. Formula to split quarter_year \$quarter = quarters(Month.January, 1, "Asia/Kuala_Lumpur") \$quarter.move(8hrs)//move based on specific timezone, example used here is UTC+8 .transform(\$cap -> { \$year = \$cap.startKey().toString().replace('/-.*/','') \$quart = \$cap.property('Quarter').toString() \$cap.setproperty('Quart',\$year+' '+'Q'+\$quart)}) Formula to split year_week //Set up formula for \$week_counter = (timesince(years("UTC"),1wk)+1).round() //The aim is to add '0' in front of single digit number so that the sequence in histogram 01, 02,....10, \$weekLessThan10 = \$week_counter < 10 \$signal1 = \$week_counter.toString() \$signal2 = toString('0').toSignal() + \$signal1 \$new_week_counter = \$signal1.splice(\$signal2,\$weekLessThan10 ) \$weekly_capsule_embedded_property = \$new_week_counter.toCondition() //Setting the year and week property //\$year - the function here meant to extract the year //\$week - the embedded Value is XX.0wk - remove the .0wk //set new property of year_week \$weekly_capsule_embedded_property.removeLongerThan(8d).transform(\$cap -> { \$year = \$cap.startKey().toString().replace('/-.*/','') \$week = \$cap.property('Value').toString().replace('/\wk/','') \$cap.setproperty('Year_Week',\$year+' '+'W'+\$week)}) You can also check this post to create histogram with hourly bins.
2. Has anybody attempted to calculate equivalent or factored gas turbine starts and/or hours? Something similar to GE's GER3620RevP document on pages 35-36. Looking for tips or best practices as our company uses multiple fuel types and operating profiles. Our corporate-level operating data historian is not always the best, necessitating the use of multiple signals to determine a turbine start or stop.
3. There are various methods to do this. The easiest method is by using the max() or min() functions in the Formula Tool, which are available beginning in Seeq release R21.0.40.05. Here is an example for creating a new signal which is the maximum of 4 other signals: \$a.max(\$b).max(\$c).max(\$d) You can also see additional information in this related forum post.
4. ## Create a signal that is the greater of two signals

This question comes up fairly often, so I thought best to put one solution in the forum. Please feel free to suggest other approaches. Say you have two temperature signals and you want a third signal that shows always uses the larger value of the two. The logical thought is an if statement, e.g., in pseudo-code: If temperatureA > tempertureB then temperatureA else temperatureB So the question often hits Seeq support, as "How do you do an IF statement in Seeq". Seeq, at this time, does not have IF statements, but we have some techniques to achieve the same thing. For this particular example, we'll do some signal math, a value search, and then a splice. The if statement is effectively done by the value search. So, here's one approach to solve this problem: Here are the two temperatures plotted, we want to create a 3rd signal that always uses the greater of the two. The next two steps are: Subtract the two temperatures, and do a value search on the results. The value search identifies regions where the blue trace is greater than the green trace. There's one point of caution, and that is the maximum capsule duration. That has to be long enough to capture the periods where the 2nd temperature is less than the first. The last step is use splice to create the 3rd signal. The logic of splice is "use the green signal, except where ever there's a 'B greater than A' capsule, splice in the blue signal". There's an option on splice to blend in the transitions, I did not use that in this example. Here's the splice and the results: Please comment here if you have any questions or have a better way of doing this.
×