Page 1 of 1

Change Type

Posted: Thu Mar 11, 2021 11:51 am
by Vojvoda
Hi! I need to change type of parameters in a couple of csv files. I don't know if its possible or how...
Thanks!

Re: Change Type

Posted: Thu Mar 11, 2021 5:04 pm
by Waveworks
Hello! The data type is detected automatically based on the CSV content after the header line (the first line) and can't be changed. In your case, it looks like the problem is that the second line in the CSV file contains units, and unfortunately this is taken as string data items, so the data type becomes string. You have two options:
  1. Remove the line with units in a text editor.
  2. Use formulas to convert to new variables of the desired type, e.g. ActiveSetpt_float = float(ActiveSetpt).
Hope this helps!

Re: Change Type

Posted: Mon Mar 15, 2021 1:42 pm
by Vojvoda
Thanks!

Now is working properly.