LabVIEW Idea Exchange

About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Top Kudoed Authors
cancel
Showing results for 
Search instead for 
Did you mean: 

Propagating type definition /Replace type all along wire

Imagine that you have made lots of code, wiring up several VI etc. all with the same data, a cluster for example, going in and out. Now you regret not having defined that wire as a typedef. Today replacing the data with a typedef will involve a lot of steps; you start by clicking on one of the controls or indicators, and create a typedef...then you need to do the tedious work of replacing all the other controls and indicators up- and downstream. 

 

Would it not be nice if you could just right-click on the wire and select "Define type"/"Create type definition" or "Replace with type def/class"  - and then choose to have the type definition automatically replace everything along the wire ("propagating type def")?

 

This idea was inspired by and first came about as a comment to this idea by cowen71.

MTO
Check out ClampOn CAN Monitor on the LabVIEW Tools Network.
3 Comments
Active Participant

This is I'm sure doable today by developing a shortcut menu plugin (perhaps someone is up for the task or have done it already(!?)), but it would be nice to have it as an in-built functionality.

MTO
Check out ClampOn CAN Monitor on the LabVIEW Tools Network.
Trusted Enthusiast
Trusted Enthusiast

You probably should get used to define anything that is not a base type as a typedef. Or vote for the idea that suggested that this is done automatically.

Active Participant

Sure, that's the ideal, but even if you did - or it was done automatically, you still do not get the functionality to do a swift and targeted replace-operation along the length of a wire. (You could use the search and replace function, choose your current type def, select all the instances you want from the search list, and then do a replace...but thats quite a few steps. I'm talking cases where you do not want to just edit the associated type-def of course, then it's already simple.)

 

The idea will also work if you did not type-define it earlier on because you were using a base-type.


MTO
Check out ClampOn CAN Monitor on the LabVIEW Tools Network.