SigLab and Ptolemy
SigLab was done for Ptolemy users. It will allow to analyse simulation results in a more confortable way than XGraph, tkGraph, Pxgraph,... because it has manipulation functions in addition to display functions.
To use SigLab in Ptolemy, you just need to put SDFSciGraph or SDFSciGraphC stars in your schematic. You will not have a new siglab for each SciGraph, you will just add a curve in SigLab. So there will be only one curves window for each simulation. At the end of the simulation, a small interface pops up and proposes to start Siglab on all or only on some signals of the simulation.
Please, refer to the setup guide for knowing how to setup siglab within Ptolemy.
You need to understand how it works in order to make a good use of the possibilities. The next schematic shows a simple test schematic.

As you see, they are 2 SDFSciGraph stars. The parameters of the SciGraph stars are the following :

I suppose that you are not surprised. That is very close to a Xgraph parameter window. It is totally normal since I just modified the code of a Xgraph star. The first parameter is "saveFile". If you wish to keep the signal values just give a filename there. The signal will be stored in this file. The second parameter is "ignore". It gives the number of samples not to store in the file (I would like to know if it has ever been useful to anybody). The last parameter is "ascii". If you put 1 here then the file is in ascii format, else it is in binary float format. And in this case the file name MUST end with .d. The 2 last parameters allows you to give a comment concerning the signal as well as the sampling frequency (Fe). You will be able to see the comment in asking for info on the signals (button i on the signal line in siglab).
When the simulation is finished, an interface pops up and proposes to display the different signals in siglab.

When you leave Siglab, the interface changes and you are proposed to delete the signals that were automatically created (no filename given in the parameter SaveFile of the star).

I met some problems while running siglab from ptolemy. Especially sometimes I had not enough memory. Then an error was issued in scilab with an error shown on the line "stacksize(300000)".
iYou may display signals with complex values. In siglab, the complex signals are stored in 2 ways. In ascii files, on one line there is the real part followed by the imaginary part. i or j is not appearing anywhere. A line looks then like :
1.101000 2.000025
which here represents 1.101000+2.000025*%i. In binary files, the imaginary part follows the real part. The saving of imaginary signals is done through a SDFSciGraphC star.
You see below an schematic using it :

And the result of the simulation after siglab poped up :

As the signals are complex, the real part and imaginary part are displayed on 2 separated graphs. In the right and left margin there is a line showing that the 2 curves belong to the same signal.
If you provide a name in SaveFile, and choose to save a binary file (ascii parameter to 0), the extension of the file MUST be .cd .
Do not forget to destroy the signals at the end of the simulation in clicking on Delete button of the small tcl/tk interface. Its ugly, but it is the only practical solution that I found.



