Set XY reference curve data table from variable

  • Software
  • Set XY reference curve data table from variable
Keith Miller

Posted on 03.03.2022 22:01

Is there any way to set the data table values in the XY reference curve setup from a global variable or use input? I am using many reference curves for a test and between each test case I need to update the curve which is very time consuming. I would prefer to be able to copy and paste the values in from excel or write to the values with a script or lookup table

Gregor Šmit

Posted on 09.03.2022 15:26

Dear Keith,


thank you for contacting us. We would suggest that you use the Templates to predefine the reference curves which can then be easily loaded. The templates are saved in the DewesoftX installation subdirectory \System\MathTemplates.dxb file, which is an xml file. Firstly you need to create one template and save it. Then you can open the MathTemplates.dxb file with an editor and insert other reference curves using the xml notation.


Kind regards.

Keith Miller

Posted on 09.03.2022 19:36

Thanks for the response Gregor. Is it possible to automate updating from the template somehow? When I update the template, the math channel that is assigned to the template doesn't update unless I open the channel an manually reload the template. I only have one value to update in the table, so editing the XML and then reloading the template isn't quicker for my application, although if I had many values in the table to update, then this may be worth implementing

Gregor Šmit

Posted on 10.03.2022 13:00

Dear Keith,


it is not possible to automate updating the XY reference curve from the template or a variable. The template has to be reloaded for the changes to take affect. Editing the xml every time to change a value is not convenient. May we suggest that all the reference curves are written to the template beforehand and then the correct template is chosen from the dropdown list before the measurement.


If the values are not known before the measurement you could also paste the variables in to table with the paste button. The data can be copied from Excel table or from a .txt file which contains the values (the columns need to be separated by tab character not space character):


Copying data from a .txt file:


Copying data from Excel table:


Kind regards.

Login to reply to this topic. If you don't have account yet, you can signup for free account .