08-02-2021 09:26 AM
I am trying to develop a software with CVI that can run a test of sending Data and checking out if the data that has been sent valid or not.
There are some informations that are needed to start the test. (See the picture)
I tried with the following line to check if the there is a chosen article and operator and if non of the elements in the panel are empty:
int CVICALLBACK Main_CALLBACK_Pruefung (int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
{
if(event == EVENT_LEFT_CLICK)
{
switch(control)
{
if ( Operator != 0 && Article != 0 && Order_Number!= 0)
{
iTimer_Handle = NewAsyncTimer (0.2, -1, 1, CALLBACK_MAIN_Start_Test, 0);
}
break;
}
}
return 0;
}
But it seems that the if-condition is not working properly, any tip or idea would be much appreciated. Thanks a lot in advance
08-03-2021 02:39 AM
Hi
Check your switch{} statement case: is missing