Skip to content

Commit

Permalink
typos and formatting fixes for FluidDataSetWr help file
Browse files Browse the repository at this point in the history
  • Loading branch information
tedmoore committed Jul 7, 2022
1 parent 0a8da02 commit 3e46bb1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions release-packaging/HelpSource/Classes/FluidDataSetWr.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ strong::incremental buffer writing - sky is the limit::
code::


// start the entry maker, trigging twice a second
// start the entry maker, trigging 30 times per second
(
~ds.clear;
{
Expand All @@ -113,13 +113,16 @@ code::
~ds.clear

::
strong::circular writing::
strong::Circular Writing::

Each time link::Classes/FluidDataSetWr:: is triggered it is like the link::Classes/FluidDataSet#-setPoint:: method so if the identifier does not exist it creates it. If the identifier does it exist then it updates it with the new values.

By looping code::idNumber:: values, we can use a link::Classes/FluidDataSet:: similar to a "circle buffer", always have the most recent code::n:: points in it that we want.

code::

~ds.clear;

// always have only the most recent 10 points in the buffer
(
{
Expand All @@ -134,6 +137,6 @@ code::

//print regularly to see a specific identifier being overwritten
~ds.print;
~ds.clear
~ds.clear;

::

0 comments on commit 3e46bb1

Please sign in to comment.