O: Oscilloscope or Graphs Block.
MJMcCann-Consulting

Graphs provides the connections for the graphical display of results and for data recording.
MJMcCann-Consulting Logo

Graphs (oscilloscope) Block.
There's only one. It's block 19. It appears on the starting screen, with connections to its default sources of scaling and time span.
To connect other blocks in for display of their output values, rt-click on the Graphs block and edit the required items into the list of up to 10 blocks.
The graphing proceeds by a two step process.
First the data is recorded as if in a tape recorder (data logger) which is quite separate from the memory blocks and then the graph is generated from that data.
The result is that a record is kept of the progress of the simulation and the graph can be brought up at any time.
The current version is somewhat inefficient, redrawing the graph each time it is invoked, but the data is being recorded so the graph can be suppressed (use the [Graph?] button) and brought up only when needed.

Tricks
The display of all the links can be supressed if they make a mess of the diagram by using display mode 4.
The scaling for the graph can be changed by changing the output values of the system 'constant' blocks:
GrTmin (14), GrTmax (15) , GrYmin (16) , GrYmax (17).
The graphing interval (also the recording interval) can be changed by changing the output value of GrDel (6). Don't mess about with GrNext (7) as it is updated by the system. If you want any of these values as inputs to the calculation, they can be treated as constants.
The graph can have its scaling parameters provided dynamically. For example connect the GrTmax link of block 19, Graphs, not to the default block 15, but to the Time block 2, and connect the GrTmin link to a calculated value of (Time-Offset) and the result is a rolling chart recorder display.

Data Recording
The data for the graph is being recorded in a file that is up to 10000 records long. In the present version, that's the limit. So if the run goes on more than that, it wipes the first 2000 records and carries on, keeping the more recent values.
The number of values stored per record is one (i.e. Time) more than the number of inputs selected for the scope.
These records can be saved as a text file for use elsewhere. See the page Save Model, data
The recording can be delayed by setting a late time for the first entry, the sampling interval, GrDel can also be changed.

MJMcCann-Consulting

Help Index:
Index/Search

Background
Simulation Concepts
Continuous Systems
Discrete Systems
McSimAPN Structure
McSimAPN Operation

Using McSimAPN
Start McSimAPN
Save Model,data
Create Blocks
Run-Hold-Reset
Link Excel+VBA

PetriNet Block Types
A activity/action
B belt conveyor
C container/constant
D diverter(random)

Analogue Block Types
E exponents
F flux/flow
G function Generator
H hysteresis
I integrator
J inductor
K logic element
L logarithms
M memory
N note/label
O oscilloscope/graph
p not assigned
Q quantizer/rounding
R relay on/off
S sin/asin/atan
T timer/clock
U user link Excel
V visual voltmeter
W sWitch selector/MUX
X multiply
y not assigned
Z random (fuZZ)
& signed summation
% division/difference
@ access/move values

Invitation. McCann can help if you have a design or operational problem that needs some technical support that is outside your team's experience, some quantitative assessment of what is really the cause of the difficulties, some design alternatives or just a fresh look by an intelligent interrogator.
If you have a problem with the behaviour of a market sector, plant, process or item of equipment and would like to get a quantitative handle on it to improve yield or optimise performance, then contact us. We are always ready to give a little time to discuss a new puzzle, in confidence, of course. We'll only worry about fees when we have some defined work. We can be flexible about how we work with you.
Top
MJMcCann-Consulting,
POB 902,
Chadds Ford PA
19317 USA.
T: 1 302 654-2953
F: 1 302 429 9458
E: mjmccann@iee.org
Request. Please let us know how you found this software and your interests by sending an email to mjmccann@iee.org Thank you Date: 2012.02.26
File: o.htm