08-05-2008 06:01 AM
08-06-2008 07:43 AM
Hi Simon,
I edited both your VI and the TDR file, and now I believe it does what you want. I actually created 2 TDR layout files, one in portrait mode with the table as columns and the other in landscape mode with the table in rows. Note that the "Text values" control on the front panel now wires in the descriptive text fields dynamically to the bottom section of the report.
Ask if you have further questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
08-22-2008 02:45 AM
Hi Brad
It seems to work just great now, thank you very much 🙂
Now I have another problem I hope you can help me with. I now want to compile this VI to an EXE, but when I have compiled it, the EXE works fine but when I press a button to create the PDF, none of my data and textfield values like user and material name is plotted to the PDF. The graph is empty and the fields for user and material are either empty or set to some default value. How do I get this to work?
Best regards
Simon
08-22-2008 10:23 AM
Hi Simon,
My guess is that the TDR layout files the "DIAdem Express" block is using in the VI are not being found by the EXE. Typically you build an installer and include the TDR files in the list of files to install. I'm not actually sure, though, where the TDR files need to be in order to be found by the EXE, but I have heard of this problem before and heard that installing the TDR files properly is the solution.
Let me kno if you can't figure out where to install the TDR files-- in that case I will ask R&D for help.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
09-08-2008 06:53 AM
Hi Brad
I have tried to build an installer and compile an exe and nothing seems to work regarding the template, eventhough I place the TDR file in the same directory as the executable. I can see that the pdf, that is generated, is using the right template, there is just no data in the pdf, I have even tried to plot the graphs in the VI, so I am sure the data is there, pretty weird.
I have attached my little example in the following zip, containing the VI, TDR and installer. It is made in LV8.5 and DIAdem 11 and I run it on the same machine as I compile i.
I have made a ring control to choose between two different paths for the TDR, because the path doesn't seem to be the same when you run it in LabVIEW and running the executable.
But again, I can see that it uses the right template, or else the pdf would just be blank, but there is just no data 🙂
Can you take a look at it?
Best regards
Simon
10-02-2008 03:47 AM
Hi again Brad
Have you had any luck in figuring out, why I cannot get the Diadem reportgeneration to work, when I compile it to an exe-file?
Best regards
Simon
12-11-2008 09:56 AM
Im also having exactly the same issues... I also have 8.5 and DIAdem 11. When compiling to an exe, its like no data and text properties are passed to the DIAdem Report Express VI, however when i use the same VI but within the LabVIEW environment and run it. it works fine!?
hmm, this is really dodge. anyone found a solution yet?
Alex.
12-11-2008 11:39 AM
Hi Ali66b
I didn't find a solution to the issue, so instead, I made a report to WORD (*.doc) which works fine when you compile an executable, and you can make a pretty nice report layout there also. The only difference is that you got a word doc-file instead of a pdf.
Hope this helps
Best regards
Simon
12-11-2008 12:13 PM - edited 12-11-2008 12:14 PM
Hi Simon,
Thanks for the info. This im really mad about, Ive spent days creating layouts, VIs that extract data from various TDMS files and built my whole project around this tool, and then I go to compile it and it doesnt even work! This has really finished me off, im screwed. Did nobody test this feature at NI - because thats what is seems like. B##locks. I initially had a great image of NI and its products, but my patience is surpassed.
Simon, is exporting to DOC available in the standard labview function set? and is it possible to get the nice vector based graphs into word or are they just snapshots of the front panels?
Thanks again
Alex.
12-12-2008 02:07 AM - edited 12-12-2008 02:09 AM
Hi Alex
I understand your frustration, I have been there too
I build my whole application for the use of DIADEM and then it didn't work when I compiled the program. I have tried including the template in a project as a dependency but nothing of the things I have tried worked..
So now I use a word report instead.
I am not sure if you need any special toolkit besides the standard Labview package, I think you will need LabVIEW Report Generation Toolkit for MS office. Try and do a search in the Labview examples for MS Office Report, the Express VI I use is called this.
You can make a template in word (*.dot) that you can customize to your likings (e.g. color, formatting) and link it in Labview with the Express VI (MS Office Report), and you should be able to customize the appearance of graphs too. HOWEVER, I have had some troubles customizing the look of my graphs, as default the graph from Labview is inserted, but you should be able to change this.
When you make your word template (*.dot) in word, you place Bookmarks, where you want your text (e.g. date, operator, material) to appear, pretty easy and straight forward.
Best regards
Simon