I am currently trying to do something which is apparently impossible.
I want to create some code which returns a string which represents the selector of an event structure in which the code is executing. Obviously, scripting is required for this. While I can do this if the VI I am using for the task is used in only one event structure case (traverse for items) it doesn't work with a cloned VI. The sub-VI reference found returns the VI definition of the non-cloned instance. As such there is no way to actually find a specific clone.
The key here is that I want to have access to the "Diagram" of the event structure where the code is executing. If I would be able to drop a scripting type constant "This Diagram" which returns a reference to the Diagram similarly to what "This VI" does (but not the top-level Block Diagram, the actual diagram in which the node resides i.e. Diagram within Event structures, While loops, Sequence structures etc.), I would have all I need. I could then parse the rest in a sub-VI and return the required string without jumping through lots of loops to get there (or not, as I am currently experiencing).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has not received any kudos within a year after posting will be automatically declined.