11-25-2008 05:55 PM
Hi,
My objective is doing this:
while(TRUE)
{
nbytes = readfile( 48 bytes);
if(nbytes == 0) break; // no more data
while( nbytes )
{
sendByteToPort();
nbytes--:
}
Status=ReadPort();
if(Status != OK) break;
}
I don't want to use while loop for locking the system. I want to allow the user to interact with the program such as stop or terminate the program.
What kind of functions CVI gives to avoid locking the system with while loop.
Best regards
11-25-2008 05:56 PM
Call ProcessSystemEvents() somewhere inside the loop.
Luis