LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I check if a ring in the Panel is not empty?

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

0 Kudos
Message 1 of 2
(1,054 Views)

Hi

 

Check your switch{} statement case: is missing

Message 2 of 2
(1,018 Views)