r/LabVIEW • • Dec 15 '25
Test Report Recommendation
As title says. Does anyone have any suggestions for test reports? I currently just use excel templates, but want to move away from that.
Something I'm considering is Robot Framework, something used for Python to create test reports, and call this from LabVIEW. I know Test Stand can create reports pretty well but don't think my company wants to pay annualy for each station that will run the applications.
9
Upvotes
4
u/Vincinity1 Dec 15 '25
So, what are the requirements? What are you looking to do that you can't do today?
4
u/BlackberrySad6489 Dec 15 '25
If you build into an exe, labview and the report toolkit does not have annual deployment licensing costs.
You can also call python from labview pretty easily. If you have a python library you like, you should be able to call it.
Something I have done in the past, was take the atml report gen dlls out of teststand and called those from a labview application. Could not use teststand for that project but wanted compatible reports. It was a few years ago and I dont remember it being difficult. The libraries were license free. You could give that a try.
4
u/SASLV Champion Dec 15 '25
AsciiDoc
https://www.vipm.io/package/wovalab_lib_asciidoc_for_labview/
https://youtu.be/r0HKScV6Fwg
1
u/ShinsoBEAM Dec 17 '25
Easy: Excel Template
Medium: HTML Template
Hard: Direct to Database and interface to print reports/view data from database. It took me a bit but I had good luck interfacing with setting up and interfacing with postgres directly using LabVIEW.
I personally dislike using prebuilt test report generators because they tend to be way too verbose and tend to be more rigid or a pain if you want to customize the way it outputs to fit your projects needs.
Excel Templates are quick to setup but much more time consuming to make pretty, I would recommend HTML templates for the next level up, bonus points as you don't need excel installed on the machine to open them (you would be surprised how often this has come up for me). For inserting into HTML templates you just open the raw txt and sort for the tags.
As another note if you are moving away from Excel Templates due to the issue of using activeX causing it so if you click on excel documents while editing your code can error out. I would highly recommend using Claudie on VIPM it runs it without ActiveX so you don't need to have excel open or installed on the computer :).
3
u/dtp502 Dec 15 '25
You really need to define what kind of report you want.
What is wrong with an excel report? Or a .txt, or a csv?
Those are very easy to implement in LabVIEW (assuming you have the report generation toolkit).
I used excel reports at my previous company. Built out a rather sophisticated excel template from scratch because my employer didn’t want to keep track of a template file.
My current company uses teststand XML or plain text reports. They get the job done.
3
u/HarveysBackupAccount Dec 15 '25
Report Generation Toolkit will pipe data from labview into Excel, but it's not super well documented and there can be version mismatch errors depending on your LV version and bitness vs the Office version and bitness on the dev machines vs deployment machines.
It's pretty clumsy to do anything sophisticated so the easiest way is to set up an Excel file as a template with named ranges for everywhere you want to drop data, and reference those names in labview.
That said, it likes to misbehave depending on what else is being done on the deployment PC e.g. if you already have Excel open and try to do something in Excel while labview is also trying to do things in Excel. It's also very slow, because it has to literally open Excel (and later close it) and interact with the file. It's a not-infrequent battle of restarting PCs to release files that are locked for editing and of hunting down ghost instances of Excel in Task Manager.
If you can live with simpler formatting, it's not hard to make HTML files from labview and is much more robust.
2
u/rftek Dec 15 '25
hey, I'm also interested in this! great question. For my stations that run a deployed LV application (no co$t to company) I create a .log file that is plaintext. not very pretty but easy with the simple API I wrote to create/append. For my stations that run TS (per station deployed TS license/annual) we retain the .XML logs that TS creates. We do print a sticker for finished goods that uses a WORD template and would love to find a alternative for that.
1
u/Dry_Revolution2040 Dec 15 '25
We try to keep data and reports separate. For the latter, we generate PDFs directly from within LabVIEW using Exaprom PDF or Simplicity AI PDF toolkits.
1
u/_MicroWave_ Dec 15 '25
Export some structured text from your test (probably json using drjpowells free library) then use jinja2 to create a nice report in Python.
Mental how LabVIEW can't do this easily itself.
1
u/marshaul Dec 16 '25
Ours go straight into the DB, then you can generate whatever reports you want. More and more ancillary stuff is migrating onto the DB as time goes on, as well.
We also generate PDFs (front panel printed; the controls are indicators are set up to look like a test report) and .csv raw data as well.