Timer_Delay will not "halt" your current thread.
here is how I have been doing for years.
void test(void)
{
int total_loop = 50; //optional
int pass = 0;
int fail = 0;
do
{
wait_till_start_signal_is_received(); //this may always return "go"
do
{
result = test_1();
if(result != PASS)
{
break;
}
test_2();
if(result != PASS)
{
break;
}
test_n();
if(result != PASS)
{
break;
}
}while(0);
if(result == PASS)
{
pass++;
}
else
{
fail++;
}
loop++;
ProcessSystemEvents();
}while(exit_program == 0 && loop < total_loop); //"&& loop < total_loop" is optional
}
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1