DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

picexport is not working with SCRIPT

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

 

 

 

0 Kudos
Message 1 of 6
(4,723 Views)

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

0 Kudos
Message 2 of 6
(4,711 Views)

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

Download All
0 Kudos
Message 3 of 6
(4,691 Views)

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

0 Kudos
Message 4 of 6
(4,683 Views)

Hy Brad,

 

its the same when I try the local drive...

 

i have attached the whole script ...

THX so far

Andreas

 

0 Kudos
Message 5 of 6
(4,653 Views)

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

0 Kudos
Message 6 of 6
(4,652 Views)