NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Evaluating TestStand and having a hard time...

Solved!
Go to solution

Jeff,

 

Ok . I changed the value for ObjectRef.

 

Now, how would you associate the value returned by the method getValue() to the local variable returnValue? At this point, what we have is just a pointer to my object right?

 

Thanks for your patience 🙂

 

matt

0 Kudos
Message 11 of 14
(1,067 Views)

Hi Matt,

 

Now when you select your second call in the .NET Invocation control (it looks like you may have removed it in your most recent screenshots) the parameters grid will switch to show the parameters for that call.  Here you can specify a location to store the return value for the call.

 

1) Click on getValue() in the .NET Invocation control to select it (add the call back if you deleted it).  The selected call is shown in bold text.

2) For the return value parameter, specify "Locals.ReturnValue" in the Value cell.

 

I want to make sure you are thinking about this correctly.  Each .NET step can contain multiple "calls".  All calls are displayed in the .NET Invocation control and are separated by a '.' between calls.  Each call also has its own set of parameters.  Changing the parameters of one call will not affect the parameters of another call on the step.  The parameters grid in the Sequence Editor where the parameters are actually shown only shows parameters for one call at a time.  This means that only the currently selected call (you can tell what call is currently selected by looking for what call is shown in bold text in the .NET Invocation control) will have its parameters displayed in the parameters grid.  If you want to view the parameters for a different call, simply left click the call in the parameters control to select it.  When you select a new call, the parameters grid switches to displaying the parameters for that call.

 

-Jeff

0 Kudos
Message 12 of 14
(1,059 Views)
Solution
Accepted by topic author acheo

Jeff,

 

I got it to work! I guess this is another mindset that I have to get into.

 

By looking at the step description I see : Locals.returnValue = Use Existing Object(locals.ObjectRef).getValue() and it make sense. I was trying to get this in one single click.

 

Thanks for all...time & patience.

 

Mathieu

 

ps Could you please contact me at mathieu.bazinet@cmcelectronics.ca. I would like to have your perspective on this product. We are in the process of changing our test platform and I do valuate opinions from people in the industry.

 

Regards,

0 Kudos
Message 13 of 14
(1,054 Views)

Just wanted to correct a sentence in my previous post.  I said:

 

"If you want to view the parameters for a different call, simply left click the call in the parameters control to select it."

 

and it should have been:

 

"If you want to view the parameters for a different call, simply left click the call in the .NET Invocation control to select it."

 

The .NET Invocation control is where you select different calls.  Sorry for the confusion.

 

-Jeff

0 Kudos
Message 14 of 14
(1,049 Views)