Hello,
I am writing because I am problem switching the controls in my program from one function t another. Below I have included som information about my program:
I am working with two field point devices (FP-AI-110 and FP-AO-200) to input and output data to a device.  I currently have the program setup, so that is sends data, using the FP-A0-200.  I added a button to the uir to force and certain value to be sent to the device and override the previous function. The problem was that the LabWindows?CVI would stop whenever the second button was pressed.  I later fixed that error, but noe the program, doesn't not recongize the function, when is is pressed in the user interface.  I am looked at my code and have not been able to find the error. I wanted to now, if you have any suggests to how I might approach this program.Below I have included segments of my code, that I told might be helpful in explaining my problem better:
This segment of my code represents my first c file in the project. This is the function that sends the data to the FP-AO-200, depending on the user input.
/*=================================================*/
/* Function: Advise Loop 	                                           */
/* Purpose:  This is the callback function for the timer.  This function   */
/*           calls read cache to get the last read values from the digital */
/*       module and then updates the LEDs
=====================================================*/
int CVICALLBACK advise_loop (int panel, int control, int event,void *callbackData, int eventData1, int eventData2)
{
    IAStatus status = IA_SUCCESS;
    SYSTEMTIME timestamp;
    char valueStr[BUFFER_SIZE]; 
    unsigned short mask = 1;
    float temp; // Temporary value holder
//////////////////////////////////////////////////
    float* valuei; // Value of analog input
	IAStatus result;
/////////////////////////////////////////////////	
if (Callloop==Call_moveclose)
{	istart=5;
//	return 0;   
}
else if (Callloop==Call_moveopen)
{
	istart=5;
//	return 0;   
}
//THIS IS THE PROGRAM BEFORE THE ABOVE MOVE FUCTIONS WERE ADDED
if (istart==1)   //This was just an if statement,  added else to make work w/call loop functions
    {
    pvalue = (float*)value;
    switch(event)
        {
        case EVENT_TIMER_TICK:
        icountertime++;
///////////////////////////////////////////////////////
        //Information for the FP-AI-110
        	result = FP_ReadCache (FP_handle,advise_IDi, current_readi, 100,  ×tamp);
for (i=0; i
   {
   valuei = (float*)(current_readi+(i*4));
   SetCtrlVal (panelHandle, PANEL_NUMERIC0_2+i, *valuei);
}
//////////////////////////////////////////////////
if (icountertime==fmAvalues[iIndex][1])
...........................................
Then I write, once the process is complete
This part of the code refers to the second c file of the project.  This code represents the button in the uir that will send the same output to all of the devices used.  I was aslo wondering why the EVENT_LEFT_DOUBLE_CLICK, was not working either.
int CVICALLBACK MoveClose (int panel, int control, int event,	void *callbackData, int eventData1, int eventData2)
{
int setval;  //Stores the value of the MOVECLOSE
int co;  //Counter Variable
float temp=.004;
switch (event)
{
	case EVENT_COMMIT:
		
              GetCtrlVal(panelHandle, PANEL_MCButton, &setval);
			  
	if (setval==1)
	{
	 istart=5;
	 Callloop=Call_moveclose;
			   /***************************************
           *Apply 4 mA  to all eight channels **
          **************************************/
	   for (co=0; co          {
	    SetCtrlVal (panelHandle, ictl[co+10], &temp);
           memcpy (value + (co*4), &temp, 4);
           }
	}
  break;
 }
return 0;
}
Thank You Very Much
All help is greatly appreicated.
EF