04-08-2009 09:56 AM
04-08-2009 11:27 AM
The calculation of Y is not in the while loop. If you see Y increment, you are either running a different VI than the one you posted or you are using the run continuous button.
04-08-2009 12:19 PM
04-08-2009 12:32 PM
I don't think that is relevant but in highlight execution, the timing is significantly different. What really matters, I think, is that none of that code you have outside the while loop will execute more than once. None of those time functions seem to be doing anything at all and certainly do not refresh once you click on the run button.
04-08-2009 12:59 PM
And I am getting very tired trying to navigate around on that block diagram of yours. I don't know what size monitor you have but it doesn't fit on my dual 20" setup. You've got a lot of wasted space and it justs makes it harder to debug - especially harder for the people trying to help. Here's a cleaned up clock diagram. I also removed some of the silly code you had with the data conversions. The front panel is way too big as well but I'm not going to touch that.
04-08-2009 01:13 PM
04-08-2009 01:44 PM
04-08-2009 01:44 PM
Yes, placing the code inside the while loop will mean that it will execute more than once. I suspect that you will need a shift register to keep track of the time. What you have now does not make much sense to me.
First put the code inside the loop so that you get an x value that increments. One thing at a time.
04-08-2009 02:07 PM
04-08-2009 02:31 PM