A local variable should work perefctly for a situation like this. The important thing to understand in this matter, is when a node on the block diagram is being read or written to. And the answer: as soon as it's ready and everything before it is complete. As long as both the terminal is being written to (like in Neona's example) and the local variable is being read (the code reading it should keep running), they should be synchronized. If your code stops running, however, then the local won't recieve the updates. You can use Highlight execution (the light-bulb button) to see this nicely.
___________________
Try to take over the world!