12-16-2013 10:58 AM
Im trying to create a program so that when the next button is pressed, the gui then reads the next line on my excel sheet for the standard. Im having trouble with the mouse my down functioin for this.
12-16-2013 11:21 AM
What trouble are you having? Give us some details at to what it is doing and how it is different from what you want.
Looking at your code. I see your Next button is set for Switch Until Released. That is almost certainly the wrong action. You probably want Latch When Released.
And since it is a Boolean button, you should set the Event to be Next:Value Changed rather than Next:Mouse Down.
12-16-2013 01:28 PM
What happening is that when i click next, it does not change the standard as written in excel, instead it keeps whichever standard it starts with. What I would like for it to do is each time next is clicked, the standard, as written in excel, is read and used by labview.
12-16-2013 03:11 PM
Where does your VI evenget data from Excel? Nothing in your VI shows this.
Perhaps it is buried in one of the subVI's you didn't include?
12-16-2013 06:13 PM - edited 12-16-2013 06:25 PM
Please show us where excel and file IO happens. I cannot find it.
Your VI is full of race conditions and very convoluted code.
12-17-2013 08:43 AM
My apologies for the confusion, I haven't put my comments in the code yet. The excel data is read from the first subvi on the outside of the while loop
12-17-2013 08:45 AM
Since you didn't include the subVI's, we can't look into them.
12-17-2013 08:50 AM
Here is the read vi
12-17-2013 08:56 AM
The only part of the code that operates on the array coming from that subVI, isn't influenced by the menu number at all. It is only affected by whether the "Standard" boolean is True or False, and will either give Row 1 or Row 2 of the array coming in.
12-17-2013 01:38 PM
What do I need to do to make it read line by line?