The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Other CAD Tools >> Entry Tools >> Capturing wave forms from ocean/skill https://designers-guide.org/forum/YaBB.pl?num=1249978522 Message started by gzatorre on Aug 11th, 2009, 1:15am |
Title: Capturing wave forms from ocean/skill Post by gzatorre on Aug 11th, 2009, 1:15am Hi every body, I am developing an ocean script that plots some data and I want to capture the wave form window automatically. To do it I am trying to use: window=newWindow() currentWindow(window) plot( Vout ?expr '( "Vout" ) ) system(strcat("xwd -out " out_file " -name " window )) It does not work because the window variable is "window type". In fact, if you write this in ocean: strcat("hola" window ) You will have this *Error* strcat: argument #2 should be either a string or a symbol (type template = "S") - window:2 Is there any way to convert a "window type" variable to "string type"? Even more, is there any other way to capture the wave form window? Thank you in advance Best regards Guillermo |
Title: Re: Capturing wave forms from ocean/skill Post by Andrew Beckett on Aug 15th, 2009, 6:52am Well, you could get the window ID as a string, but it's not going to help you because it is not the X window ID. For example: window->windowNum will return the window number. The best solution is to make sure you're using Wavescan rather than AWD as your waveform tool. Then you can use: hardCopyOptions(?hcOutputFile "waveform.png") hardCopy() If the filename has the suffix .png, .tif, .tiff or .bmp then a bitmap image will get created from the window contents (the same as File->Save As Image menu). Regards, Andrew. |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |