Iteration over lists/arrays/etc in a function to calculate values during simulation

Iteration over lists/arrays/etc in a function to calculate values during simulation

Q: I just have a simple question, because I cannot find some example about it. It is possible to iterate over a collection (arrays, list, etc) just to calculate some values in a function, when executing the simulation? I want to calculate “mean” and “deviation” values, taking them from indexing 2 arrays I have in the declaration, to later send them as parameters for a […]

Read Me

Does CPN Tools take advantage of multi-core processors?

Does CPN Tools take advantage of multi-core processors?

No, CPN Tools uses two processes: one for the GUI and one for the simulator, which are both single-threaded. Using Access/CPN you might be able to distribute a simulation over different simulators, but there is no work done on this yet.

Read Me

Can’t simulate model/Model stays orange

Can’t simulate model/Model stays orange

File location [0] The CPN Tools simulator is running in a separate environment (under Cygwin) which may have problems reading .cpn model files stored in a “strange location”. Try saving your model in a directory/filename without special characters (no spaces, only basic ASCII characters, e.g., A–Z, 0–9,_). Stale preference files [1] First, try deleting stale preferences.xml files. It is located in the user settings directory, […]

Read Me Leave comment

Why is the simulation report not saved?

Why is the simulation report not saved?

In version 1.4.0 (and earlier) of CPN Tools, the help pages indicated that simulation reports are saved in the directory C:\tmp. If this directory does not exist, then a simulation report will not be saved. Simulation reports are saved by default as C:\tmp\simrep-<process id>.txt. There are, however, problems if CPN Tools is not installed on the C: disk drive. If CPN Tools is not installed […]

Read Me Leave comment

Why does the tool crash when I try to open a net?

Why does the tool crash when I try to open a net?

Prior to version 1.5.7 the tool would crash when loading a net with declarations with syntax errors. Please update CPN Tools to a more recent version.

Read Me Leave comment

Why can’t I see the GUI when I start CPN Tools?

Why can’t I see the GUI when I start CPN Tools?

This problem can occur if you have closed CPN Tools when it was minimized. This is a known bug which has been fixed from version 3.0.0 onwards, but may still occur if you remove monitors from your setup. If you can see an icon for CPN Tools in the task bar, then just right click on the CPN Tools window in the task bar and […]

Read Me Leave comment

Why can’t I generate a state space for a timed net?

Why can’t I generate a state space for a timed net?

It has not been possible to generate state spaces for timed CP-nets due to a bug in the state space tool. This bug is in all external releases up to and including version 1.4.0 and all internal releases up to and including version 1.5.21. Please update CPN Tools to a more recent version.

Read Me Leave comment

Why are the log files for monitors empty?

Why are the log files for monitors empty?

This is probably due to the fact that the output streams for the log files for Data collector monitors and Write-in-file monitors are not flushed regularly. The output streams for monitor log files will always be flushed at the end of a simulation if the Fast forward tool is used to run a simulation, or if the simulation stops because a breakpoint monitor is fulfilled. […]

Read Me Leave comment

Is there support for performance analysis?

Is there support for performance analysis?

Yes, high-level support for simulation-based performance analysis was introduced in version 2.0.0 of CPN Tools. Information about the facilities can be found in the help pages.

Read Me Leave comment

Is there support for invariants?

Is there support for invariants?

No, there is currently no support for calculating place or transition invariants.

Read Me Leave comment