LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing properties from subVIs

Could you explain the usage of the Occurence reference?  I wrote a VI and sub-VI passing control references, but it only works when the sub-VI is open. 

Incidentally, at first I didn't know how to change the control reference on my sub-VI FP to a specific type (e.g. Boolean).  It is done by right-clicking and selecting "Select VI Server Class" > "Generic" > "GObject" > "Control" > "Boolean".  Once I did that, then my property node had all the appropriate properties for the Boolean control.

0 Kudos
Message 11 of 14
(1,770 Views)
Hey Mark,
The occurence refnum is usually used to pass an occurence from a main vi to a subvi. You can find information about it by going to Help>>Search the LabVIEW help and then do a search for Occurence refnums. It is just like any other reference you might pass from a main vi to a subvi. I've attached a small example program that demonstrates the concept. Post to let us know if you have any other questions. Thanks!
 
Best Regards,
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 12 of 14
(1,752 Views)
Hi All,
 
i have this error when i tried to program the FPGA:  Error 1055 occurred at Property Node in nirviGenerateHdlName.vi->nirvififoExtractFifoFromXNode.vi->FifoGetModInfo.vi->FifoGetModInfo.vi.ProxyCaller.  I don't know why this error happened today it ran just fine last week.
 
-Regards
Sa 
0 Kudos
Message 13 of 14
(1,593 Views)

Since you ve changed the title of the original post, you should ve posted it as a seperate thread to get the right answer. Smiley Wink

Please do not continue on a old thread because some people who answered may not be available anymore. So, it is better to start anew to get what you want.

Moreover, your query seems to be related with some HW issues also.

Else, if it is a simple doubt about setting the properties of controls on a FP  using a SubVI, you can see the below thread for more details.

http://forums.ni.com/ni/board/message?board.id=170&message.id=273662

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 14 of 14
(1,576 Views)