03-09-2020 07:10 AM
Hello,
I have created a. 20 VI:s and each one of them controls signal at 10kHz speed for 5s. To get accurate measurement I have set sampling rate of 50kHz and 250k measurement points.
Programs work fine but the problem is that when I want waveform graphs to show in teststand report, it clearly handles raw data. This leads to insanely long loading times for report but also massive size (several hundred Mb).
Is there a way to get just the image of the graph to show in report or some other way arounds?
Example code attached and image for step properties
03-09-2020 06:28 PM
Could you add a step to take a screenshot of the front panel or just the graph control?
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MbfSAE&l=en-US
Then, you could use this method to add the screenshot to the report, assuming you're using HTML or XML reports.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Z6fSAE&l=en-US
03-11-2020 02:48 AM
That is nearly solution I am looking for. But I assume that there is some problems:
- VI:s in teststand are identical except for logging channel and VI name. Does that name images via VI name? I dont currently have access to my test setup for testing this.
- It doesn't most likely overwrite previous images if program is run multiple times. So it would allways show same images in report. Easiest way would probably be overwriting them directly. Alltough, if it is possible I could also have a labview program at a start in teststand to erase old images?
03-11-2020 06:45 AM
You can control the name of the file, perhaps by adding the date and time to the end of the file name, such as testfile_20200311_123456.jpg. In this instance all pictures taken will have different file names and would all be continued to be stored by the computer. You could still clean up your directory of images whenever you like.
03-11-2020 07:04 AM
Yes, but then there is no way to control images going to TestStand report? https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Z6fSAE&l=fi-FI
:
The myimage.gif text represents the image you want to see displayed in the report. You will need to replace this with the file name of your image.
This would mean images are separate from the report, which is annoyance, but if there is no semi simple way, what can you do.
03-11-2020 07:28 AM
Save the file with the unique name (with the date and time). Pass out the path as an indicator from the VI. In TestStand, save that to a local variable (e.g. Locals.PicturePath). Then, your post expression would be something like Step.Result.ReportText = "<IMG ALT='My Picture' src='" + Locals.PicturePath + "'></IMG>"
03-11-2020 07:39 AM
Does that also work if teststand test is run multiple times and pictures are not deleted in between? It seems to work for one go I would imagine:
After 1 test, directory looks something like this:
VI1_date
VI2_date
VI3_date
etc.
and images show accordingly. But what happens after second test when directory looks like this?
VI1_date
VI1_laterdate
VI2_date
VI2_laterdate
etc.
03-12-2020 05:47 PM
I would just try it.
04-29-2020 11:23 AM
I actually solved this by changing report type to HTML.