04-07-2008 10:24 AM
04-07-2008 01:55 PM - edited 04-07-2008 01:55 PM
Hi Ben,
I keep it short. Please post an example of your StationGlobal and your Callbacks.
One SequenceFile is enough copy an paste your StationGlobal to a Local.StationContainer.
So other users and I can extract it.
Greetings
Juergen
04-08-2008 02:48 AM
04-08-2008 05:30 AM
Ben,
Just a few comments;
[Locals.PropertyObj = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)]
This should give you a PropertyObject for the 1st subproperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0
[Locals.Name = StationGlobals.GetNthSubPropertyName("TestSetup", StationGlobals.ForIterator, 0)]
This should give you the name of the 1st subProperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0
[Locals.Val = StationGlobals.GetNthSubProperty("TestSetup", StationGlobals.ForIterator, 0)]
This is going to return the 1st subproperty of StationGlobals.TestSetup if StationGlobals.ForIterator = 0 as a PropertyObject reference
and Locals.Val should be an ActiveX Reference type which I am guessing it isn't.
[Locals.PropertyObj.AsPropertyObject.GetFormattedValue((Locals.PropertyObj.AsPropertyObject).Name, 0, "", False, "")]
I think this should be Locals.PropertyObj.GetFormattedValue("", 0, "", False, ""), you dont need to specify the lookup string because you have obtained a reference to the actual sub-PropertyObject.
and therefore
Locals.Val = Locals.PropertyObj.GetFormattedValue("", 0, "", False, "")
should give you the value of the 1st subproperty of StationGlobals.TestSetup if Locals.PropertyObj was obtained as above.
I will try to check out your sequencefile later when I have access to TestStand 4.x.
Regards
Ray Farmer
04-08-2008 06:34 AM
Fantastic. That works nicely. Thanks Ray.
Yeah seems that the need to use the lookup string was confusing me as it wasn't needed.
Regards,
Ben
04-08-2008 07:03 AM
04-10-2008 04:24 AM
Thanks for the sequences Juergen. They are clear and concise and will come in useful.
Regards,
Ben