From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating reference to access control in subvi (custom dialog)

I have followed the Custom Dialog box white paper (http://www.ni.com/white-paper/8768/en/) 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 (http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/prog_controlling_fp_objs/) 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.

Download All
0 Kudos
Message 1 of 2
(2,044 Views)

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.

 

subvi.jpg

 

 

0 Kudos
Message 2 of 2
(2,013 Views)