05-22-2020 12:52 AM
Hi friends,
I am having a series of csv files in a folder and i am trying to read it one by one in labview. Each csv file has two column and i want second column data for processing it. The problem i am facing in Labview is it can able to read the second column for the first iteration and for successive iteration the data i got is zero. Labview not able to read 2nd column for successive iterations.
Solved! Go to Solution.
05-22-2020 02:18 AM
The default delimiter on that function is a tab character, and I am guessing you have comma's as delimiters in your file.
Rather annoyingly the delimeter terminal is set to optional so doesn't show up straight away on the context help. It is on the bottom edge in the middle. See the attached file.
For the future, it is much easier if you post your actual VI rather than a picture.
05-22-2020 04:43 AM
Thank you Niatross
05-22-2020 05:07 AM - edited 05-22-2020 05:09 AM
Thank you for your help. I have another trouble here while reading series of files in the folder which are named in the form of sequence manner like 1 (1), 1 (2), 1 (3), 1 (4), 1(5),... but Labview reads it as below sequence.
1(10)
1(100)
1(1000)
1(1001)
1(1002)
Can you figure out how to read it sequentially like 1 (1), 1 (2), 1 (3), 1 (4), 1(5),...
05-22-2020 05:24 AM
05-25-2020 04:55 AM
Hi Friends,
I am facing issue in labview. My vi read csv file in a folder and plot it in waveform graph. Initially i have twenty csv file in that folder, while runnning my application some more csv files will be added to that folder. The problem is only twenty csv file initially placed got read, later added csv files were no read by labview.
05-25-2020 04:59 AM
Hi Bond,
the VI in your snippet uses ListFolder to get the current files from your folder, then the loop processes them: this is simple THINK DATAFLOW!
@BOND002 wrote:
The problem is only twenty csv file initially placed got read, later added csv files were no read by labview.
What happens when you restart your VI? Does it recognize the newly added files?
In case your answer is "Yes!" then you simply need to change your VI so it can recognize the new files also while running…
05-25-2020 05:21 AM
Hi GerdW,
Thank you for your prompt reply.
When i restart the vi newly added files got recognized.
My actual issue is that, i am getting those csv files form my experiments. The csv files will be atuomatically stored in the folder. The number of files in that folder will always keeps on incresing as long as my experiments runs. When my experiment starts the csv files will be generated automatically, i want to run the vi at the same time for real time monitoring with little time lag.
05-25-2020 05:32 AM - edited 05-25-2020 05:33 AM
Hi Bond,
as suggested before: THINK DATAFLOW!
(This is the very basic working principle in LabVIEW!)
When you want to detect/list files in a loop then you need to list the files in the loop…
Suggestion: Hurry up to take as many "self-paced" courses as possible - they are for free until end of May!
05-25-2020 10:29 AM
Hi GerdW
I have tried with my little knowledge in LabVIEW... Couldn't able to accomplish my work. Thanks for suggesting me about the NI Courses.