01-07-2016 12:35 AM
Hi..
First of all... Sorry for my week Communication skills...
I am new to labWindows/CVI and developing an application to monitor environmental conditions of a test room using Rs232 communication.
My Problem is... I want to Reset whole appllication to its default/ starting point (including allvariables and controls) from single button.
I have 6 panels and approx 90 variables.
is there any way?
I dont want to use Quit Button as It Quit the whole application ..
DefaultCtrl only reset controls ...... I want to reset whole application... including variables....
Thank you all
Solved! Go to Solution.
01-07-2016 03:14 AM
sorrry
* weak
01-07-2016 04:13 AM
There is no built-in function to do so - you will need to implement this yourself. So if a user presses the Reset button of your program you will have to set / reset all parameters to the default values.
You may want to consider a more general approach, that is, on program startup read a configuration file, and on program exit, save all parameters to this configuration file - the user will be happy the next time he starts the software to find his previous settings.
This extra effort then has the benefit that on 'reset' all you need to do is to call this initialization routine again, i.e., read and set all the values.
01-13-2016 11:24 PM
Thank You So Much
01-13-2016 11:34 PM
My pleasure!