Jump to content

Michelle

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Michelle

  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. 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')

    image.png.487cfd683d6ad694bf11774507ed233d.png

     

    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
×
×
  • Create New...