Jump to content

Evert

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Evert

  1. Thank you for the reponse and your tip, the DataSampling is very useful for storing my data and creating graphs! For the linear regression I think the data-table feature might be easier though? I haven't figured it out yet but if I can just have 10 or 20 rows filled with my measurement value, every 1 second, than I should be able to calculate flow quite easily. Still struggling with all the data-table though. edit: it seems that I can only use the data from the first or last row from the data table, that would not give the solution I'm looking for I think.
  2. 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
×
×
  • Create New...