equinor / aga8calc Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Describe the bug
Errors appear in the log file every time the service is started, even if the startup and connection to the OPC server goes fine.
2019-11-06 12:40:46.1764|INFO|Aga8CalcService.Heartbeat|1|Starting service.|
2019-11-06 12:40:46.2484|INFO|Aga8CalcService.Aga8OpcClient|1|Create an Application Configuration.|
2019-11-06 12:40:47.2634|INFO|Aga8CalcService.Aga8OpcClient|1|Discover endpoints of opc.tcp://127.0.0.1:49320.|
2019-11-06 12:40:48.6600|INFO|Aga8CalcService.Aga8OpcClient|1|Selected endpoint uses: Basic256|
2019-11-06 12:40:48.6757|INFO|Aga8CalcService.Aga8OpcClient|1|Create a session with OPC UA server.|
2019-11-06 12:40:55.3505|ERROR|Aga8CalcService.Heartbeat|10|Opc error.|Opc.Ua.ServiceResultException: Bad
at Opc.Ua.Client.Session.ReadValue(NodeId nodeId)
at Aga8CalcService.Heartbeat.TimerElapsed(Object sender, ElapsedEventArgs e) in C:\Appl\src\Aga8Calc\Aga8CalcService\Heartbeat.cs:line 41
The same error is repeated an arbitrary number of times.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors should appear for a normal startup of the service.
Desktop (please complete the following information):
Describe the solution you'd like
Refactor the pressure_tag and pressure_unit elements into something like:
<Pressure Tag="ns=2;s=1:AI1001?Pressure" Unit="barg">
Do the same for:
Additional context
See PhaseOptDcs
Hello in advance, where is located aga8.dll ? thanks
Describe the solution you'd like
The API for the AGA8 library will change soon™.
Link to branch
Use the new API that returns all of the parameters in a struct.
Is your feature request related to a problem? Please describe.
It should be possible to select the OPC server endpoint to connect to.
Describe the solution you'd like
A new entry in the configuration file to select endpoint.
If no endpoint is defined in the configuration file, the current functionality should be used i.e. connect to the "best" endpoint. If an endpoint is defined, but does not exist on the server, it should exit with a FATAL log message.
Running the application and communicating with an opc server should be tested.
Add an opc server to the test project, and create simulated data on the opc server
that the Aga8Calc application can read from and write to.
The behavior of Aga8Calc should be automatically verified.
Add a global option to disable writing to OPC server.
Since Topshelf has been archived it should be replaced by something else.
For example Worker services.
Describe the solution you'd like
Use Opc.Ua.Client.ReadValues()
to read all values from OPC server in one go. This is much faster than using Opc.Ua.Client.ReadValue()
to read one value at a time.
Additional context
See PhaseOpt
Describe the solution you'd like
For every composition we should be able to define multiple temperature-pressure pairs, and for every temperature-pressure pair we should be able to define multiple results.
<config>
<composition/>
<pt>
<pressure-tag/>
<temperature-tag/>
<result-tag/>
<result-tag/>
</pt>
<pt>
<pressure-tag/>
<temperature-tag/>
<result-tag/>
<result-tag/>
<result-tag/>
</pt>
<pt>
<pressure-tag/>
<temperature-tag/>
<result-tag/>
<result-tag/>
</pt>
</config>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.