12-19-2008 09:34 AM
The Report Generation Express VI interacts with DIAdem in 3 ways:
From your problem description, it seems that you might not have included the scripts with your application. What you need is in vi.lib/platform/express/*.vbs. The scripts are expected to be in the same folder with the executable.
Hope this helps solving your problem. Sorry for the inconvience this has caused.
Herbert
01-16-2009 09:39 AM
Hi SCMAJA,
The solution has arrived! After pestering NI support here in Germany they send me a work around. It seems that the compiled exe could not find the script files, hence no data exchange with diadem. See below for solution!
1. Navigate to the following folder "C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Platform\express"
2. Find the files "PicExport.vbs" and "UpdateGraph.vbs" and copy them into the same directory as your exe.
3. If you need to use any of the standard DIAdem TDR templates or have not specified any custom TDR in your code... copy the whole "templates" directory from the path quoted in [1.] to your exe folder.
This has been tested and works a treat!
Hopefully you havent thrown away all the code you had!? Perhaps you could bring it back to life again!
All the best
Alex
01-16-2009 03:32 PM
Hi Alex
Thank you so much, finally I must say! 🙂
I will retrieve my files from the recycle bin and try it out this weekend. I'll let you know asap if it will work here too.
I ended up using another approach, where I compiled to a word doc with excel graphs instead, works pretty ok aswell.
Best regards
Simon
07-13-2010 06:38 AM
dear friends I've had the ame problem. the error code that I encountered was " the updategraph file in the exe rootfolder doesn't exist". this must be somthing related to VBS script file that connects the datasource to the template. I steel myself couldn't find what it is. the error code appeared when I opened my report in Diadem. I mean the output was set to printer. if you do it, the report willl be opened in diadem before it goes to printer. in this manner the error code appears. hope it helps. please inform me if you found any new thing to md.ashouri@gmail.com
07-13-2010 06:50 AM
Hello ashouri,
By following the steps i mentioned in previous posts, it should iron out your error. please make sure you find the two files (do a search on your computer) and place them in the same directory as your executable! If you have further troubles, post back
AL
07-13-2010 07:01 AM
I've just found thesolution, but not tested:
1. Navigate to the following folder "C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Platform\express"
2. Find the files "PicExport.vbs" and "UpdateGraph.vbs" and copy them into the same directory as your exe.
3. If you need to use any of the standard DIAdem TDR templates or have not specified any custom TDR in your code... copy the whole "templates" directory from the path quoted in [1.] to your exe folder.
07-13-2010 07:20 AM
I've found your other post and send it to this forum.
thankyou so much