In the code in the attachment I have  intend that everytime  the data generated by Lua are updated metapost should make immediately their representation. 
However, it insists into represent only the last data generated.
How can I fix this problem?

thanks

Jorge