Hi All,
I'm new here so let me start with a short introduction. I work for a company doing applied research on renewable energy technologies, building small to pilot scale factories. We've been using some outdated data acquisition systems that desperately needed to be upgraded. For a new project we've decided to try out the Unitronics PLC system with Unilogic programming, to see if that's suitable for our applications. First impressions are very good!
Now my question, in my process I have a weight cell, combined with converter to get 4-20 mA output signal. This signal is converted to the actual mass by linearize function. However I would also like to calculate the change in mass in time, to display the mass flow. In Excel I usually take the linear regression function, but after searching around I cant find an example how to program it in Unilogic. I'm not a math wizard, but the linear regression basically takes a specified number of measurements (mass, y-axis) for a specified number of times (x-axis) and then calculates the slope of the line (least squares method). So I need to collect say 10-20 measurements to calculate the slope, and then ideally each iteration have the first measurement out and a new one in...
Surely this must have been done before right? Is there someone here that can point me in the right direction? I hope I placed this in the right topic...
Regards,
Evert