LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Template Report Generator toolkit assistance

Hi,

 

I am having trouble trying to simplify my work on the Vi for my results template using the labview report generator toolkit. I have a word template which has approximate 85 fields, each measured value has 4 bookmarked results that means 336 bookmarks,  In my short experience  I usually bookmarked each field and used the append text option to mapp each part of the template. My question is, if there is a possibility to simplify the work?, I consider that doing 336 append text.vi for each individual bookmark is a little too much and not efficient.  I am open for any recommendations on how to approach this problem better. What i would like to do is that the 4 results categories always apply for each of the 84 field, sort of a matrix way of seeing it, that would avoid doing it 336 times, unfortonuetaly I dont know if its possible

 

I am thankful for any support

 

Best regards,

 

 

Miguel

 

0 Kudos
Message 1 of 11
(3,026 Views)

It would help to see the template and the code you have so far. I suspect there should be a way to use a for loop and an array. One other question, 85 * 4 = 336? Not understanding your math here but that is unimportant, please post some screenshots or files and we'll do our best to help you out.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 11
(3,020 Views)

I just saw this post

 

http://forums.ni.com/t5/LabVIEW/word-report-with-template/m-p/345673

 

perhaps by making a loop I could avoid making so many append text Vi. ?, if so I would be thankful if somebody could provide an example,

 

Thank you

 

Miguel

0 Kudos
Message 3 of 11
(3,019 Views)

Hi Charles,

 

sorry about that I meant 84*4=336.  I would generally use the express report Vi alternative but apparently for this feature only 17 bookmarks are available therefore I am using the append text feature. What you see in the attached example is one of the 4 results (bookmarks ) that correspond to each field that is answered in the report, again that corresponds to 84 fields, and I would like to know a way to simplify the programming load if its possible instead of doing 336 append text Vis

 

thanks again for the support

 

Miguel

 

0 Kudos
Message 4 of 11
(3,016 Views)

What format is your incoming data in? If it is already in an array then this is pretty easy to accomplish. Build a For loop around your append text vi's and wire the arrays to the appropriate inputs. The For loop will auto index these arrays and write one value each time. I'd send some example code but I need to have an idea of where the data is coming from in order to give you code that would have a chance at working.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 5 of 11
(3,011 Views)

the input data is a litte more complicated, it should be the data measured from a data bank, i wouldnt know if its array data , my task for the project to the moment is to only develop  the .Vi to fillup the template. I would really appreciate the loop example,

 

best regards,

 

Miguel

0 Kudos
Message 6 of 11
(3,007 Views)

Try this. Again, I highly doubt it will work out of the box as I have no idea what your input is.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 7 of 11
(2,997 Views)

Thank you Charles

 

I dont quiet understand how the Append Text within the loop will have different bookmarks  according to the data inputs.

 

maybe i explained the issue wrong, I have too many bookmarks and i would like to reduce the load of the work. For example

 

http://forums.ni.com/t5/LabVIEW/How-can-I-use-more-than-17-inputs-using-MS-Office-Report-express/td-...

 

Thanks again

0 Kudos
Message 8 of 11
(2,982 Views)

Hi

according to the reply of "Darren" yes,  I think it makes the most sense to keep the bookmark names in a text file (or XML, or whatever), and use Append Report Text.vi in a loop to apply certain values.

If you wire an array to a For Loop,the For Loop executes a number of times equal to the number of elements in the array.

 

 


0 Kudos
Message 9 of 11
(2,958 Views)

@yukipilas wrote:

 

maybe i explained the issue wrong, I have too many bookmarks and i would like to reduce the load of the work.

Thanks again



It is hard to give suggestion without knowing the kind of data you want to save and how it is organize. A suggestion to reduce the number of bookmarks would be to build result tables in LabVIEW and then use the Word Easy Table vi. This would require only one bookmark per table.

 

(If your not using the Report Generation Toolkit use the Append Table to Report.vi)

 

Ben64

0 Kudos
Message 10 of 11
(2,955 Views)