Re: [Gtkwave-users] Requests: signal name for bound process script, export SVG,
Brought to you by:
gtkwave,
joel1234567
From: Sujay P. <ele...@gm...> - 2023-03-20 06:19:41
|
Hey Tony, Thanks for the reply. But I don't understand the responses 1 and 3: 1. Yes, a new process will be spawned for every signal. However, the logic of the executable will still remain the same. I want to do something like: if 'sig_name' == 'signal0': sys.stdout.write('None\n') else: sys.stdout.write(readline) Unless we pass the metadata for the signal, I don't see how a separate process will help. Either passing in the signal name/id as metadata on stdin, alongwith the signal values, or calling the process with an argument in the TCL script would work. Is there a way to accomplish this? 3. I know about those rc variables. However, those are static aren't they? I want to be able to change the waveform text foreground color dynamically (per wave phase), just as we do with the background color (using the ?...? prefix before the value in the translation file). Is there a way to do this? On Mon, Mar 20, 2023 at 1:01 PM <by...@nc...> wrote: > Thanks for your comments. > > 1) Each signal has a separate process instance / set of stdin/stdout > attached to it for process filter, so even though you'd be able to use a > single script, performance-wise it wouldn't really make too much difference > as multiple processes will be created, anyway. > > 2) Unfortunately, I don't have the time for such a thing right now. PS > and Framemaker do generate lists of vectors but I don't know if a converter > exists from those to SVG. Someone else is working on a GTK4 port and I > don't know if his changes will address this as I believe he was planning on > collapsing the redundant print.c code into what signal.c/waveform.c already > does. > > 3) The rc variables fontname_signals and fontname_waves should allow > changing the fonts. See function do_font_load() in fonts.c. > > Best regards, > -Tony > > ----------------------------------------- > From: "Sujay Phadke" > To: gtk...@li... > Cc: > Sent: Sunday March 19 2023 11:52:19PM > Subject: [Gtkwave-users] Requests: signal name for bound process script, > export SVG, > > Hello everyone, > First of all, I must say the GTKWave is an excellent program. Kudos! > > I wanted to request the following: > 1. Signal name for process filter script - currently, I have a python > script used as a process filter for various signals. However, I want to > parse the input data differently, based on what signal it is coming from. > Example: for signal0 I may want to convert “-1” to “None”. However, I may > not want to do that for signal1 > > The only want I know of currently is to attach different scripts to > different signals, which is inefficient. Is there a way that the signal > name could also be passed on to the script? > > 2. Please consider having the ability to export the current view as SVG > file. It makes it much more efficient for presenting or pasting into a > webpage. > > 3. Can the font color of the text inside the waves be changed? I can only > change the background color of a waveform using the “?bgcolor?” prefix > before the name. Problem is, some background colors are useless since the > text inside is too light in color. I’m forced to use only dark backgrounds > as a result. > > Best regards, > Sujay > _______________________________________________ > Gtkwave-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtkwave-users > |