05-31-2013 12:45 PM
Hi,
I have a 2D string array and I want to extract columns from it according to the string value of on of the elements in each column to formulate a new 2D array. for example:
in the attached excel sheet a 2D array. I want to extract the whole columns contain "CA/S-" string and "MS/S+" to formulat another 2D string array formed of the columns that contain only those 2 string values.
Thanks a lot and I would reaally apperciiate any input 🙂
Cheers,
Mostafa
Solved! Go to Solution.
05-31-2013 01:07 PM - edited 05-31-2013 01:07 PM
Something like this? I had to convert your Excel file into a CSV.
05-31-2013 01:52 PM - edited 05-31-2013 03:01 PM
If performance is a concern, here's a solution that operates "in place". Modify as needed.
06-06-2013 07:54 PM
Thanks a lot. That's exactly what i was looking for
09-24-2014 05:27 AM
Dear Mr. Altenbach,
I'm a beginner in using LabVIEW with datafile.
It would be usefoul for me to have the vi code of your example so I will have a starting point for work on my application.
I need to sure identify the used function to avoid misfunction due to wrong connection for the starting point.
Thak you a lot in any case.
Best regards.
09-24-2014 11:14 AM
09-24-2014 11:51 AM - edited 09-24-2014 11:51 AM
e.carano wrote:I'm a beginner in using LabVIEW with datafile.
If you want code, you need to tell us your LabVIEW version.
If you have a recent version, you can use a conditional tunnel to simplify the code even more. (see attached 2014 version).
09-24-2014 01:48 PM
Thank you for your suggestion, I find a way using a similar solution.
I'm using LV 2011.
Best regards.
09-24-2014 01:59 PM
@e.carano wrote:
Thank you for your suggestion, I find a way using a similar solution.
I'm using LV 2011.
LabVIEW 2011 does not have the conditional tunnel.
09-24-2014 02:06 PM
altenbach ha scritto:
Transpose array, index array, replace array subset, array subset.
For loop, case structure, shift register.
Try it!
Sorry, I was referring to your first suggestion.
Best regards.