Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Report Generation

Using the Report Generation Tool Kit (RGTK) , is there a way to allow the user to have a choice to view the report or not ??  When my VI is done collecting data I'd like to give the user the choice of view the report or not.  I also ALWAYS want to save the reort regardless of whether or not its view.  I need the file name of the report to be unique each time.  How would you do that ??  I looked in the example and none of them tell you how to save the report  or even keep it from opening Word and displaying it.  I tried "pulling out" the Bring to the front .vi" that ships in one of the RGTK and put it in a Case Stmnt.  True Case was Bring to the front, false case do nothing.  Just continue on to saving the report.
As far as saving the report.  Should I use "Save the report to a file.vi" or "Dispose of Report .vi " and make "save changes" selection, true ?
To make the file name of the saved report unique each time I thought I could concatenate the date and or time ( from the "Get date and time string.vi" which is in my Report Gen) along with some hard coded name like, "UUT TEST "date stamp time stamp",  Can you concatenate a string and use it to create a Report File Path ??
If there are examples could someone point me to them ??
 
Thanks,
Clint E.
0 Kudos
Message 1 of 2
(2,859 Views)
Hello Clint,
 
The "New Report.VI" has an input called as "Window State". If you set this to minimized, then the report would not be visible to the use. Although it will show up briefly in the windows taskbar. About your other questions, you should definitely use the "Save Report to a File.VI" because that way would would be able to specifiy unique file names. Once the file is saved, then go ahead and dispose the reference to that report.
 
For converting concatinated strings in paths, there VIs available that will exactly do this for you. Look at the function palette under Programming >> Strings >> Strings/Array/Path Conversion.
 
Regards,
Chetan K
Application Engineering
National Instruments
0 Kudos
Message 2 of 2
(2,838 Views)