DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate pdf from labview using DIAdem

The Report Generation Express VI interacts with DIAdem in 3 ways:

  • Load a TDM file that contains data and information about which report objects that data will be assigned to
  • Load a report layout
  • Run a script that assigns data from the TDM file to the report


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 

Message 11 of 17
(2,439 Views)

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! :smileywink:

 

All the best

 

Alex

:. LV2010 SP1 ... W7 .:
Message 12 of 17
(2,323 Views)

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 

LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 13 of 17
(2,312 Views)

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 

0 Kudos
Message 14 of 17
(1,580 Views)

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

:. LV2010 SP1 ... W7 .:
0 Kudos
Message 15 of 17
(1,578 Views)

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.

0 Kudos
Message 16 of 17
(1,576 Views)

I've found your other post and send it to this forum.

thankyou so much

0 Kudos
Message 17 of 17
(1,574 Views)