LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

multi .uir files problem

If there are 4 or 5 .uir files under 1 .prj file needed to be display remotely, what steps should i do?
i only able to dislay 1 .uir file remotely, but when i tried to link to other page from the 1st .uir page, i failed to do so.

i include my problem in word file here so that you all will understand clearly about what i was asking about.


If I follow the commandline below, I was only able to display the 1st frontpanel on the webpage,which select the ‘simulation’ , ‘realtime’, or ‘exit’, the rest I don’t know how to include inside in order to display the rest of the .uir files.


************************************************************************
handle = LoadPanel (0, "yit.uir", PNLINTRO);
/*popuphandle = LoadPanel (handle, "yit.uir", POPUP);*/
DisplayPanel (handle);
webserverHandle = INET_StartWebServer (81, 10, "","c:\\yit1");
INET_RegisterPanelAutoUpdate (webserverHandle, handle,
INET_UPDATE_CLIENTPULL, "Testpanel.jpg",
"index.htm", 0, 0);
INET_RegisterPanelWebInput (webserverHandle, handle, "Testpanel.map", 0);

RunUserInterface ();
INET_UnregisterPanelAutoUpdate (webserverHandle,
autoupdateHandle);
INET_EndWebServer (webserverHandle);

INET_PanelToJPEG (handle, "test.jpg", 0, 81);
**************************************************************************************
0 Kudos
Message 1 of 3
(3,230 Views)
Hi,

First, I would go ahead and load all the uirs and panels at the beginning of the application by calling LoadPanel several times, and having a handle for each panel.

handle1 = LoadPanel (0, "yit.uir", PNLINTRO);
handle2 = LoadPanel (0, "yit2.uir", PNLFOO);
handle3 = LoadPanel (0, "yit3.uir", PNLBAR);
handle4 = LoadPanel (0, "yit4.uir", PNLWORLD);

Then, to display each, you can call DisplayPanel within the button callbacks. In addition to this, you may also have to update the remote panels and register the panel inputs each time. So essentially, each button that leads to a new panel will have some initialization code similar to the code you have written already, and it should update the webpage as you progress and press buttons. Hope this helps!
Jeremy L.
National Instruments
Message 2 of 3
(3,214 Views)
hi Jeremy,

thanks alot for the steps provided, i managed to dislay all the .uir files after repeat doing the same steps for each of the .uir needed to be called.

thanks again 😃
0 Kudos
Message 3 of 3
(3,205 Views)