Jump to content

Michelle

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Michelle's Achievements

Rookie

Rookie (2/14)

  • One Month Later
  • First Post
  • Week One Done
  • Conversation Starter

Recent Badges

0

Reputation

  1. I am trying to use data from a tag that utilizes strings (e.g. 'ON', 'OFF', 'FFWD', etc. etc.) but am receiving the below API error. I noticed that the UOM is incorrect and I believe that is why I can't pull this data to work on. Is there a way to ignore the UOM and grab the data from this tag as a list of strings vs. time? # Find the tag APC = spy.search({ "Name" : "/^tag$/", "Datasource Name": "source" }) APC # Sample calculation spy.pull(APC) Error encountered, scroll down to view ID Type Path Asset Name Time Count Pages Data Processed Result 0 0973736A-F4A7-4DC0-A8C2-758DC0E42B50 StoredSignal xxxx Tags tagTATUS 0 0 0 0 B (503) Service Unavailable - INTERNAL: Client data source exception: Error processing signal request for e5358933-f0b8-11ed-83b3-64d69ab1de78/ba208ed7-859e-49ef-ba59-a822a6d1e2d6 with start: 2024-04-18T19:30:00Z and end: 2024-04-18T20:45:00Z. Cannot convert 'ON' to type Double using UOM 'percent'. Exception: InvalidCastException Seeq API Error: (503) Service Unavailable - INTERNAL: Client data source exception: Error processing signal request for e5358933-f0b8-11ed-83b3-64d69ab1de78/ba208ed7-859e-49ef-ba59-a822a6d1e2d6 with start: 2024-04-18T19:30:00Z and end: 2024-04-18T20:45:00Z. Cannot convert 'ON' to type Double using UOM 'percent'. Exception: InvalidCastException Error found at line 2 in cell 14.
  2. Hi John, Thank you it worked! Had to set a maximum duration, is there a way where I can use the duration of my capsule instead of a fixate number? $hssp.aggregate(maxValue(), $hs.setMaximumDuration(40h), durationKey(), 0s)
  3. I am trying to only show values of the maximum difference between my temperature setpoint and PV ($hssp) within a certain period ($hrs). I used the below to set up my capsule (hopefully using the right notation) but am getting all the values during my condition range ($hrs which I identified which steps of the process to consider). $hssp.within($hrs).toCondition('Heater_Sag') I will like to ONLY show the maximum value seen during this condition range. I tried the following below but got an error message as it seems that I am not using the proper notation: $hssp.maxValue($hssp.within($hrs).toCondition('Heater_Sag')) No variant of function 'maxValue' consumes the parameters (Signal, Condition) at 'maxValue', line=1, column=7 I then tried the below and received another error message: $hd.aggregate(maxValue(), $hsis) ⬆ No variant of function 'aggregate' consumes the parameters (Signal, Stat:Sample:Scalar, Condition) at 'aggregate', line=1, column=5
  4. I am trying to create capsules for every step change that happens in 'LICTime'. The changes aren't predictable (e.g. the value could be holding for days) but I want to compare how the values differ between each step-change. Is there a way where I don't have to define how long I will like to look at these values?
×
×
  • Create New...