Is there any way to change/define default settings for ViVa waveform viewer? I usually start my simulations with a script instead of directly via ADE-L and view the results using the standalone ViVa viewer.
As I typically want to save the plots for embedding in reports, I need to make the traces fatter ("bold") which is very painful if one has to do it by hand for all the curves.
How can I change this so that the traces are plotted bold by default? I'd also be glad to know what other settings I can modify at ViVa startup.
Found the solution. It is possible to define environment variables for ViVa in the .cdsenv file.
In my case, I used
wavescan.trace lineThickness string "bold"
This got me what I wanted. The ViVa help button turned out to be pretty useful in this case. Ought to have checked before posting.
Thats interesting when i select help-->contents and search for
"wavescan.trace" it can find that anywhere.
If i search on "line" I do find
viva.trace lineThickness tring "fine" nil
Which when i place this in the cdsenv file changing the fine to bold and correcing the misspelled "tring" it doesn't work until you remove the "nil" from the back end.
This works from the command line,
envSetVal("viva.trace" "lineThickness" 'string "medium")
These variables are only used for standalone ViVA use. If you are plotting signals from ADE, the line thickness and colours and line styles are controlled by the display.drf settings for layers y0-y9; this is so that probed nets show the same style and colour as they do in the corresponding schematic.
Viva for me *is* being launched by ADE, so using the viva.trace variables isn't working as Andrew warns.
I tried changing definition of y0 using the DRM, but this *also* had no effect on the yellow trace plotted by viva.
The default trace thickness is so thin as to be almost invisible on initial display, and certainly invisible once snapped and inserted into a presentation and shown on a projector.
If possible, I'd also like to default to sold line vs dotted, AND to use a white background with black axes.
Some of the viva settings seem relevant based on names but don't seem to have any effect. Of all of these settings, only the first seems to do anything:
viva.axis font string "Default,12,-1,5,75,0,0,0,0,0"
viva.axis minorGridForeground string "white"
viva.axis background string "white"
viva.axis foreground string "black"
viva.axis majorGridForeground string "white"
viva.trace lineThickness string "medium"
And as long as I'm asking for the moon, any way to make the grid color be something other than "almost exactly the same as the background" ?
It is clear that the defaults for this tool were selected by someone that doesn't need to use this tool.
> Some of the viva settings seem relevant based on names but don't seem to have any effect.
The number of variables that are actually implemented is limited.To find out which variables are available to set, look in the following file:
<IC615_install_dir>/tools/dfII/etc/tools/viva/.cdsenv The variables that are not commented out have been implemented.
To modify the variables permanently from your .cdsinit file, I've included a sample of the section of my .cdsinit file:
; ViVa default fonts to Clean; Added from Wayne Ingram's note on 7/24/2013;; If customer is setting font related cdsenv variables in .cdsinit (via envSetVal API),; there's a requirement to load the 'viva' context _before_ any envSetVal call is made.; This can be achieved by the following in the .cdsinit file:loadContext(strcat(prependInstallPath("etc/context/") "viva.cxt"))callInitProc("viva")envSetVal("viva.graph" "titleFont" 'string "Clean,12,-1,5,55,0,0,0,0,0")envSetVal("viva.axis" "font" 'string "Clean,12,-1,5,50,0,0,0,0,0")envSetVal("viva.horizMarker" "font" 'string "Clean,12,-1,5,50,0,0,0,0,0")
I hope this helps,