[Logo] Serotonin Software Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: Patriator
Forum Index » Profile for Patriator » Messages posted by Patriator
Author Message
We used to have our own Soft to collect some datas.
We'd like to take benefit of mango in a report / history / alarm way.

We planned to create a Virtual dataSource and several datapoints and then, directly from our software, update values in MangoDB.

Trouble : If we put the point in a watchlist : the value is not correct , if we look at data_point_details.shtm , same thing, only the chart looks as expected, and , after a refresh, the history.

What would be the best way to reach our goal ? Is there any way to force the datasource to 'read' the last values (found a way by toggling twice the point ... but it is a bit rude imo)
Hi,

I wish we can retrieve data from our electicity provider portal.

I thought about using HTTP Retriever data source but :
- Is there any way to I send (post) authentification datas
- in our case I can send them by the url (get) but looks like it does not work althought if I press the green arrow I sucessfully log in and see the right page.

any idea ?

any tips ?
Just tried this new jar.
write allowed points are now listed as settable.

I still get some points missing ( string) but not with all the opc servers.
Hi,

I wish I could use Mango as THE single tool for supervision of several things in our plant.

Last things I can't are on the same scheme :

- Several points behind the same automation tool
- I can get the data point only as an answer of a request contenaining a parameter.

For exemple if I want to know how many Material is:
in our silo 1 plant A I must send the string "\n001DISP\n" then everytime I end a null char I get a char of the answer.

001 is the parameter, number of the silo.

in our silo 1 plant B I must send the string "S01N\n" then wait for the answer.

01 is the parameter, number of the silo.

I currently use a own coded service, opening the serial port, asking for data then storing it in a database with the silo's number as key. This database is the mango datasource, and there is a datapoint for each silo depending of the key.

I'll get exactly the same with a OPC server. I must first write the parameter inside a tag, then the engine number inside another and then timestamp in a third one so I can get the current value of this parameter for this engine. But it is more longterm thus it seems that we can't set points nor get string tag for now with OPC DA.
Tried to add manually (with the import feature) a data point type string like that :


I get 'Unknown value type' so it find the Tag (would get a 'Unknow Tag' overwise) but can't do anything with the answer.
Mango is on a virtual Linux box so I can't answer for the localhost.
Maybe You could try with the box IP or 127.0.0.1 instead of localhost.

I tried to let domain blank and it worked fine.
But I still have some trouble :
- the browse tag don't give me any String datatype Tag
- the browse tag don't give me any settable Tag

And I've got an OPC server functionning like that :

If I want to get the parameter X on machine Y
groupReqX settable I put value Y
groupAnsX I get the value overwise I get 0

Is there any way to do that ? how ? scripting?


Succeded in some tests with this configuration:
Name and Export Id : like in all other datsources

Host : the hostname or IP adress of the OPC server
Domain user and password : Authentification information so the client can acess the server. (I made a replication server on a Windows machine and put there a window user information

Server : If all above information is OK when you click Refresh, You will get a list of available OPC servers, then choose one.

Update periode ... I guess it is explicit.

You can now save and then press 'browse tags'
You'll then get a list of available tags.
select some of then and press 'Add Tags'
You will get Data Point for all selected tags.
Got a NoClassDefFoundError : javax.el.ELException

Does sombody got it too?
Maybe my old Tomcat (5.5.23) is the source of trouble.

Any clue ?

I'll try to find the jar (JSTL I guess and then try to downgrade it.
Thanks a lot. I do it ASAP.
I Know that IE8 is not in the Supported Browsers list.

Anyway, Here is my problem : On IE8, if I use a dynamic graphic (vertical level feg) It is always displayed empty.

Any idea about was going wrong?
Hi,

Just asked an employee to make a french translation.
when I put this file in mango and make it usable, I've got trouble with french chars : é à ...
If the letter is in a DataPoint , no problem.
It it is in the translation file I get an ? ...

I think it as something to deal with Tomcat conf but not sure.

Using tomcat6 / java 1.6 OpenJDK / fedora 11
locales are fr_FR.UTF-8
Well I finally did it via CustomView ...
Things were easier once I realize that code I can add between <view:scriptPoint> and </view:scriptPoint> was the code for the
function(value, time) and should be in javascript.

So my code looks like that :

in a js file the declaration of my function.

in the jsp :

Did not find the clue for using textrenderer.
Is there any exemple , doc ?

I guess that if I define a text renderer I'll be able to use it several times and that's exactly the point.

the other thing is that my points are from a modbus datasource... I'll have to create Meta-Points.
Got some datapoints for retrieving error codes ( int
Wish to offer a view with errors in plain text.

thought about using customview with a function let's say
String V(int code , String lang)

and in viewpoint something like :

if(value == "0") image = greenflag
else
image = redflag
out.println(V(value.parseInt() , lang));

but got an error saying that my function does not exist.
where/how can I declare my function?

on another hand,
Is there any way to declare 'transformation scripts' on datapoints in mango. Let's say ScriptA.

and then custom Datapoint as the result of applying ScriptA on another datapoint.

something like MetaDatasource or pointslink , but with the same script for all points.
No copy/Paste
 
Forum Index » Profile for Patriator » Messages posted by Patriator
Go to:   
Powered by JForum 2.1.9 © JForum Team