Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

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

0 votes
112 views
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.
asked Jan 22 by ian (12 points)

1 Answer

+1 vote
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
answered Jan 24 by Bryan Lieblick (1,795 points)
...