03-23-2021 08:35 AM
Given a typedef, I want a script to create a control that's an event registration refnum control for a user event of that data type.
I've tried the "New VI Object" function, but I can't figure out what "style" to use:
I could do it by manipulating a scratchpad VI, but there ought to be a cleaner solution.
Solved! Go to Solution.
03-23-2021 09:26 AM - edited 03-23-2021 09:28 AM
Start off with a scratch control that contains a user event reference of any type. Then drop your cluster typedef on the panel of the scratch panel. Then use the Move method to move the cluster control into the user event reference to set its type.
This is the only way to accomplish the task that I know of. Well, other than scripting the diagram you showed above and doing 'Create Indicator' on the Create User Event function...
02-01-2022 02:07 PM
You marked this issue as solved. Could you post a screenshot of the solution, please?
Thanks!
02-01-2022 02:32 PM
@null_and_void wrote:
You marked this issue as solved. Could you post a screenshot of the solution, please?
Thanks!
Sorry. I don't remember which project that was, much less which VI.
Just follow Darren's instructions.