• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Data Point - No Update "Alarm"

    User help
    5
    20
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TurboT
      Turbo @mihairosu
      last edited by

      @mihairosu Heya: Is there a reason you're not using the "no update" event style type built into the Mango event creation stuff? That will let you just let Mango do that- We use these alarms extensively to detect "stuck" data points:

      daea8489-e4d8-4827-8130-159ee59d3e63-image.png

      M cwangvC 2 Replies Last reply Reply Quote 1
      • M
        mihairosu @Turbo
        last edited by

        @Turbo It's been a while since I've re-visited our Mango installation.

        We did have an event handler for this, but I want to be able to pull this event handler as a data point into a dashboard.

        I don't think the event handler create a data point that I can reference from what I can tell.

        I just deleted and re-created this event detector, but it did not create a new data point.

        TurboT 1 Reply Last reply Reply Quote 0
        • TurboT
          Turbo @mihairosu
          last edited by

          @mihairosu Yeah- The event handlers don't create new points, but you should be able to use the event list right in your dashboard- I've never done this, but it seems like it should be possible.

          TurboT 1 Reply Last reply Reply Quote 0
          • TurboT
            Turbo @Turbo
            last edited by

            @mihairosu Now that I mention that- If you just show the value, in the dashboard, the Event handler little <!> symbol will show up next to it if it gets stuck. At least, it does on our values in the dashboard that have an event created.

            MattFoxM M 2 Replies Last reply Reply Quote 0
            • MattFoxM
              MattFox @Turbo
              last edited by

              If I may, if having a point show on the dashboard is critical, use the aforementioned event handler Turbo described and on active and off use it to set a virtual datapoint to true and false, then display that point as you desire.

              Fox

              Do not follow where the path may lead; go instead where there is no path.
              And leave a trail - Muriel Strode

              M 1 Reply Last reply Reply Quote 0
              • M
                mihairosu @Turbo
                last edited by

                @Turbo Ah I see. Well my final goal is to change the color of a dashboard element but I'm going about it step by step, and seeing if there's any other way.

                Our dashboards are displayed on some screens, but I'll have to test and see how they look when they're not updating.

                1 Reply Last reply Reply Quote 0
                • M
                  mihairosu @MattFox
                  last edited by

                  @MattFox Ooooohhh that would work, yes. I think I like this method.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mihairosu @mihairosu
                    last edited by

                    @mihairosu I guess I already have these meta data points existing.

                    How do I delete the existing script so I can just set it using the event handler?

                    I can't seem to be able to simply delete the script and save the point.

                    6fbd3e8f-b1f1-4383-bad0-884b30aee272-image.png

                    TurboT MattFoxM 2 Replies Last reply Reply Quote 0
                    • TurboT
                      Turbo @mihairosu
                      last edited by

                      @mihairosu For a metapoint, you need something in the script- You can just return the input value- Set variable name to my, set your input to update the context, and then just "return my" in the script body. This creates an empty meta point that just returns the value that you originally put into it.

                      1 Reply Last reply Reply Quote 0
                      • MattFoxM
                        MattFox @mihairosu
                        last edited by MattFox

                        @mihairosu

                        1. Create your virtual datapoint
                        2. Go to the datapoint list in the datasource page for the datapoint you are monitoring
                        3. Click on the menu at the far right on the datapoint in question and select event handlers,
                        4. set event type to no update
                        5. add the type to set point and choose your virtual datapoint

                        Do not follow where the path may lead; go instead where there is no path.
                        And leave a trail - Muriel Strode

                        1 Reply Last reply Reply Quote 0
                        • cwangvC
                          cwangv @Turbo
                          last edited by

                          @Turbo
                          this is new feature.

                          1 Reply Last reply Reply Quote 0
                          • CraigWebC
                            CraigWeb
                            last edited by

                            @mihairosu
                            new Date() returns a date object.
                            The method requires a timstamp pointValuesSince(timestamp, cache): PointValueTime[],

                            I didnt have the time to test this but this is what I think you script should be:

                            var now =  Date.now() //returns the timestamp of now
                            var minuteAgo = now - 60000//the timestamp of 1minute ago
                            
                            var data =  p.pointValuesSince(minuteAgo, true);
                            if(data.length > 0) return 0
                            return 1
                            
                            M 1 Reply Last reply Reply Quote 0
                            • M
                              mihairosu @CraigWeb
                              last edited by

                              Thank you everyone.

                              I was able to figure out that I needed to create the Event Detectors / Handlers and Virtual Points on the same device on which the data originates (a remote MangoGT). Then I can push the virtual data points I am interested in to our central server.

                              I was trying to do this on our central server, and create an event detector on one of the points being synced via persistent TCP sync, but it was not working there.

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mihairosu @mihairosu
                                last edited by mihairosu

                                @mihairosu

                                I am having issue with the "No Update" event detector. It seems to be malfunctioning.

                                This is on Mango v3: core 3.7.12.

                                Here's what I'm trying to do:

                                Action Logic.jpg

                                This same logic is applied to 5 different points, but some of them (currently 2) seem to be malfunctioning. I am showing an example of 1 of 2 that are not working at this moment.

                                Here is the device: BoilerMember3 and the data points.

                                The event detector is located on Alarm Status. As can be seen, the point is being updated every 15 sec and the most recent data is from 15:18:00, which is up to date, as seen on this screenshot.

                                BoilerMember3 Updated Data.png

                                The alarms page shows that this point's event detector, which is No Update, has been Active for 1.21 days ago, because of "target point is missing or disabled":

                                Alarm No Update.png

                                Data point is enabled:

                                c4d52dab-fe56-4410-941c-fb993aa2bbdc-image.png

                                Event detector is set:

                                BoilerMember3 Event Detector.png

                                Event handler is set to change a virtual data point:

                                Boiler Member 3 Event Handler.png

                                Configuration of the virtual data point:

                                Communication Status Point.png

                                However, as can be seen in the first screenshot, this data point is now set as Active and this "Communication Failed", but this is incorrect because the Alarm data point has recent data and has been updating properly.

                                MattFoxM CraigWebC 2 Replies Last reply Reply Quote 0
                                • MattFoxM
                                  MattFox @mihairosu
                                  last edited by

                                  @mihairosu your event types are set to no change in that picture. If the value is the same then alarm will be triggered.

                                  Fox

                                  Do not follow where the path may lead; go instead where there is no path.
                                  And leave a trail - Muriel Strode

                                  1 Reply Last reply Reply Quote 0
                                  • CraigWebC
                                    CraigWeb @mihairosu
                                    last edited by

                                    @mihairosu ye as @MattFox mentioned your current detector only looks for a change in value, using a no update is what you should be using. An update is considered a successful poll for polling data sources or a successful parse of a new value for listening data sources even if the point does not get logged.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      mihairosu @CraigWeb
                                      last edited by

                                      @CraigWeb

                                      Uh oh, that's a mistake on my part.

                                      Thanks for catching that!

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post