06-12-2012 07:05 AM
Hello,
Im using Teststand 2010 SP1 and Labview 2011. My question is about plotting 2d-array data into the Teststand HTML report.
I try to retrieve a 2D array with x-y data of measurement and to plot it within the report file. Unfortuntly the data is interpreted as "multiple-Y" which means each x-y pair generates a new curve in the plot instead of having one curve following the x-y pairs. I found the following in TS documentation:
http://zone.ni.com/reference/en-XX/help/370052J-01/tsref/infotopics/measurement_data/
The problem is: I do not know WHERE to set the property objects attributes. Has someone an running code snippet as example setting the attributes at the right point and generating a x-y-plot correctly?
Thanks for help in advance.
lv4ever
Solved! Go to Solution.
06-15-2012 03:38 AM
http://digital.ni.com/public.nsf/allkb/1307679F845B162286257160000510ED?OpenDocument
You can also Create HTML table from LabVIEW array and use it in Teststand
https://decibel.ni.com/content/docs/DOC-5552
http://digital.ni.com/public.nsf/allkb/6CD5056EFB198972C1256B870064AB42?OpenDocument
06-19-2012 11:36 AM
Follow the following link to learn how to create attributes in TestStand - PropertyObject Attributes
Regards
Anand Jain
National Instruments
06-22-2012 03:50 AM
Thanks for replays - but they are answering not my question.
@mkin75: I have realized thats possible to customize the reports with effort in many ways. But I expected Teststand to have such a very basic test sequencer function to have it build in. And as I understood the manuals it is build in.
@Anand Jain
I understood that a have to add a property object attribute and how is also clear to me. The question is again where is the property object "Teststand.DataLayout" to be added?
I tried to add to
- the testsequence
- to the test step which retrieves the xy-data
-the paramter which gets the xy-data
None of this resulted in the required plot appearence.
That was the reason I ask for a running example. For convience I have added my effectless tries.
Regards
lv4ever
06-25-2012 11:45 AM
lv4ever,
I reviewed the documentation and I agree that it is not clear where the attributes should be added. I will write a bug report to fix this issue.
The recommended approach for you is to create local variables that have the approriate attribute and use these local variables in the value expresions for each parameter.
I have attached an updated files with the proposed solution.
Regards
Anand Jain
National Instruments
06-28-2012 07:20 AM
Thanks, that was what I looked for. I appriciate your support very much.
10-12-2012 06:41 AM - edited 10-12-2012 06:43 AM
Hi,
I guess there might be something that needs to be configured.
I'm trying exactly the same (X-Y graph form 2d-array), but Attributes are not affecting my output.
I created a very simple test file, with a defined array with fixed values. Added the attributes Datalayout/Dataorientation.
The attached example earlier in this thread is also not working for me.
Any ideas what I'm doing wrong?
10-22-2012 10:08 PM
Hi,
I am able to create a 2D graph using the files you attahced.See attached JPEG.
Can you please attach files that you are using that exhibit the problem.
Regards
Anand Jain
National Instruments