Dear NI,
LabCVI V8.1 and 8.11 do not programmatically update my ring control index upon initialization. V7.11 did it correctly
Is there any work around for this issue?
Below is some of my code:
int main(int argc, char *argv[])
{
int i;
if (InitCVIRTE (0, argv, 0) == 0)return -1; // out of memory
if ((TopPanel = LoadPanel (0, "TEST.uir", PANEL)) < 0)return -1;
TabCtrl = EasyTab_ConvertFromCanvas(TopPanel, PANEL_CANVAS);
EasyTab_LoadPanels(TopPanel, TabCtrl, 1, "TEST.uir", __CVIUserHInst,NZEPANEL,&NzePanel,UTIL_PANEL,&UtilityPanel,0);
DisplayPanel(TopPanel);
GetProjectDir (Proj_Dir);
i = OpenFile (init_file, VAL_READ_ONLY, VAL_OPEN_AS_IS, VAL_ASCII);
if (i>0)
{
ReadLine (i, Temp[0],99);
ReadLine(i,Interface_Type,1);
ReadLine (i, User_Comm,2);
CloseFile(i);
}
Interface = atoi(Interface_type);
SetCtrlIndex(TopPanel,PANEL_INTERFACE,Interface); //Interface value = 2, but ring index stayed at 0
ProcessSystemEvents();
ProcessDrawEvents();//Just to verify if this works or not
......
RunUserInterface();
.....
Best Regards
Ton Nguyen