Giuseppe, The WritePNG function used some calls that were deprecated in an older version of the libpng library, and so it might not work on 0.13. I just checked and it does work on Linux, but I don't know about Win7 right now. I haven't systematically tested this function before each release, as I didn't think anybody but me would use it, and I only used it once or twice. It could be something as simple as linking it with the right library, but I suspect the problem is nothing you did. I'll put it on my list of things to check before the 0.14 release. If this is a high priority for you, I might be convinced to look at it sooner and see if I can make it work.
You might try 0.12 (although you may need to work around a few updates to PEBL). Otherwise, it looks like you are using it to get a visual record of a particular trail path...not knowing what your purposes are, you might be able to rely just on the recorded xy coordinates, rather than recording a screenshot for each trial. Best, Shane > Dear all, > I am trying to use WritePNG in PEBLv0.13 on Windows7: > > pngName <- "gtrails_"+gSubNum+".png" > WritePNG(pngName,gWin) > > but the script exit with error > > Failed to write png file > Exiting PEBL because of captured signal. > > The file .png is created but empty. > > Any suggestion? > > Cheers, > -- > Giuseppe Cabras, PhD - Chemistry, Physics and Environment Dept. > InterUniversity Center for Behavioral Neurosciences http://icbn.uniud.it > University of Udine - via delle Scienze, 206 - 33100 UDINE > Phone: +39-043255-8212 - Fax: +39-043255-8222 > SMS: http://www.fisica.uniud.it/cabras/SMS.html > URL: http://people.uniud.it/page/giuseppe.cabras > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk_______________________________________________ > Pebl-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pebl-list > ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Pebl-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pebl-list
