06-22-2023 07:20 AM
Hello everyone,
I need to save in a csv file only the passenger IDs different from 0 or empty and in order.
I only entered the IDs of passengers 1, 2 and 4.
The images below show what I have and what I want.
How do I do it please?
Thanks in advance
Solved! Go to Solution.
06-22-2023 07:34 AM
You just need to rewire the code like bellow.
The way you wired the code, you are concatenating the ID Passenger1: with the entered number.
To get what you want, you just need to get the string control value, then Outside the loop you add the line with the labels ID passenger...
06-22-2023 07:44 AM
Hello, Ngouda.
Is it your goal to take a single line (possibly from a one-line csv file?) and create a 2-line csv file consisting only of the entries that have a valid Passenger ID?
If that is the case, it seems to me the following algorithm will work:
Bob Schor
P.S. -- I am using LabVIEW 2019 and 2021, so I couldn't open your attached VI. Use "Save for Previous Version" to reach long-time LabVIEW Users (such as I) who might not update every year.
06-22-2023 08:26 AM
Hi @LVNinja, @Bob_Schor,
Thanks very much for your reply.
Thats work now what I want.
Have a good day 🙂