02-08-2014 04:16 PM
Something that should be so simple... I am creating a custom user interface for Vision Builder AI (without LabVIEW) that has two pushbuttons (Next & Previous) which should navigate to the next or previous state (displaying a simulated image) accordingly. The purpose of this is two add a few "slides" to the user interface inspection sequence that give the user setup instructions and has them click "Next" when they are ready to move on (or Previous if needed). On the "Back panel" I have a state loop on itself by default (with a 200ms timer to not chew up the the processor) and then a transition to the next state with a criteria or the front panel pushbutton being true. The button is setup as a Latch upon release which I though should return false once it was read/processed. The problem I am having is that it will often jump forward 2 or 3 'slides' or more when pressed. I've also tried including an Update Inspection UI to set the buttons both false but that didn't seem to be effective either. Please help!!
Images below are samples of the structure to help give an idea...
Thanks!
Pete
02-10-2014 09:10 AM
I was able to implement the behavior you want by resetting the controls on the custom user interface manually at the beginning of each state. I used the Update Inspection UI step to set the Next and Previous buttons to false before any other inspection steps. I do find it strange that the Latch mechanical action doesn't behave as expected. I will do some digging and post my findings on this thread.
Regards,
02-10-2014 12:15 PM
Thank you Ian for taking the time to look at this. At one point I had also tried the method you mention yet it still wasn't consistantly resetting the buttons false.
I suspect VBIA is clustering all the IU controls in the background and it sounds like cluster controls not latching is a known behavior.
I'll try your suggesteion again and see how it goes.
Thanks again
Pete
09-24-2015 09:41 PM
Hello Ian
i know it has been a while but this issue keeps resurfacing. Any chance you've had any revelations on this? I did just submit a ticket on this (7462267). Oddly you can use a Boolean control and it works just fine, it's all the push buttons that not release as expected.