Activities/Turtle Art/Using Turtle Art Sensors: Difference between revisions

Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
Line 231: Line 231:


===Saving logged data to the Journal===
===Saving logged data to the Journal===
The following code [[File:Saveheaptojournal.doc]] (from V104 this is included with the samples)in the Python Code Block will save the heap as a text file named 'heap' in the Journal. The file 'heap' can then be opened with Write or Edit.
The following code [[File:Saveheaptojournal.doc]] (from V104 this is included with the samples) in the Python Code Block will save the heap as a text file named 'heap' in the Journal. The file 'heap' can then be opened with Write or Edit.


  def myblock(lc, x):
  def myblock(lc, x):