Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5362

create a task in cvi

$
0
0

I want to create a task which will be cyclical called (10ms,50ms,100ms).

In this task I want to call a function.

 

Shown below is the main call of my programm.

When the userinterface is created and started the programm stand in the following position (errChk (RunUserInterface ())Smiley Wink

So it is impossible to place a while(1){} Loop in the main.

 

int main (int argc, char *argv[])
{
 int error = 0;
 
 /* initialize and load resources */
 nullChk (InitCVIRTE (0, argv, 0));
 errChk (panelHandle = LoadPanel (0, "Test1.uir", PANEL));
 
 /* display the panel and run the user interface */
 errChk (DisplayPanel (panelHandle));

 errChk (RunUserInterface ());   
Error:
 /* clean up */
 if (panelHandle > 0)
  DiscardPanel (panelHandle);
 return 0;
}

 

Thank you for your support. Smiley Happy


Viewing all articles
Browse latest Browse all 5362

Trending Articles