02-07-2007 11:44 AM
02-08-2007 09:36 AM
02-08-2007 09:44 AM
02-08-2007 10:32 AM
02-08-2007 11:09 AM - edited 02-08-2007 11:09 AM
The attachment below shows what is important. There are the two properties for updating the progress bar and % complete. Whatever value you pass into this by the 'percent' control will be displayed. How you use this in your code will depend on the code. If you have a loop that iterates a certain number of times, you can calculate the percentage pretty easily. If it executes for a known amount of time, then that too can be implemented. The shipping example does that by getting the start time at the beginning and the current time with each iteration.
Message Edited by Dennis Knutson on 02-08-2007 10:10 AM
02-08-2007 01:20 PM
02-08-2007 01:28 PM - edited 02-08-2007 01:28 PM
Message Edited by paulmw on 02-08-2007 01:29 PM
02-09-2007 06:43 AM
02-09-2007 07:13 AM
02-09-2007 09:23 AM - edited 02-09-2007 09:23 AM
Here's a simple example of what you could do. A queue is created and in the bottom while loop, the queue is read and when the queue is released, the while loop stops. The percent complete could be obtained from the Long Test subVI since it can write to the queue. If the Long Test subVI cannot write (i.e. in the case of a self test going off and taking x amount of time, use a start and stop time in the bottom loop like the shipping example does.
Message Edited by Dennis Knutson on 02-09-2007 08:24 AM