LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the opcion Run Function Panel?

Hi everybody,
I'd like to know how can I probe the opcion Run Function Panel for
the library Set Control Value (for example), because when the opcion
is runned, return value = -4 (Panel, pop-up, or menu bar handle is
invalid). But the Panel Variable Name is declarated in the
source code with name "panelHandle".
What's wrong?

Thank you for yours answers.
0 Kudos
Message 1 of 3
(3,255 Views)
When you Run a Function Panel in interactive execution, it runs the function separately in the interactive execution mode. It does NOT run your entire program. Therefore, in your case, you are running SetCtrlVal and you have not called LoadPanel or DisplayPanel, therefore the SetCtrlVal is telling you the panel handle is not valid since it hasn't been loaded yet.

Interactive Execution is not really very beneficial with user interface function since you want to test those after the UI is loaded and displayed. The purpose of interactive execution is to run a single function or small set of function separately to see how it works alone before inserting it in your program. This is useful for function like analysis functions, string parsing, etc.

Best Rega
rds,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(3,255 Views)
Thank you Chris Matthews.


"Chris Matthews" escribió en el mensaje
news:5065000000050000005DA60000-1031838699000@exchange.ni.com...
> When you Run a Function Panel in interactive execution, it runs the
> function separately in the interactive execution mode. It does NOT
> run your entire program. Therefore, in your case, you are running
> SetCtrlVal and you have not called LoadPanel or DisplayPanel,
> therefore the SetCtrlVal is telling you the panel handle is not valid
> since it hasn't been loaded yet.
>
> Interactive Execution is not really very beneficial with user
> interface function since you want to test those after the UI is loaded
> and displayed. The purpose of interactive execution is to run a
> single function or small set of func
tion separately to see how it
> works alone before inserting it in your program. This is useful for
> function like analysis functions, string parsing, etc.
>
> Best Regards,
>
> Chris Matthews
> National Instruments
0 Kudos
Message 3 of 3
(3,254 Views)