11-08-2006 06:39 AM
11-19-2006 05:46 PM - edited 11-19-2006 05:46 PM
Message Edited by Kurt NI AE on 11-19-2006 05:47 PM
11-20-2006 04:41 AM
11-21-2006 07:25 AM
Hi Richard,
If your VI has a loop that uses an un-initialised shift register then it will retain values for repeat ‘runs’ of the application. i.e. if you programmatically stop the VI and then run it again then on this execution it will still have the values in the shift register. However if you power cycle (switch off and back on again) the cRIO then the VI running on the controller will not retain values in the un-initialised shift registers. There isn’t a difference between
Perhaps you could set things up programmatically so that the last value from the shift register could be logged to a file (that would reside on the cRIO) that can be read back to give shift register such a starting point when the VI boots on start-up?
Kurt
Applications Engineer NIUK
11-21-2006 07:52 AM
Kurt, Richard, et al,
I agree with the theory or Kurt's reponse but there was a bug in either 7.0 or 7.1 where the contents of a shift register could work its way back into the code ON DISK. At the time we joked about it being "self-modified code".
So there is a possibility Richards code was taking advantage of this bug.
Trying to help,
Ben
11-21-2006 09:58 AM
11-21-2006 10:35 AM - edited 11-21-2006 10:35 AM
Message Edited by RichE on 11-21-2006 10:37 AM
11-21-2006 10:40 AM