Jump to content

Umberto Cella

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Umberto Cella

  1. Hi everyone, I have problems with a script module in Dasylab 2020.1. Background: I need to do linear regression of a function z = f(x,y), where x and y are two FFT outputs and z is another FFT output. The regression block of Dasylab does not support this type of calculation, it does only single variable versus time, so I need to use a script. I found this article: https://kb.mccdaq.com/KnowledgebaseArticle50820.aspx, which is ideal for my application. Their script does regression on one variable, but I thought I could change the Python function to make it as I need it. I installed the Python libraries, all good, then I tested their script, which works ok in their example. However, I cannot modify the packaged one to add a second regressor input, so I tried to build the same script from scratch as explained in the technical note (https://kb.mccdaq.com/KnowledgebaseArticle50820.aspx), with the intention of changing the Python function later on. The execution, however, displays the error “The data structure of module is corrupted”. I am stuck at this point, and I am not sure where the error is. I am using Dasylab 2020.1. I attach the file where you can find both the script created by them, and the one created by me. Please let me know if you receive them, or maybe if they are blocked by some antivirus. Thanks everyone for the assistance, Umberto Cella Regression Example - 10 points.DSB Regression Example - 10 points Umberto.DSB
×
×
  • Create New...