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

**URL:** <https://forum.plexim.com/t/how-to-using-from-file-to-import-csv-files/1305>\
**Category:** PLECS\
**Tags:** csv-file\
**Created:** [January 22, 2024, 2:44am UTC](https://forum.plexim.com/t/how-to-using-from-file-to-import-csv-files/1305 "2024-01-22T02:44:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@ian](https://forum.plexim.com/u/ian)\
**Post date:** [January 22, 2024, 2:44am UTC](https://forum.plexim.com/t/how-to-using-from-file-to-import-csv-files/1305/1 "2024-01-22T02:44:04Z")

</div>

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](https://forum.plexim.com/uploads/short-url/rwJadVFwDqy8ef2ZYCyQAlaNH5g.csv) (194 KB)

 ![Error message.PNG](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/2X/a/a72ba68491a7e14fcbc1726866f45e5f926f5b07.png)

 ![error image.PNG](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/2X/6/6d5dd7b51986915d9a1dc1ab4bc7f314daecc0d6.png)

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [January 24, 2024, 5:42pm UTC](https://forum.plexim.com/t/how-to-using-from-file-to-import-csv-files/1305/2 "2024-01-24T17:42:01Z")

</div>

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
