04-21-2023 06:42 AM
I need to be able to set the array "ingredients" to search on max 5 rows of the ingredients entered by the user referring to the array "All". then return the array row that contains at least 1 of the words in the array "Set using all specified ingredients" there must be no repetition of rows.
04-21-2023 08:46 AM
Thank you for translating your Homework Assignment from Italian to English for us. I'm not 100% certain I understand the assignment, so I cannot tell if your homework answer is correct, but you should be able to tell, right?
So here are some suggestions to help you debug your LabVIEW program.
Bob Schor
04-21-2023 10:33 AM
I have been working on it for several days but I have no idea how to extend the array to more rows.
Basically when you write a word that is in the array "Set using all specified ingredients" below the 5th line nothing appears on the array below it same exact thing for the array "ingredients" where you cannot write beyond 2 lines.
can you help me?
04-21-2023 02:37 PM - edited 04-21-2023 02:39 PM
It is NOT appropriate to plagiarize code that is not yours without giving links to the earlier discussion.
I am not even sure why you started a new thread thus I merged the two discussions into one.
04-21-2023 02:43 PM - edited 04-21-2023 02:44 PM
@GamerBlock27 wrote:
I have been working on it for several days but I have no idea how to extend the array to more rows.
Basically when you write a word that is in the array "Set using all specified ingredients" below the 5th line nothing appears on the array below it same exact thing for the array "ingredients" where you cannot write beyond 2 lines.can you help me?
Size the controls Appopriatly and hide the index displays. The user cannot type into elements the cursor cannot select.
04-21-2023 02:47 PM - edited 04-21-2023 02:50 PM
@GamerBlock27 wrote:Basically when you write a word that is in the array "Set using all specified ingredients" below the 5th line nothing appears on the array below it same exact thing for the array "ingredients" where you cannot write beyond 2 lines.
can you help me?
I recommend to first continue with the basic tutorials.
04-21-2023 02:59 PM
@altenbach wrote:
It is NOT appropriate to plagiarize code that is not yours without giving links to the earlier discussion.
I am not even sure why you started a new thread thus I merged the two discussions into one.
when i saw the post, I was surprised to someone with Neat code without knowing how to handle array's. Now i am clear from where the initial code was.
04-21-2023 03:17 PM - edited 04-21-2023 03:22 PM
@PalanivelThiruvenkadam wrote:
@altenbach wrote:
It is NOT appropriate to plagiarize code that is not yours without giving links to the earlier discussion.
I am not even sure why you started a new thread thus I merged the two discussions into one.
when i saw the post, I was surprised to someone with Neat code without knowing how to handle array's. Now i am clear from where the initial code was.
I'm still not sure what the blue wires do. If OR Array is true stop the inner loop wire OR array out of the inner loop on a last value tunnel to the conditional tunnel boolean input.
EDIT: perhaps the requirements have changed a bit?......
04-21-2023 03:37 PM - edited 04-21-2023 03:42 PM
@PalanivelThiruvenkadam wrote:
when i saw the post, I was surprised to someone with Neat code without knowing how to handle array's. Now i am clear from where the initial code was.
When I first saw this post, seriously, my first thought was "That looks like Altenbach's coding style." Those times when you see a snippet that you can study for 30 minutes and still not know what is going on but somehow, it cleverly outputs the correct answer and looks awesome at the same time...that's how I felt. Makes sense now.
04-21-2023 04:11 PM
@JÞB wrote:
I'm still not sure what the blue wires do. If OR Array is true stop the inner loop wire OR array out of the inner loop on a last value tunnel to the conditional tunnel boolean input.
EDIT: perhaps the requirements have changed a bit?......
The requirements were not entirely clear but the current code finds only rows that contain all of the listed ingredients, so if the array contains 2 ingredients, the loop stops after two have been found. If fewer were found when the loop stops, the entry is filtered out by the conditional tunnel. There are many other ways to do all this of course.