11-26-2008 08:48 AM
I'm using the VI Analyzer API to programatically to evaluate code. I currently use the Easy Report functionality to write results to an ASCII file, but I would like the output as a string rather than a file. The API implementation requires that I write to a temporary file, read the temporary file into memory and then delete the temporary file.
Is there a simpler way to do this? If not, I would suggest that an optional output containing the ASCII or HTML text be added to VIan Easy Report.vi
11-28-2008 05:54 AM
Hi Phillip,
Thanks for the post and I hope your well.
You are correct - there doesn't seemed ot be any control of not producing a file using Easy Report - I supose this by design mind you.
Could you not use the VIan Easy Analyze - which is a String output... maybe if you explain in a bit more detail what your trying to acheive I could help you to implement this?
Kind Regards,
James.
12-03-2008 01:15 PM - edited 12-03-2008 01:16 PM
Within the VI Analyzer API, I am streaming the report contents to disk as they are generated. It turns out this approach is much faster than building up the entire ASCII/HTML string in memory in LabVIEW, then dumping that string to a file in one I/O operation. So if I were to provide a string output with the report contents, I'd be doing exactly what you already are...reading the entire file contents after the report is generated and outputing it to a string.
A true solution to your situation would be for me to add a new report "type" to the Easy Report VI...specifically, a "string only" type. In this mode, I would ignore the path input to the VI, and simply output a string containing all the report contents, without doing any File I/O. I'll file myself a suggestion on this...maybe we'll see it in a future version of the toolkit.
Thanks for the feedback...keep it coming.
-D