01-28-2009 02:19 PM
I am still fairly new at Labview and this may seem like a simple question. I am making a subvi to display, edit, and create config files. I am using a listbox to list all of the sections in a config file and a event structure to update the values under each section when they are clicked. The problem is that the event structre seems to be pausing the while loop so that the buttons don't function until the event has executed. What I would like to happen is the while loop to continuously run and the event to execute only when I click in the listbox. I hope this makes sense. There is a pic of the block diagram below. Thanks
Solved! Go to Solution.
01-28-2009 02:43 PM
You don't have anything else happening in the loop except for reading of the buttons and controls. The controls just get passed out of the while loop. For the OK and cancel buttons, you will want to make some value change events for them as well and place the buttons inside the appropriate event cases.
For your boolean wire that goes from the front of the while loop, through the a Not function, then through the Or function, what do you want to do with that? The value never changes so you could actually put the Not before the tunnel going into the loop. Do you want those tunnels to be a shift register?
01-28-2009 03:16 PM
01-28-2009 05:35 PM
There are a number of issues with your code that could cause problems:
01-29-2009 03:13 PM
01-29-2009 04:37 PM
The place to start is by educating ourself on event-driven programming, and a good introduction ships with LV. On the LV Getting Started screen, click on the LabVIEW Fundamentals link. When the help opens, expand the Fundamentals heading and you'll see a section on Event-Driven Programming. That's the place to start.
Mike...