03-03-2008 06:44 PM
03-03-2008 07:14 PM - edited 03-03-2008 07:16 PM
Then you will need to set your controls by using local variables or property nodes (local variables are preferable) at the beginning of your program. Best way is to use a flat sequence structure. Put the setting of the controls in the first frame. Put your while loop that contains your current program in the 2nd frame. Now whenever you stop the program. (I hope you are not using Run continuous and Abort Execution buttons), then restart it, the controls will be put back to their default values.
artorus wrote:
I am having a problem with a program I am writing with Labview. I need the program to run continuously, but when the program goes back around it retains the previous values entered and does not allow me to enter new values. I need the values to return to default after each time the program runs completely through.
03-03-2008 07:28 PM
"OK buttons" are by default set to latch action. Thims means that they will be TRUE only until the are read by the code and then automatically revert to false. This is what you apparently want so there is no need to use locals and sequences.
artorus wrote:Boolean “ok buttons” to default values when running a continues program?I am having a problem with a program I am writing with Labview. I need the program to run continuously, but when the program goes back around it retains the previous values entered and does not allow me to enter new values. I need the values to return to default after each time the program runs completely through.
03-03-2008 07:36 PM
altenbach wrote:
"OK buttons" are by default set to latch action. This means that they will be TRUE only until the are read by the code and then automatically revert to false. This is what you apparently want so there is no need to use locals and sequences.
artorus wrote:Boolean “ok buttons” to default values when running a continues program?I am having a problem with a program I am writing with Labview. I need the program to run continuously, but when the program goes back around it retains the previous values entered and does not allow me to enter new values. I need the values to return to default after each time the program runs completely through.
As Ravens said, don't use the "continuous run" mode, but place your code in a suitable while loop.
03-04-2008 11:28 AM