02-17-2020 05:55 PM
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?
02-17-2020 08:27 PM
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?
02-18-2020 12:03 AM
Here's the ZIP file
02-18-2020 08:16 AM
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.
02-18-2020 05:56 PM
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?