09-15-2024 09:37 AM
09-15-2024 10:18 AM
Hello, @Leaner24.
Despite having joined the LabVIEW Forum almost six months ago, you've had only two posts, and don't seem to have picked up the "preferred way to ask a question for help".
Suggestions for posting:
The following comments are about what I can see in your "picture of code":
Please attach some code capable of being opened in LabVIEW 2019 or 2021.
Bob Schor
09-15-2024 10:40 AM - edited 09-15-2024 10:42 AM
Your boolean wires that are broken are arrays and you wire them to terminal that cannot accept arrays, just scalars. You need to reduce it to a single boolean based on the desired functionality (all elements are true? some elements are true? no elements are true? etc.)
Your entire code stinkssmells With pointless sequences, blatant overuse of local variables, potential race conditions and dangerous placement of the event structure. If the tab control should remain on page 1, disable it instead of hammering it back to page 1 three times in a row. If pages should only change programmatically, make the tab an indicator!
09-15-2024 03:22 PM
When you have a broken wire activate Context Help (Ctrl+H) and place the cursor on the broken wire.
Context help will explain the issue.
09-16-2024 03:24 AM
Select can't handle array inputs.
09-16-2024 09:33 AM
@Yamaeda wrote:
Select can't handle array inputs.
Same for the case structure, of course.
Think about your problem. You have an array of usernames and an array of passwords. If a username exists, you will get an array of FALSE with one single TRUE. Same for the password. Then you AND these two boolean arrays and you will only get one single TRUE in the resulting array if both the username and password are in the same position. (If the user would enter the password of another user, both arrays would have a TRUE at different positions and the AND would result in an array of all FALSE). In your case, authentication only occurs if a TRUE exists after the AND, so an "OR array elements" would give you a boolean scalar that the select and case structure can handle.
09-16-2024 09:56 AM
@altenbach wrote:
@Yamaeda wrote:
Select can't handle array inputs.
Same for the case structure, of course.
Right. I didn't see that.