Jump to content

nurhazx

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by nurhazx

  1. Hi, how to add signal for each parameter from seeq to asset trees?

    my_tree = spy.assets.Tree('My Tree', workbook='My Workbook') 
    
    my_tree.insert(children=['Pump A', 'Pump B'],
                   parent='My Tree')
    
    my_tree.insert(children=['Flow', 'Pressure Suction', 'Pressure Deischarge', 'DP Strainer', 'Fluida Temperature'],
                   parent=['Pump A', 'Pump B'])
    my_tree.visualize()
    

    image.png.79a0344018c36f31887d829f53b88455.png

  2. Hi, 

    I am trying to create monthly average data by ignoring the downtime condition (signal less than 60).

    I am using formula :

    Quote

     

    $signal=$bt.remove($d)

    $signal.aggregate(average(), $ar, startKey(), 500d).toDiscrete()

     

    $d= downtime condition

    $ar= monthly capsule

     

    The value from formula is different from manual averaging as shown in pic below.

    image.png.ff43fd7b4cdc3711cc98a845814dc3d9.png

    Could anyone help me to explain the difference?

     

    Many thanks

  3. Hi All,

     

    I want to calculate total duration of running machine between strainer replacement.

    I am trying with formula below but getting error.

    $series.setMaximumDuration(500day).aggregate(totalDuration("h"), $capsules.setMaximumDuration(500day), startKey(), 500day).toStep()

     

    Note:

    Purple capsule is a running condition

    Yellow capsule is a time range between strainer replacement

    Red capsule is a strainer replacement period

    image.thumb.png.14bf1dd87dfe4e58b44e3cac7f9aa0e3.png

  4. I created scorecard when the signal reach high alarm.

    $f=($signal < $alarm).afterStart(1s)

    $f.toSignal('End').toLinear(1d).toString()
    .replace('/(?<year>....)-(?<month>..)-(?<day>..)T(?<hour>..):(?<minute>..):(?<sec>..)(?<dec>.*)Z/' , 
               '${month}-${day}-${year} ${hour}:${minute}')

     

    The value comes out like this

    image.png.ae1e1946a10311547ba2a9c70dcc634c.png

    I want to change the date format

  5. Oh sorry, my mistake. I mean this formula.

    //Below transform is Optional to view the timestamp in a neater format of MM/DD/YYYY HH:MM
      .replace('/(?<year>....)-(?<month>..)-(?<day>..)T(?<hour>..):(?<minute>..):(?<sec>..)(?<dec>.*)Z/' , 
               '${month}/${day}/${year} ${hour}:${minute}')

    I want to show the scorecard value as a date "20 April 2022" like this.

  6. Hi, I'm trying to create forecast when the pressure will reach low alarm after last top up (top up indicate with red mark in pic below)

    image.thumb.png.cf810fa8a450e9863bb4271cf6517cc5.png

     

    Now, I'm temporary using this formula:

    $signal.agileFilter(10min).forecastLinear(3d, 1 mo)

    But this formula will calculate the forecast with 3 days ago data, not the last top up.

    Is there another way to create the forecast based on specific signal value? not a fixed day?

    Thank you

×
×
  • Create New...