Jump to content

String array from keypad

Recommended Posts

i'm new in the realm of Labview but i'm working on simple project Access Pin Security but i got hook where i want to create several hard-coded pins inside my block panel .....the main challenge is too loop through String array but only one is working.

Block panel.png

Front panel.png

Link to post

I don't fully understand the problem.  I see that you press one button at a time, and that appends to the string which is limited to 4 characters.  That all seems to work fine.  But what is the loop trying to do with the hard coded pins?  Are you trying to see if the pin matches any of the hard coded ones?  If so you can just use the Equal function with the scalar string, along with the 1D array constant.  This will return an array of if they are equal or not, and an Or array elements can tell you if any match.

Link to post

I don't believe that your intention is to loop through all of the hard-coded PINs twelve times.  Remove that constant to the For loop and let the tunnel from your array of PINs auto-index.  I'm confused about how you've got a 1-D array of Booleans being indexed into a 2-D array, but your Front Diagram :) indicator looks like only 1-D.  Surely my eyes aren't so bad that I can't see that green wire getting bigger outside the loop...

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.