07-29-2014 10:09 AM
I have an initialization VI in which I am creating a number of user events. Originally, these comprised a number of varying data types and were passed out as a cluster. However, I had to change this to an array of variants, as I am subsequently indexing the user event refnums in a FOR loop to generate events based on a boolean array of conditions. As I am unable to index elements of a cluster, I changed all of the event data types to variants so that I could pass them as an array which could be indexed. It seems, however, that the owned labels which populate the event structure with the individual event names to select from are lost when using variants - the event structure only shows multiple instances of
<Variant>:User Event
in the pulldown list. Is there any way of getting the event names to persist or pass them into the event structure so I can configure cases appropriately?
Solved! Go to Solution.
07-29-2014 10:34 AM
So it appears that the modified VI with the variant event data types does work, but for some reason the event structure hadn't updated to reflect the changes. After deleting and recreating the Event Registration Refnum indicator in my initialization VI, and reloading the parent VI, all seems to be working as intended.
07-29-2014 11:11 AM
This happens often. Which LV version?
07-29-2014 11:45 AM
LabVIEW 2013 Service Pack 1
13.0.1f2 (32-bit)
07-29-2014 11:51 AM
Not sure if this is applicable, but I've used the Coerce to Type in the past to change the names shown in a user event.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord