10-13-2024 04:38 PM
We don't like to do things from scratch. Attach a simplified VI containing typical data so we can modify accordingly.
10-13-2024 06:49 PM
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)
10-20-2024 10:44 PM
Hello,
Can anybody respond to my previous inquiry? i will appreciate it
10-21-2024 01:24 AM
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..
10-21-2024 03:15 PM
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
10-21-2024 05:14 PM - edited 10-21-2024 05:18 PM
@soccerfan wrote:Again, how can i have an output of the players that haven't paid.
Here's what you could do...
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!)
10-21-2024 07:53 PM
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
10-21-2024 08:13 PM
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.
10-21-2024 09:35 PM
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