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 I run CPN Tools on my Mac/Linux?

Can I run CPN Tools on my Mac/Linux?

With the advent of Intel-powered Macs, virtualization solutions exist for running Windows in a virtual machine under Mac OS X 10.4 and newer on Intel Macs. CPN Tools can be brought to run in this environment with reasonable performance for day-to-day use. The way I use is to run CPN Tools under Windows under either Parallels Desktop (www.parallels.com) or VMWare Fusion (www.vmware.com). You may also […]

Read Me Leave comment

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

Can CPN Tools open models from Design/CPN?

Can CPN Tools open models from Design/CPN?

CPN Tools cannot open models that were created by Design/CPN, but all models that are created in Design/CPN can be transferred to CPN Tools by following these steps: Save a Design/CPN model in XML format. Convert the XML file generated by Design/CPN to the XML format for CPN Tools. Load the file generated by the converter in to CPN Tools. Each of these steps are […]

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