LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Security System issues

I've tried tinkering around the file by adding one more LED and buttons to the array, but it is not working properly now... Can I get some guidance as to what went wrong?

0 Kudos
Message 1 of 5
(2,623 Views)

Don't attach a .rar file.  Most people don't have the means to open it.  Why wouldn't you attach an actual .zip file which Windows has built-in methods to be able to open?

0 Kudos
Message 2 of 5
(2,585 Views)

Here's the ZIP file

0 Kudos
Message 3 of 5
(2,559 Views)

Thank you.  And nice job on creating a clean block diagram.

 

So you want to add another button to the arrays of controls.  ??  What I see is that when you run your VI, it reinitializes all controls to default, which will return those 3 button arrays back to a 5 element array.

 

Get rid of that Reinit to default.  Initialize those arrays at the beginning of the code by writing constants to them.  Then if you want to add a 6th button, 7th, button, whatever, you can just set another element at the end of that array constant.

 

I see one other problem.  You have arrays of buttons, and a cluster of indicators.  You sort of build that cluster into an array by grabbing their control references but then reordering that array.  I think that you don't have good correlation between the index of your button arrays with the position of the LED in the cluster.  I think you'd be better off if you build your array of control references using the individual control references rather than using the collection of controls from the cluster.

0 Kudos
Message 4 of 5
(2,538 Views)

I managed to get it to work properly now. Is it possible for me to convert this into a client-server type of application where the client is only the buttons and the server will only have the LED?

0 Kudos
Message 5 of 5
(2,526 Views)