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.

  • Frequency of a time series data

    6
    0 Votes
    6 Posts
    3k Views
    terrypackerT
    Alright. Here is a module that is only partially finished but does have a way to plot the Frequency Spectrum for a given point. Only Numerical points are allowed, and Mango Core Version 2.1 or higher is required. To use it just go to the control toolbox icon and navigate to the Signal Processing Tab. Then select your point and select the number of previous samples to use for the DFT. Press Generate and you should see 2 graphs. The top chart is just the signal plotted against time, the lower chart is the DFT and the peaks are in Hz. The DFT will calculate your sample rate based on the data, so if you have changed poll periods recently then you should wait because the sample period won't be stable and the results will be skewed. Also note that all DSP Theory applies here so you have to sample at least 2x as fast as the highest frequency you want to detect. So if you are looking for a 2Hz signal you will need to sample at 4Hz (250ms poll Period). Realistically you will need to sample much faster to get quality results. Remember that Frequency = 1/Sample Period in seconds. Another note on sample numbers, you will need at least enough samples to reproduce one full cycle of the signal you are searching for. So low frequency signals will take more sample time to detect as higher frequency signals will take less. For example a 2Hz signal has a period of 500ms, so as above you will need to sample at at least 250ms for a duration of 500ms. But for quality results you would sample for longer faster. I am successfully detecting a pure 10Hz signal by sampling at 5ms as you can see in the attached image. Mango's fastest sample rate is 1ms so you won't be able to detect signals faster than 500Hz reliably, unless modifications are made the Core code. The code for the module is here: https://github.com/terrypacker/mango-modules Attachment: download link
  • Please help!! why like this

    3
    0 Votes
    3 Posts
    2k Views
    phildunlapP
    Is this a new installation? If so, you could just delete your database and start over. If not, has anything in your configuration (Mango Automation/classes/env.properties or MA/overrides/properties/env.properties) file been changed? Does this occur every time you open Mango, after restarting the computer etc?
  • PID Loop with Mango? proportional-integral-derivative controller

    4
    0 Votes
    4 Posts
    3k Views
    terrypackerT
    Alex, Depending on your level of coding ability you could check out the ControlToolbox module I wrote here: http://github.com/terrypacker/mango-modules It hasn't been tested in any real world applications yet and the documentation for it is limited. But if you did use it I could give you some information on it and get it tuned up and working better with your feedback. It currently only has support for PID loops but the plan was to add other algorithms to it over time.
  • Data points stopped when updating data point info mango crashes

    13
    0 Votes
    13 Posts
    6k Views
    C
    Hi, thank you for the investigation and help. I tried the other dlls as suggested and unfortunately the issue remains with same error msgs. any other suggestions? thank you for your help! :)
  • Question concerning the versions of Mango and theses licences

    7
    0 Votes
    7 Posts
    5k Views
    phildunlapP
    Most of the context help popups exist on our wiki (all the core ones, for sure). You can access the scripting datasource help at http://wiki.infiniteautomation.com/doku.php?id=scripting_data_source
  • How SQLDS "update statement" example in "point details" works

    4
    0 Votes
    4 Posts
    2k Views
    R
    Thank you for your information. I will try it out.
  • Session timeout

    13
    0 Votes
    13 Posts
    5k Views
    JoelHaggarJ
    You'll probably have to just set it really high. You many also need to make sure the browser isn't going to sleep. If the browser is active it should not time out, the time out only applies ones the browser goes inactive. Joel.
  • Bug report modbus serial

    6
    0 Votes
    6 Posts
    4k Views
    A
    I've installed it using sudo apt-get install librxtx-java on Ubuntu 12.04. I am not familiar with Java unfortunately and it's infrastructure, so consider me a dumb user. I have a modbus serial source setup and it seems to work fine (ie. I get he frequency from the inverter). But it seems each time it will create the following error in the log: Oct 23 23:59: 'Modbus': Exception from modbus master: No recipient was found waiting for response for key com.serotonin.modbus4j.serial.SerialWaitingRoomKeyFactory$TransportSyncWaitingRoomKey@1 UrgentOct 23 23:54: 'Modbus': Exception from modbus master: No recipient was found waiting for response for key com.serotonin.modbus4j.serial.SerialWaitingRoomKeyFactory$TransportSyncWaitingRoomKey@1 UrgentOct 23 23:49: 'Modbus': Exception from modbus master: No recipient was found waiting for response for key com.serotonin.modbus4j.serial.SerialWaitingRoomKeyFactory$TransportSyncWaitingRoomKey@1 UrgentOct 23 23:44: 'Modbus': Exception from modbus master: No recipient was found waiting for response for key com.serotonin.modbus4j.serial.SerialWaitingRoomKeyFactory$TransportSyncWaitingRoomKey@1 UrgentOct 23 23:39: 'Modbus': Exception from modbus master: No recipient was found waiting for response for key com.serotonin.modbus4j.serial.SerialWaitingRoomKeyFactory$TransportSyncWaitingRoomKey@1 UrgentOct 23 23:34: 'Modbus': Exception from modbus master: No recipient was found waiting for response for key com.serotonin.modbus4j.serial.SerialWaitingRoomKeyFactory$TransportSyncWaitingRoomKey@1 UrgentOct 23 23:29: 'Modbus': Exception from modbus master: No recipient was found waiting for response for key com.serotonin.modbus4j.serial.SerialWaitingRoomKeyFactory$TransportSyncWaitingRoomKey@1 UrgentOct 23 23:24: 'Modbus': Exception from modbus master: No recipient was found waiting for response for key com.serotonin.modbus4j.serial.SerialWaitingRoomKeyFactory$TransportSyncWaitingRoomKey@1
  • Publisher HTML Sender Test Error

    2
    0 Votes
    2 Posts
    2k Views
    A
    I am not sure if it's me who's doing it wrong or if there is an error. When I hit HTTP Send Test / Send Static Data it shows "Sending..." and will stay like this until I hit cancel. I also get the following error WARN 2013-10-21 12:20:07,223 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:176) - Javascript error Description: TypeError: PublisherEditDwr.httpSenderTest is not a function Page: http://192.168.0.171:8080/publisher_edit.shtm?pid=1 Line: 567 Browser name: Firefox Browser version: 23 osName: Windows location: http://192.168.0.171:8080/publisher_edit.shtm?pid=1 Apart from this, what I am trying to do is to post some info via HTTP GET to a Cai WebControl board. The URL would be http://192.168.1.15/api/seturom.cgi?uromid=1&value=23456789 But I am using a password, so maybe http://admin:password@192.168.1.15/api/seturom.cgi?uromid=1&value=23456789 Or using static HTTP headers. That's what I am trying to figure out. Under Static Headers I entered Authorization=Basic YWRtaW46cGFzc3dvcmQ= (The string is base64 encode of "admin:password") Is what I am doing about right? Eventually what I am trying to do is update a value as above on a certain event (ie. HTTP Retriefer receives an alarm). Alex
  • SNMP Trap Event Handler

    2
    0 Votes
    2 Posts
    2k Views
    ricardoR
    Hi, I understand there are currently three types of event handlers: Email handlers: send email messages to lists of recipients Set point handlers: cause a settable point to be set with a given value Process handlers: cause the given O/S process to be executed However, can we create a SNMP trap handler? Or can we create one from Process handler? BR, Ricardo
  • Profibus

    3
    0 Votes
    3 Posts
    2k Views
    JoelHaggarJ
    Hi Duncan, We currently do not have a Profibus module but we are always looking to add new Data Sources. If you can provide some protocol specifications I can work out an estimate of what it would cost to develop. Thanks, Joel.
  • How to implement a filter algorithm

    7
    0 Votes
    7 Posts
    4k Views
    phildunlapP
    Most of the available data is documented in the help question mark on the page. I went to the source code for the 'firstValue' attribute, which is not listed in the help document. The public repo can be seen at www.github.com/infiniteautomation
  • Timestamp from database on x-axis

    3
    0 Votes
    3 Posts
    2k Views
    phildunlapP
    In both DGLux and Mango Graphical Views, history queries in the form of charts automatically convert it to human readable formats for the time range. If you're up to something more complex, it probably depends on that. The easiest way to convert an epoch into something human readable is with the Date object's constructor in a script.
  • Problem setting dataPoint value from script or metadata

    6
    0 Votes
    6 Posts
    3k Views
    phildunlapP
    @bitelxux said: I tried to read scripts help but something wrong in my installation shows "scheduled events" help ... Most peculiar... Well, you can find the same documentation available in those help tips at our wiki. Specifically for the scripting module, the documentation can be found: http://wiki.infiniteautomation.com/doku.php?id=scripting_data_source
  • Modbus TCP

    3
    0 Votes
    3 Posts
    3k Views
    phildunlapP
    It sounds like you've got everything going in the right direction so far. Did the DEEPsea 8610 come with a manual? Somewhere there should be a register mapping, as well as information about how that modbus is storing its information (this is the 4_BYTE_FLOAT_SWAPPED and such, it's a drop down data type field in Mango). You will need to configure a data point for each of the points you'd like logged, and knowing that data type is the most important thing for turning "1ff0" into whatever its data type is. I think you're operating with a 2 Byte Int data type (a total guess based on those 2 and 3 values). However, without knowing what kind of data is supposed to be in those fields (which would be supplied by the manual) it is very difficult for me to guess what the actual data type for your board is since I have no idea what those numbers ought mean.
  • Error on display dynamic graph of sstGraphics in anonymous access

    4
    0 Votes
    4 Posts
    2k Views
    H
    I have the same problem! I've tried to upgrade to the new version but get a system error when trying to access public view. (error on line 37)
  • Modbus/TCP realtime, HTTP offline

    2
    0 Votes
    2 Posts
    2k Views
    P
    Hi all We ve been able to configure Mango in order to acquire periodically a copule of datapoints via ModBus/TCP. Our remote device (http://www.equadro.com/Prodotti.php?Action=Vedi&id=4) has Ethernet and GPRS connectivity. If/When our device is offline, we use to collect and store locally our points, and then we normally upload them to a server once connection is restored. We store our measurements in internal filesystem. Please notice that we can encode our variables in any format, eg labeling them (MODBUS/TCP: INREG: OFFSET=0x00: VALUE=xxxxx) and upload them via TFTP to same server who hosts Mango. My question is, is it possible for Mango to parse this file, extract datapoints ane merge them with valued red (maybe 6 hours before, when our device was online) via Modbus/TCP ? Thank you for your help, Paolo
  • Modbus TCP scan causes error message

    6
    0 Votes
    6 Posts
    3k Views
    JoelHaggarJ
    Make sure you are using the Mango core 2.0.6 and modbus 1.4.2 Java 1.7 should be fine.
  • Mod bus tcp limitation on the free version ?

    3
    0 Votes
    3 Posts
    2k Views
    JoelHaggarJ
    Yes this is a limitation of the free Modbus Module for Mango Automation.
  • Activating outputs in data sources

    3
    0 Votes
    3 Posts
    3k Views
    S
    Hi, Check out the scripting or meta data sources. You can run scripts and do quite a lot. Cheers,