NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph on Custom User Interface

Solved!
Go to solution

Hi.  I'm a little stuck ( or really stuck :)).  Anyway, I am newbie.  That being said, I got some really good help on how to pass array's via the postuimessage (xparamdata) from teststand to my custom user interface a few weeks ago.  It really helped.  Thanks again.  However, I am up again another issue.  I am trying to pass a container from teststand.  The container or cluster of the x array and y array of an XY Graph.  I am passing it to my custom OI and trying to update a XY Graph on my OI.  I tried using the same code that I used for an array, but that isn't working.... of course.  I just need a little help to figure out how to get this to update my XY graph on my OI.  The attached picture is what I have so far, but it isn't close to working.  Can anyone give me some pointers?

 

0 Kudos
Message 1 of 11
(6,152 Views)

Why are you using Val(Sgl) as your lookup string?  Usually your lookup string is a subproperty of the element.  If left blank it is the element itself.

 

Also, you could just pass the sequence context through the UI message and then access any variables using the TestStan Get and Set Property VIs.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 11
(6,125 Views)

No reason.  I started off with a blank lookup string and it didn't work.  So I started throwing darts because things that I thought made sense weren't working.  I'll go back to a blank string.  I appreciate the sequence context suggestion.  I will try it but that will be another learning experience for me as well.  Something tells me what I have is not too far from what I have to do.  Just that I am not knowledgeable enough to figure out what needs to get done to get it working.  Unless, sequence context is the only way to go.

0 Kudos
Message 3 of 11
(6,124 Views)

It's hard for me to help you without seeing what you are posting with the UI Message.  Can you give more detail on how/what you are posting in your sequence file?

 

Thanks,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 11
(6,111 Views)

Thanks Jiggawax.  I will post pics and more detail later this evening.  Thanks for your help.

0 Kudos
Message 5 of 11
(6,106 Views)

Ok Jiggwax.  Here is what I am doing.

 

1. I am using TestStand that is calling a Labview vi called "Statistics.vi".  The Statistics.vi populates an XY Graph with data and it works fine. 

 

2. In TestStand, I set the create a type and set that type variable to the XY Graph that is in Statistics.vi. 

 

3. I then pass the variable (or Container) via a PostUIMessage to my custom OI via the activex (xparamdata) in the postuimessage.

 

4, In my custom OI, I am able to receive the PostUIMessage with eventcode = 10004.

 

5. The I am trying to set my my XY Graph in my custom OI to the to XY Graph Container that I passed from TestStand but can't get to work and it won't show the data in my XYGraph that is on my custom OI.

 

 

 

 

0 Kudos
Message 6 of 11
(6,094 Views)
0 Kudos
Message 7 of 11
(6,093 Views)
0 Kudos
Message 8 of 11
(6,092 Views)

This worked for me.   I think the data has to be in the XY Cluster pair format for the variant to accept it.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 9 of 11
(6,066 Views)
Solution
Accepted by topic author DN_Eng1

BTW-  The lookup string for you wouldn't be Array1 and Array2.  It would be the names of the arrays in your cluster.  In TestStand lookup strings are the relative path to the property object being referenced.  In this case your container is being referenced so relative to that is the name of your arrays.

 

Hope that makes sense.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 10 of 11
(6,064 Views)