12-07-2014 04:49 PM
Hi,
I am using a progress bar control in my application.
there are several other UIR in the application as well.
i embed all the UIR while creating the executable.
the progress bar control works good if i run from the development environment without any issue.
once i build the application and create a exe and run , the progress bar goes (Not Repaonding) even if there is a small mouse click in the screen.
but it works OK if i leave the system untouched without any activities.
what could be the issue?
any help is appreciated!!!
Thanks in advance
Bharathi
12-08-2014 01:50 AM
Hello, IVI!
Please let us know the version of LabWindows/CVI and CVI Run-Time that you are using!
Also, providing more context (e.g. some code, or even a project) would also help.
Best regards!
- Johannes
12-08-2014 09:23 AM
am using labwindows 2010 runtime and engine.
i am updating the progress bar percentage as 5.5% each in a 18loop ,
in intialize the follwing code is use:
"Gma_prg_panelHandle = LoadPanel (0, "Gamma_percentage.uir", PANEL);
ProgressBar_ConvertFromSlide (Gma_prg_panelHandle, PANEL_PROGRESS);
ProgressBar_SetAttribute (Gma_prg_panelHandle, PANEL_PROGRESS,ATTR_PROGRESSBAR_UPDATE_MODE, VAL_PROGRESSBAR_AUTO_MODE);"
in Loop :
for(data_point=1;data_point<=max_gamma_pts;data_point++)
{
/*Incremnt the Progress Bar for each Sample Point*/
gamma_per=gamma_per+5.55;
SetCtrlAttribute(Gma_prg_panelHandle,PANEL_PROGRESS,ATTR_VISIBLE ,0);
SetCtrlAttribute(Gma_prg_panelHandle,PANEL_PROGRESS,ATTR_VISIBLE ,1);
sprintf(buffer,"Working on GAMMA measurement... (Processing sample point %d of 18)",gamma_count);
ProgressBar_SetPercentage (Gma_prg_panelHandle,PANEL_PROGRESS , gamma_per,buffer);
/*other stuff*/
}
Thanks
Bharathi