LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

re-initalize Listbox to default values

Solved!
Go to solution

We don't like to do things from scratch. Attach a simplified VI containing typical data so we can modify accordingly.

0 Kudos
Message 11 of 19
(304 Views)

This is my whole project (selecting teams out of n players. i just used some players names. Most of it works (archiecally) except the players dues explained earlier. Let me know of any other simplified ways i am not aware of (did i mention i am a newby)

soccerfan_0-1728863256110.png

 

0 Kudos
Message 12 of 19
(298 Views)

Hello,

Can anybody respond to my previous inquiry? i will appreciate it

0 Kudos
Message 13 of 19
(242 Views)

Your zip file is a huge hierarchy of files and we have no idea where to look. Please attach only your VI and some default data as e.g. diagram constants..

0 Kudos
Message 14 of 19
(235 Views)

Thank you for your quiick response. Attached is the vi.

Again, how can i have an output of the players that haven't paid. I tried different solutions but i can't seem to have a grasp on it. May be, my selection of vi's to use were not correct , Thank you again 

0 Kudos
Message 15 of 19
(217 Views)

@soccerfan wrote:

Again, how can i have an output of the players that haven't paid.


Here's what you could do...

 

altenbach_0-1729548273962.png

 

 

You really, really! need to learn the basics. Most of your code is just plain silly, e.g.:

(that's just the top if the iceberg. Your entire while loop is questionable, for example you are comparing two sizes of the very same array, so the sizes are always equal!)

 

altenbach_2-1729548820813.png

 

Message 16 of 19
(205 Views)

Thank you for taking the time to answer my question. However my project has two parts:

1----Selecting teams from a lists of players. That part works for me except that i used very basic approch and it's a little messy. 

2---- totaling paid dues and players that haven't paid.

your solution for the latter is perfect which i didn't even know the for loop you used even exists. That's why you are the champion and i am still learning. Thank you

PS:  Can event structires be used in my project? It will be my next learning endeavor

0 Kudos
Message 17 of 19
(193 Views)

All I did was answer the specific question. 

 

Since I don't know the detailed requirements, I did not focus on the rest of the code, but it looks convoluted. I am sure it could be done with half the current code.

 

Once you architect it as a proper state machine, you can consider using an event structure, but it is certainly not mandatory.

Message 18 of 19
(189 Views)

Thank you. I am not gonna twist your hand and look at the other code. But if you have a spare time to look at it , i would  appreciate it.....Cheers

0 Kudos
Message 19 of 19
(180 Views)