I am trying to write a program that captures up to 873 different scope shots.
At the end, the program will generate a Word Report with all scope shots and measured parameters.
I have used the Word Template in the past and created field for each parameters. However, this approach will not be efficient with this complex test. The report format of each test is shown below with the read box indicating the field where data will be plugged in by LabVIEW.
To create the word template for entire tests can create unnecessary post processing to delete the part of the test that user didn't run. If user ran only 3 tests then he would have to delete other 870 templates which will not be cost efficient. Also, this could create unnecessary programming mess that is not very flexible.
My questions -- is there any way I can copy this template below as I run the test? Rather than creating a word template for 873 different test for which I may only run part of it, can I copy the template based on number of test that user would like to run?
Any pointers will be appreciated.
Example of the scope data figure:
|Test Conditions:Vin=□V, Vout=□V: □A Temp=□C Mode=□Fs=□Serial #=□|
Please post some more information on what you are trying to do. Do you currently have the Report Generation Toolkit? Do you already have a VI that uses a word template to fill the data in? What are you trying to make more efficient exactly?
I have LabVIEW 8.5 Development version and the report generation tool kit. I will be writing VI to fill the data in and generate a word report with Up to 873 different tests. The template that I attached is the sample template for only one test, I will be doing 873 tests. The sample test template consists of scope shot and some measured parameters.
My situation - the VI that I will be writing will fill in the sample template that I attached for 873 times. For me to generate a word report for all tests, I would have to create a report template with 873 sample templates. Where there is a red box, I would have to create a field for each box so the LabVIEW will know where to put the data in.
Well, that is lot of work in the first place. Secondly, to keep up with 873 different permuation fields can create lot of unnecessary programming mess. Lastly, if the user decide to run only part of the test, then there would be lot of empty test templates. If user decide to run only 10 tests the final report will have 860 empty boxes. That is not efficient.
My goal is to create the word report using just one sample template rather than 873. I would like to copy the sample template based on number of tests user defines.
My question is- Is there any way to copy the sample test template that I attached using the report generation toolkit?
I think I understand what you are trying to do now. I will have to see if I can find a way to copying the template a specified number of times to include in a word report.
This section of the LabVIEW help describes how to create reports from templates, in case you have not seen it yet: http://zone.ni.com/reference/en-XX/help/372120A-01/lvrgthelp/using_report_expvis/ .
I will let you know if I find out any way of doing what you want.
Have you looked at using ActiveX functions as an option? The best way I can see right now is to merge word files together in order to have multiple copies of a template in one word report. I am not sure if this is possible yet, so I will let you know if I find any information on this. Apart from that, there does not seem to be a straightforward way of doing this with the Report Generation Toolkit.