I think I found my answer in the unofficial mailinglist archives:
http://beta.xmicron.com/98_58/msg00400.html
Message text follows:
---------------------------
To: INFO-LW@postal.tamu.edu
Subject: Re: FW: UIR sending unknow/incorrect panel Constant
From: Will Meyer
Date: Wed, 24 Jun 1998 09:50:10 -0500
Reply-To: LabWindows/CVI and LabWindows/Dos Technical Forum
Sender: LabWindows/CVI and LabWindows/Dos Technical Forum
Eric,
CVI will pass the Panel Handle (the integer returned from LoadPanel) to the callback
function, not the panel's Constant Name (the integer #defined in the generated
header). You want to switch on the handles, which you need to keep track of. The
Constant Name is only used to specify the panel in the LoadPanel call...from then on,
you use the handle for everything. Take a look at the function panel help of
InstallPanelCallback, for example...
Best Regards,
Will Meyer
"Jones, Eric" on 06/24/98 09:38:00 AM
Please respond to "LabWindows/CVI and LabWindows/Dos Technical Forum"
To: INFO-LW@postal.tamu.edu
cc: (bcc: William Meyer/AUS/NIC)
Subject: FW: UIR sending unknow/incorrect panel Constant
I'm sorry, below I state that the PANEL_MAIN senario works fine, I just
found out that the reponse for the PANEL_MAIN controls are incorrect
also. I get panel=1 instead of 3, for the controls operated from the
PANEL_MAIN. Those were working correctly prior to adding PANEL_GRAF.
-----Original Message-----
From: Jones, Eric
I have six controls and a graph on a panel. The controls simply tell me
which plots of the six to display on the graph.
#define PANEL_GRAF 2 /* callback function:
MS_GraphViewPanelFunctions */
#define PANEL_GRAF_PROBE2 2 /* callback function:
DS_TraceOptions */
#define PANEL_GRAF_PROBE4 3 /* callback function:
DS_TraceOptions */
#define PANEL_GRAF_PROBE3 4 /* callback function:
DS_TraceOptions */
#define PANEL_GRAF_PROBE1 5 /* callback function:
DS_TraceOptions */
#define PANEL_GRAF_HUMIDITY 6 /* callback function:
DS_TraceOptions */
#define PANEL_GRAF_CONTROL_TEMP 7 /* callback function:
DS_TraceOptions */
#define PANEL_GRAF_GRAPH 8
#define PANEL_MAIN 3 /* callback function:
MainPanelFunctions */
#define PANEL_MAIN_PROBE2 41 /* callback function:
DS_TraceOptions */
#define PANEL_MAIN_PROBE4 42 /* callback function:
DS_TraceOptions */
#define PANEL_MAIN_PROBE3 43 /* callback function:
DS_TraceOptions */
#define PANEL_MAIN_PROBE1 44 /* callback function:
DS_TraceOptions */
#define PANEL_MAIN_HUMIDITY 45 /* callback function:
DS_TraceOptions */
#define PANEL_MAIN_CONTROL_TEMP 46 /* callback function:
DS_TraceOptions */
#define PANEL_MAIN_CONTROL_SETPOINT 47 /* callback function:
DS_TraceOptions */
I have similiar controls on my PANEL_MAIN but there doesn't seem to be a
conflict.
When I select a control, say PANEL_GRAF_PROBE2, the panel value in the
Callback function is equal to 9. The callback is set up to switch off of
PANEL_GRAF. I have no panels with a constant equal to 9. I've been able
to work around it by switching off of 9, but this is not the desired fix.
In this code, I'm expecting panel to be either 2 or 3, as defined in the
auto generated .h file for the .uir file. I get panel = 9, when the
PANEL_GRAF controls are operated. The PANEL_MAIN controls seem to
operate fine.
switch (panel)
{
case PANEL_MAIN:
switch (event)
{
case EVENT_COMMIT:
switch (control) {
case PANEL_MAIN_CONTROL_SETPOINT:
traceNumber = 1;
break;
.
.
.
}
break;
}
break;
case PANEL_GRAF:
switch (event)
{
case EVENT_COMMIT:
}
etc.
Has anyone seen this problem before? My UIR contains 7 panels, is there
some sort of limit I have reached?
Eric Jones
Design Engineer
Functional Test
Plexus Technology Group
920-751-5497
920-751-5366 (Fax)