NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
lv4ever
Posts: 4
0 Kudos
Accepted Solution

Where to set "DataLayout" (2D data in report)?

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

Member
mkais
Posts: 61
0 Kudos

Re: Where to set "DataLayout" (2D data in report)?

You can log a 2D Array to a Teststand Result Database and export this result to a Report as HTML.

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

 

Only Some of the Elements in Large 3D Boolean Array Are Filled in TestStand 1.0.2

http://digital.ni.com/public.nsf/allkb/6CD5056EFB198972C1256B870064AB42?OpenDocument

Kais Mekacher
Applications Engineer
Germany - Munich
Active Participant
Anand_Jain
Posts: 243
0 Kudos

Re: Where to set "DataLayout" (2D data in report)?

Follow the following link to learn how to create attributes in TestStand - PropertyObject Attributes

 

Regards

Anand Jain

National Instruments

Member
lv4ever
Posts: 4
0 Kudos

Re: Where to set "DataLayout" (2D data in report)?

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

Active Participant
Anand_Jain
Posts: 243
0 Kudos

Re: Where to set "DataLayout" (2D data in report)?

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

 

Member
lv4ever
Posts: 4
0 Kudos

Re: Where to set "DataLayout" (2D data in report)?

Thanks, that was what I looked for. I appriciate your support very much.:smileyhappy:

Member
R.Arnold
Posts: 1
0 Kudos

Re: Where to set "DataLayout" (2D data in report)?

[ Edited ]

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?

Active Participant
Anand_Jain
Posts: 243
0 Kudos

Re: Where to set "DataLayout" (2D data in report)?

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

 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page