LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Separate information of files by columns

Solved!
Go to solution

Hello everyone,

 

I have a slightly peculiar question, I need to have in a listbox the information of two different files separated by month, that is, if today we are in the month of June, the list must show the information of the files that correspond to June. So there are two types, the first is the material list, and the second is the Batch list. In addition, a combobox or ring where you can select a month, and based on that, display the information corresponding to that month.

 

The material list looks like this: 

 

Mocte117_3-1687647428490.png

Mocte117_4-1687647444964.png

Mocte117_5-1687647474589.png

And the batch list looks like this:

Mocte117_6-1687647539796.png

Assuming that we are in February, it should be like this:

Mocte117_7-1687647823277.png

So my question is, how to separate the information by month, I adapt it to each column and select the month to see this information?

 

0 Kudos
Message 1 of 2
(488 Views)
Solution
Accepted by topic author Mocte117

Hi,

 

Here are some hints to get you started:

 

1. This loads string values from a tab-separated text file:

raphschru_1-1687654946755.png

 

2. This gets the month index from a date formatted as a string:

raphschru_2-1687655060828.png

 

3. This writes the elements displayed in the Multicolumn Listbox:

raphschru_3-1687655110255.png

 

In between, you will have to use basic functions such as Index Array, Format Into String, Build Path, Delete From Array, and maybe a For Loop…

 

Regards,

Raphaël.

0 Kudos
Message 2 of 2
(464 Views)