05-07-2007 12:42 AM
05-07-2007 12:45 AM
05-07-2007 12:59 AM
05-07-2007 01:00 AM - edited 05-07-2007 01:00 AM
You have a race condition between the loop and the code above that clears the history data. Apparently, the history data gets cleared after the loop wrote the first point to the history.
Currently there is no data dependency so there is no way to tell in what order things execute.
East solution: WIre the error-out to the loop boundary (see image). Now dataflow ensures that the loop cannot start until the history has been cleared. (And delete the value property node to the right of it where you write a zero. make no sense.)
Message Edited by altenbach on 05-06-2007 11:00 PM
05-07-2007 01:08 AM - edited 05-07-2007 01:08 AM
It depends on pure luck if the chart history and "appended array" show the same values. If by chance the history read happens before the writing to the chart, the display will also be out of sync. You should ensure that the reading of the history can only happen after the chart received the new data point.
Message Edited by altenbach on 05-06-2007 11:08 PM