LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

diadem report generation from LabView: textbox, textobject, table

Hello everybody,
I'm trying to generate a report from LabView and want to use DIAdem reports as templates because they easy (I thought) to configure and design.
Well, I managed to include several pictures and textboxes that I can fill dynamically with the information I want using the report generation vi, and I also need to include a bunch of statistical data in the report together with the name of the variable. e.g. it's supposed to look like this:
 
testname: name1
mean:       35
std:           12
 
so, basically it's a table with strings and numbers that also variies in size (rows) depending on the test. I came up with three ways of doing this but I ran into some problems when it gets into detail:
1. using a textbox:
I'm using DIAdem 10.2 and I'm aware that textboxes can handle multiple lines but when I feed a string separted with \r\n to the textbox (from the string input array of the report generation vi) only the first line shows up???
 
2. using a textobject:
will result in an eaven more professional look of the report since text can be formatted, but it seems not to be possible to acces a textobject via the report generation vi. Is that correct or is my vi corrupt?
 
3. using a table:
in DIAdem it is possible to define a channel of strings which can be used to fill the table but I guess it not possible to create such a channel in LabView, is it?
 
So, I'm pretty stuck on this issue. Does anyone have an idea
 
David
0 Kudos
Message 1 of 3
(3,506 Views)

I found an answer to #1: the report generation vi uses a sub vi called "PushDataToDIAdem.vi" that includes a function picking the first from a multi line string. Going around this function will result in a multi line string in a text box in the DIAdem report.

David

0 Kudos
Message 2 of 3
(3,492 Views)
Hello!

Directly with LabVIEW is very difficult to reach the textobject to format.
The easiest way is to save you data (and also you text channels) in a file.

From LabVIEW you can start a DIAdem script
With the LabVIEW DIAdem connectivity VI you can say to LabVIEW to start a script:
http://joule.ni.com/nidu/cds/view/p/id/204/lang/de

In the script you can implement all your reports, layout, textbox textes,....

Best regards
Ken
0 Kudos
Message 3 of 3
(3,467 Views)