dear prof wolfgang, the example http://www.compadre.org/osp/items/detail.cfm?ID=9661 has the same effect as the zip file i attached in the earlier post.
when the code _initialize() is run, the data is erase. the code _tools.showDataTool(_view.xytrail,_view.Etrail,_view.Vtrail) didn't allow me to figure out a way to store the data as in your reply "1) You can store the data in an array that is not erased."
i was looking at the codes in custom function called RecordData ()
//this section of the model is correct as well
//it recorded the data in a table
public void recordData () {
collectData = false;
magRow[0]=t; // period //question //i can't figure out how to store this permanently for another run data to be added on.
magRow[1]=r; // radius //
_view.xytrail //adding points to a trail to be accessed by dataTool _view.xytrail.newSegment(); //
_view.xytrail.addPoint(t, r);
collectData = true; }
may i request for another example that you can create quickly for this effect "1) You can store the data in an array that is not erased." thanks! :)
Post edited August 13, 2013 at 12:03 PM EST.
Post edited August 13, 2013 at 12:03 PM EST.
Post edited August 13, 2013 at 12:04 PM EST. Post edited August 13, 2013 at 12:05 PM EST.
OSP@SG blog
OSP@SG Digital Library
|