NI TestStand Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Mr._Jim

Instantly Clone Subsequence Parameter as Local or FileGlobal

Status: New

CreateSameProperty.png

 

Let's say we have a parameter to a subsequence of a named type, and we want to create a so-named Local or FileGlobal with the same type.

One way to do this with our current workflow is to:

  • Type the same property name in the parameter value
  • Right-click the parameter
  • Click on "Create Locals.whatever"
  • mouse over the types menu
  • Glance through most of the types, select the custom type

 

I'm proposing a simpler workflow for cases when you just want to duplicate or "clone" the property with the same name and type in Locals or FileGlobals:

  • Right-click the empty parameter value
  • Select "Create Locals.whatever" or "Create FileGlobals.whatever"

The respective menu options would appear if the so-named variable does not already exist.

The subproperty is created in the Locals or FileGlobals with the same type as the parameter.

1 Comment
TomOrr0W
Member

This would be useful for sequence parameters in addition to Locals/FileGlobals - when I have nested subsequences, I often pass the same parameters through both levels of subsequence.  By Reference/By Value selection should probably be the same as the subsequence in this case.

It is easy enough to copy and paste the parameters from the inner subsequence to the outer one, but a right-click option would be a few less steps.