LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Return from panel-callback to console code

Solved!
Go to solution

Hi to all,

 

I wrote a console-app - works fine all the time.

Now the User of the app wants to set up some parameters.

I decided to load a panel to set the parameters.

After setting all the params the user have to check the resume button to return to console.

 

My Callback function fetches the params and THEN I call DiscardPanel() ..

But now - program stops because the Callback did not jump to the point where I loaded the panel.

 

My Workaround: using longjmp() and setjmp()

 

I'm not amused about my solution.

Someone knows a better solution to return from a Callback in console app?

 

Thanks for your advice ..

 

 

0 Kudos
Message 1 of 2
(2,543 Views)
Solution
Accepted by topic author Zesty714

I got it ...

 

DiscardPanel (1);
QuitUserInterface (return code);  <--- solution

Message 2 of 2
(2,527 Views)