11-30-2014 10:25 PM
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?
Solved! Go to Solution.
12-01-2014 03:09 PM
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,
12-01-2014 03:29 PM
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.
12-02-2014 08:06 AM
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,
12-02-2014 09:04 AM
Thanks Jiggawax. I will post pics and more detail later this evening. Thanks for your help.
12-02-2014 10:03 PM
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.
12-02-2014 10:04 PM
More plots....
12-02-2014 10:05 PM
Even more plots....
12-03-2014 08:36 AM
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,
12-03-2014 08:41 AM
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.