01-23-2014
08:11 PM
- last edited on
10-22-2025
08:39 AM
by
Content Cleaner
I have followed the Custom Dialog box white paper (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2BiCAI&l=en-US) in order to collect information within a small subvi. I would like to use a ring control to offer the user a range of selections that will be saved from the dialog box. Ideally, I don't want to have to update both the ring in the main vi and the ring in the subvi every time something changes. I need the ring to be populated in the main vi because I am displaying the strings on the main vi, not the number output by the ring.
I have tried creating a reference with this method (https://www.ni.com/docs/en-US/bundle/labview/page/controlling-front-panel-objects-programmatically-f... but this crashed labview every time I tried to run it (Full crash, have to end program from the task manager).
I've attached a screen shot of the relevant part from the main vi and the full subvi. The main vi is rather confusing which is why I didn't attach the whole thing, but my question is whether I wired the reference to the subvi correctly and whether the assignment from the referenced property node to the dialog box property node is correct in the subvi.
Thanks.
01-24-2014 02:26 AM
Yes you have wired it correctly. The rings within the subvi will be assigned the StringsAndValues[] from the main vi.
To satisfy yourself simply make a dummy main vi with two rings and connect the references to the sub vi.