05-22-2013 05:31 PM - edited 05-22-2013 05:32 PM
Bear with me as this is my first LabVIEW project. I've got pretty much all of the functionality that I need, but now I'm trying to optimize things a bit. Basically, I want to be able to open the screen capture by clicking on one of the indicators in the array on the right (they are set to show green when a screen capture has been taken) instead of manually inputting the channel number and clicking on the change image button. I've done some searching in the forums, but couldn't come up with anything that was this specific. If this isn't something that is possible, that would be nice to know as well, then I can move on. I can upload my VI as well if somebody wants to look at it, what I am curious about first is do I also need to include the subVI's as well? Should I just .zip my project folder? Thanks
Solved! Go to Solution.
05-22-2013 07:37 PM - edited 05-22-2013 07:38 PM
What you want to do is add a mouse down event to your event structure. Are your LEDs an array, a cluster, or individual LEDs? If they are an array, this will be a lot easier. You just calculate which element was clicked, then you use that index and call the same code you do when the user presses the button as it stands now, using this number rather than the number they enter.
05-23-2013 04:26 PM - edited 05-23-2013 04:37 PM
That's fantastic, exactly what I needed. The only thing I had to change was the decrement... I'm not sure why it was in there because the zero value would decrement to a large negative value (I assume -16bit). Looks like I need to do some more research on property nodes. I've included a picture to maybe help somebody in the future.
05-23-2013 09:18 PM
For some reason when I clicked element 0 it was giving me one and I couldn't figure out why, so I didn't bother to look into it more. Glad it worked out for you.