NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand report handles too much data from chart

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

 

LWnew_0-1583755834481.png

 

0 Kudos
Message 1 of 9
(2,762 Views)

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

Message 2 of 9
(2,723 Views)

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?

0 Kudos
Message 3 of 9
(2,699 Views)

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.

 

 

0 Kudos
Message 4 of 9
(2,694 Views)

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.

0 Kudos
Message 5 of 9
(2,691 Views)

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>"

0 Kudos
Message 6 of 9
(2,687 Views)

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. 

0 Kudos
Message 7 of 9
(2,685 Views)

I would just try it.

0 Kudos
Message 8 of 9
(2,654 Views)

I actually solved this by changing report type to HTML.

0 Kudos
Message 9 of 9
(2,551 Views)