How to using "From file" to import csv files?

Hi

I’m working on import the 3-phase signals to the PLECS.

I have 3-phase signals in a csv file and I would like to use “From file” block to input the data.

Therefore I connect “From file” block to the scope to check whether the data is read or not.

But the results shows the csv format is unvalid.

I would appreciate your help.

Thanks !

I attached the csv file and the error message from the system.

1111original.csv (194 KB)

There are two issues: 1) Your data has trailing commas, which are not supported and 2) The number of outputs parameter should be “3” as there are data columns, with the first column being the time column.

Original Data:

Time,U12,U23,U31,
0,0.05,-261.71,261.62,
0.001,5.37,-264.35,258.93,

Required Format:

Time,U12,U23,U31
0,0.05,-261.71,261.62
0.001,5.37,-264.35,258.93