Hello,
I am facing a question. In a thread, the callbackfunction was executed repeatly, But I want it to be done only once. How to stop it when it call the callbackfunction first time? This is my program.
void CVICALLBACK Adjustment (int menuBar, int menuItem, void *callbackData,int panel)
{
int threadID2=1;
startflag2=1;
CmtScheduleThreadPoolFunction(DEFAULT_THREAD_POOL_HANDLE,ThreadFunction2,threadfunctiondata,&threadID2);
}
int CVICALLBACK ThreadFunction2(void *functiondata)
{
int i,j;
while(startflag2==1)
{
for(i=0;i<10;i++)
for(j=0;j