07-10-2008 05:04 PM
07-10-2008 08:38 PM
07-11-2008 12:32 PM
Yes...I see that would be true while "Time stamper" is executing. However...
Inside the main program, as you can see from an earlier post, I have a while loop which tracks the time and displays it on the front panel. In that while loop, "Time stamper" is not run continuously. It runs it for one second and then exits, the loop iterates, it runs it again, the loop iterates, etc.
Each time the while loop in the main program calls "Time stamper", the shift register in "time stamper" should initialize to the current computer time, since the "Get time in seconds" function is called and the output of that function is used to initialize the shift register. Right?
I am finding that it does not.
So, I see what you're all saying, and the behavior would indeed make sense if "Time stamper" was running continuously, but I think you might be losing sight of the fact that the main program enters and exits "Time stamper" every second -- so that shift register should be re-initializing for each call of the subroutine.
Thanks!
07-11-2008 01:10 PM
07-11-2008 03:46 PM
Well, that's curious. Must be something weird about this particular computer, then, because it doesn't when I do it.
In a previous incarnation of this particular subroutine, the shift registers were useful. You are right that I could take them out now.
Thanks again!