NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrive the names of step measurements using LabVIEW

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(3,181 Views)

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.

Message 2 of 3
(3,176 Views)
Solution
Accepted by topic author mike_22

Thanks very much.

 

One small change to the vi required.

0 Kudos
Message 3 of 3
(3,171 Views)