Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67399

Revert any changes made on the front panel during runtime?

$
0
0

Hello Community,

 

I'm working on a front panel which changes its look during runtime. The user can resize the FP and according to the new size the controls/indicators change their size, position, color etc. (pls note: the function I realizes is NOT what you can set in the VI properties as "Maintain proportions of window for different monitor resolutions" nor "Scale all objects on front panel as the window resizes")

 

The problem I'm facing is that once the objects change position/color/size (or whatever) and the VI stops the changes stay on the front panel (currently not running), therefore when I run the VI the next time this current state will be the new initial state.

 

 

I could save the the state of the FP objects into a cluster (maybe even to a file) and then reload them once the VI finishes, but this is not a real good solution as this part of the code may not get executed (eg: I have to terminate the VI?).

 

What I'm really looking for is a way revert all changes initiated during runtime once the VI is stopped, no matter if the VI is stopped by the stop button, by an error, by shutting down labview or the VI just stops normally.

 

What would be the right was to solve this problem?

thx.

 


Viewing all articles
Browse latest Browse all 67399

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>