Re: [Discuss-gnuradio] gr-trellis visual representation of FSM as a trellis

2007-02-06 Thread Tim Meehan

Achilleas,

In the original method line styles are handeled with the following line.

trellis_fname << " stroke-dasharray = \"3," <<  branch_num << "\" ";

"branch_num"  is the equiv to the input symbol number.  So for two
input symbols the 0th symbol will be a solid line and symbol 1 would
be a 3,1 dashed line.  I was thinking of overloading the method so it
could be called with a vector of strings (one for each input symbol)
where each string describes  SVG parameters for linestyles.  That way
you could assign colors or any SVG line style you desired.

After I read the style guide, I will clean up the code and resubmit
with suggested changes.

Tim


On 2/5/07, Achilleas Anastasopoulos <[EMAIL PROTECTED]> wrote:

Tim,

this is really cool!

Can you assign different colors
(or linestyles) to different input symbols?

Achilleas




___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] gr-trellis visual representation of FSM as a trellis

2007-02-05 Thread Eric Blossom
On Mon, Feb 05, 2007 at 05:46:44PM -0500, Tim Meehan wrote:
> Hello All,
> 
> 
> I spent some time today debugging hand written FSM descriptions which
> I typoed.  To help me find my errors I wrote a quick routine to
> generate a trellis representation of the FSM in the form of an SVG
> file.
> 
> I have attached a couple examples for the examples provided
> awgn2o4_4.fsm and disconnected.fsm
> 
> The method I added to the fsm class is also attached.   To use it you
> would have to put this in the fsm.cc file and make the required mods
> to fsm.h and fsm.i
> 
> Let me know if anyone has a better way to do this.
> 
> Tim

Cool!

I'd love to add this, possible renamed to write_trellis_svg.

We'll need a copyright assignment to FSF for this.  My next message to
you will have the form to get this started.

Thanks!
Eric


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio