Chart's not working
-
By downloading a failing series you are referring to that function to download the point data from the data_point_detail page, from mango interface? I've downloaded an excel document for the both points, from both MangoES, and I don't have any NaN or Infinity, only numbers.
Yeah, or the watchlist or the new data point details page. Any place would have worked. The /data_points_details.shtm page does let you download the raw data.
Hmm. Then let's consider maybe your browser has cached something on the unit that is not working. Have you tried clearing your site data? If you do a hard refresh or open the page with the developer tools open and 'disable cache when developer tools are open' checked, that would work too.
After that there's really not a lot left than checking your Mango/overrides/ directory to see if anything is different. Or dropping a breakpoint where you're populating that array and stepping around to see which call is getting you different arrays.
-
@phildunlap I'm working a lot with the developer tools, and I clear the cash often.
Just now I've noticed that on that MangoES where the points are not working properly I have a lot of discarded polls, 99%.
Both MangoES get the data from the same PLC via BACnet IP, it's this a problem?
-
So one of your data sets is much sparser?
Literally the same PLC or just the exact same model of PLC? If literally the same PLC and they're on the same network it would be an error to have your local devices using the same local device ID. I'm not sure exactly how that would manifest, but I wouldn't think that it having sparse data is the answer to why it is null in your code, unless your setup requires there to be values to populate that array (not using a rollup that would have a value even without a value in the period? Not checking that values exist?). But, I would expect no issues polling the same BACnet IP device provided the Local Device on both ES's was configured to have a different device ID. As your data sources do have the same XID for the BACnet local device config, I guess this seems somewhat probable to be an issue.
-
@phildunlap Yes, it's literally the same PLC an they are on the same network.
-
@phildunlap What do you suggest? I can give you access to both MangoES if you want to.
-
Did you fix the BACnet local device issue? You would do that on the /system_settings.shtm page in the BACnet Local Devices section. They should not have the same device ID.
I believe DiagramCtrl is your code, yes? That array where you are taking an index of an then assessing the .value of something that is undefined, have you tried to examine how that array got populated? It's generally not sustainable for us to log into customer systems to troubleshoot customer code for free, but if you want to email the credentials to support@infiniteautomation.com we may choose to look without making any guarantees implied or otherwise.
I suggest focusing on why the array you think has things in it does not. And fixing the BACnet local device IDs to be different. It doesn't sound like it's an issue with our code, since you can fetch the values from the tools we provided to get the data. It's in the array you've built that the issue is, it seems.
-
@phildunlap Hi, I've made the changes in the /system_settings.shtm page, I changed the Device ID and the Data Source XID but I get a lot of discarded polls...
Any idea why?
Thank you!
-
Is it reading the values when it is not discarding the polls? Is it reliably the same device discarding the polls? If so I would encourage you check the wiring of the whole setup. If you disconnect the one that is not discarding polls, does anything change for the one that is?
-
@phildunlap Yes, is reading the values when is not discarding the polls.
I've noticed that if I change the Data Source XID, 6 minutes after I've changed the XID the Data Source is working and I have successful polls but after that I get only Discarded polls.
-
That sounds like something might be getting stuck somewhere, maybe? Can you go to the
/rest/v1/threads?asFile=true&stackDepth=40
API endpoint a few time when you are experiencing the aborted polls and email the resulting json files to support@infiniteautomation.com ?If you expand the runtime status of the data source (above the properties on the data source edit page), do you see it having a completed poll recently? What is the typical poll time?
-
@phildunlap Hi, I've disconnected the other MangoES from the network, now I have only one that is getting data from the PLC, and I let it to run a while and I don't have any discarded polls.
Thank you!