08-12-2004 07:00 AM
08-12-2004 08:55 AM
08-12-2004 11:00 AM
10-23-2012 06:50 PM
Hi,
I need to resurrect this thread...
I am also trying to pass an occurrence refnum to a subVI (using 2011) and I can't quite get it. I understand I pass an Occurrence refnum to the subVI but the reference in the subVI is generic and doesn't know it's an Occurrence.
My background: rookie and new to refnums ...
Below represents what I've done. On the left is RefMain.vi (generates occurrence) and on the right is RefSub.vi (uses occurrence).
I tried type casts but I'm just flailing about. Lots of googling but couldn't make headway. I eventually will use with FPGA (I understand it needs to be a static reference)
Any tips?
Steve
10-23-2012 08:11 PM - edited 10-23-2012 08:20 PM
You don't want to pass around a reference of the occurance. You want to pass the occurance itself. It is already a reference anyways. So what you created in step 2 is what you want to use as an input to your subVIs.
EDIT: Your VI would look something like this
Also, you can just place the Occurence refnum straight onto the front panel.
10-24-2012 07:30 AM
That works.
Unfortunately, the biggest obstacle prior I think was the simple fact that my popup control selector wasn't displaying refnum's. I had to change the configuration so that all options are displayed. The selector itself should make it obvious that there are options not being displayed.
Thanks!
Steve