02-12-2009 06:57 AM
Solved! Go to Solution.
02-12-2009 08:11 AM
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
02-12-2009 08:19 AM
02-12-2009 08:31 AM
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
02-12-2009 09:24 AM
02-12-2009 09:28 AM
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.
Ben