01-10-2012 07:19 AM
Hi ALL,
I have upgraded my diadem from 2010 to 11 and now this is not working anymore:
Call PicExport("X:\transfer\081022\"&SaveFile&"_scaled_tsr","WMF",1,768,1024,"",75,"",0)
when I try this script i get a first the failure message ==> acsess violation; and when i retry this function I get the message that this function is not activated
please help me:)
THX in advance
01-11-2012 08:27 AM
Hi,
please try if the same error occurs if you use different format for the picture,e.g..
"JPEG", "TIF", etc.
Check following link for different formats
http://zone.ni.com/reference/en-XX/help/370859J-01/comoff/picexport/
a second option would be creating a PDF export, and change the pdf file to an image file
Best regards,
Rupert Donauer,
National Instruments
01-16-2012 05:52 AM
Hy,
I have tried now almost all formats with the same result:
- when I use the picexport "by hand" it works fine!
- when I use the record function for scripting it is working...
- I stop the recording and want to run the script, it works the first time and then I get first the access violation msg and then the "not activated" msg
I dont wanna use the PDF eport because I have arround 200-300 pictures per "run" which I want to quickcheck ("scrolling" thru all pics witch a picture viewer) and this not very useful by PDF...
So there must be a solution?!!!! The same script was working with the last diadem version...
THX
Andreas
01-16-2012 02:55 PM
Hi Andreas,
I tried and retried your command with my DIAdem 2011 (SP1) and could not reproduce your error. What happens if you save the picture file instead to a local directory (C:\) instead of a network directory (X:\)? When you retry the script and it doesn't work, are you saving to the same file or a new file name?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-26-2012 04:54 AM
Hy Brad,
its the same when I try the local drive...
i have attached the whole script ...
THX so far
Andreas
01-26-2012 05:55 AM
Hi All,
finally I have now found the reason for the Problem...
ALL my used "old" templates are the reason!!! I have created now the exact same TDR with the new diadem and override the old template and it is working...
So lets do some reporting for the last month...
BR
Andreas