04-26-2009 04:25 AM
Hi all,
really need some help here.. The problem is that firstly, when i stop the vi from running, and try to run it again, it doesn't initialize to the original values, instead, I have to make some kind of change to the block diagram( by changing some constant values for example), and den when i run it again, it is able to work fine. Any clues on how to fix this?
Solved! Go to Solution.
04-26-2009 07:19 AM
Of course it doesn't initialize after stopping. You have not written any code to do so. To do it manually, all you had to do was to select Edit>Initialize to Default Values. You also seem to have been running the program with the run continuous button . DO NOT USE THIS. You need a while loop around your case statement and then initializing it is simple.
See the attached modification. I also cleaned up some of the unnecessary code.
04-26-2009 07:20 AM
04-26-2009 01:33 PM
Student-
Simple answer- you have an uninitialized shift register in your for loop.
Look into Functional Globals, shift registers, and action engines. You will learn in time
04-27-2009 11:21 PM