Hello,
Currently I have a relatively simple gui in a .uir file, it is just a panel with a tab control on it. It has two pages, and each one has various fields and control buttons. I am trying to read a value from a numeric on a tab. It always gives me the error
NON-FATAL RUN-TIME ERROR: "AutoUF.c", line 63, col 5, thread id 0x000006E0: Library function error (return value == -4 [0xfffffffc]). Panel, pop-up, or menu bar handle is invalid
Here's what I have:
#define PAGE_ONE 0;
#define PAGE_TWO 1;
static int panelHandle;
static int acqTabPanelHandle;
static int chanTabPanelHandle;
double temp;
panelHandle = LoadPanel (0, "AutoUF.uir", PANEL) //returns 1 always
//both of the next two function calls return 0 always
acqTabPanelHandle = GetPanelHandleFromTabPage (panelHandle,PANEL_Main,PAGE_ONE,&acqTabPanelHandle);
chanTabPanelHandle = GetPanelHandleFromTabPage (panelHandle,PANEL_Main,PAGE_TWO,&chanTabPanelHandle);
//So then, if I do something like this I get the error
GetCtrlVal(acqTabPanelHandle, AcqTab_field_sampPeriod, &temp);
I've used CVI 8.0 before and this is how I did it, I am currently using CVI 8.1. For reference, my main panel in the .uir is called PANEL. The Tab is called PANEL_Main. The first tab is called AcqTab, the second is ChanTab.
Thanks in advance!
Alex
Message Edited by Baselerd on
05-27-2008 12:25 PM