08-07-2009 12:08 AM
Hi. I am still a newbie in LabVIEW. I am currently using LabVIEW 7.1. I had created operating period subVI to control my main program. The function for this subVI is to let the program to operate within operating period.This subVI have two states, morning or evening.
Example:-
The morning state:From 7:00am to 6:59pm, the operate LED will switch on all the time.
The evening state:From 7:00pm to 6:59am, the operate LED will switch off all the time.
Problem Encountered: The user will run the program again if someone accidentally press the stop button. The program will start from evening state instead of the morning state.
08-07-2009 09:38 AM
Your problem most likely stems from the uninitialized shift register in the SubVI. If you hit the stop button and then restart the software, the value will remain in the shift register from the previous run. You need to add something to the subVI that will allow you to intialize the shift regester when the program is started.
08-07-2009 09:41 AM