06-11-2010 01:58 PM
How do you retrieve the names of a multiple numeric step's measurements using LabVIEW?
I've constructed a vi to call from TestStand, and will pass it "ThisContext", but the vi doesn't complie. That's how far I got. The vi is attached. The error message is:
"The method selected in the invoke node is invalid or no method has been selected. Right-click the invoke node and select a method."
My vi is an attempt to write the code from message.id=10653 in LabVIEW. Specifically:
Dim MyStep As [Step]
Dim MyMeasurement As PropertyObject
MyStep =
seqContext.AsPropertyObject.GetPropertyObject("Step", 0)
MyMeasurement =
MyStep.AsPropertyObject.GetPropertyObject("Result.Measurement[0]", 0)
MsgBox(MyMeasurement.Name)
Can someone help me finish the vi?
Thanks
Solved! Go to Solution.
06-11-2010 02:24 PM
You missed the the AsPropertyObject in "MyMeasurement = MyStep.AsPropertyObject.GetPropertyObject("Result.Measurement[0]", 0)". Checked out the attached.
I cleaned up your code. Make sure you're closing every reference you get from TestStand or it'll yell at you when you shut the engine down.
06-11-2010 02:56 PM
Thanks very much.
One small change to the vi required.