LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing a SubVI's Block Diagram Right Click Menu

Solved!
Go to solution
Is it possible to customize the right click menu of a subVI in the block diagram?  For example, in the Build Array function's right-click menu you have the option of Concatenate Inputs.  Is it possible to create this functionality in a user created VI?
0 Kudos
Message 1 of 6
(3,065 Views)
Solution
Accepted by topic author D Reck

D Reck wrote:
Is it possible to customize the right click menu of a subVI in the block diagram?  ...

Yes it is possible.

 

X-Nodes are VI's that execute while you are editing a diagram and more info on them can be found in the Rusty Nails section of LAVA.

 

I believe you will have to purchase a scripting License to develop X-nodes in LV 8 or better.

 

So lets pretend I said "no". What is it you are trying accomplish? We may be able to advise on a simpler approach.

 

Just trying to help,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 6
(3,047 Views)
I am creating a scaling VI that can have many different profiles.  So far I have been using an Enum to select the profile, but if there was an "easy" way to customize a menu, I would be interested so that I could reduce clutter and make the code more readible.
0 Kudos
Message 3 of 6
(3,039 Views)

D Reck wrote:
I am creating a scaling VI that can have many different profiles.  So far I have been using an Enum to select the profile, but if there was an "easy" way to customize a menu, I would be interested so that I could reduce clutter and make the code more readible.

 

So it sounds like you are using an Action Engine to do the scaling. If so you are doing it about as good as it can be done (review that link for suggestions).

 

Another approach could use LVOOP where the class will determine which flavor of a Scaling VI will be used by way of Dynamic dispatching.

 

Just trying to help,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 6
(3,028 Views)
Would a polymorphic VI be of any help here? Not sure about your exact implementation details, so I'm just throwing that out.
0 Kudos
Message 5 of 6
(3,008 Views)

smercurio_fc wrote:
Would a polymorphic VI be of any help here? Not sure about your exact implementation details, so I'm just throwing that out.

 

THat is a very valid idea that I concidered myself but I ruled out because I thought the polymorphic VI each ahd to have a different data type. Maybe I'm wrong or maybe there is away to cheat. Smiley Wink

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 6
(3,005 Views)