04-16-2008 01:40 PM
04-17-2008 10:15 PM
04-18-2008 09:12 AM
04-21-2008 11:06 PM
Hi Kristen,
You have the compare function implemented incorrectly. You need to make sure that the first terminal of the "Greater than or equal" function connected to the output of the sum, and the second terminal to the tick count in the while loop. The first terminal corresponds to x parameter and the second terminal is for the y parameter. So if x is greater than or equal to y, then the loop will need to exit.
You can see how long a subVI is taking if you put a flat sequence structure within your subVI around the entire subVI code. The first frame would only have a tick count going into an indicator, the middle frame your normal code, and then the final frame would contain another tick count wired into another indicator. Then you can subtract the second indicator value from the first and get hold long it took to execute the middle (core) of your code for that subVI.
I highly suggest using the highlight execution and probes and other debugging techniques such as breakpoints to diagnose where the data is being held up.
04-21-2008 11:07 PM - edited 04-21-2008 11:07 PM