Hi Ratin!
It doesn't sound like you're having any trouble specific to the .NET refnum datatype, but just passing data in general between event cases in the Event Structure. If that's the case here are a couple suggestions:
1) I'm assuming you have an Event Structure inside of a while loop. If this is the case, the best way to "keep" the refnum would be to attach it to a shift register on the side of the while loop (right-click the side of the while loop and choose "add shift register"). Once the refnum is produced, you can write it to the shift register. Note: Make sure to initialize the shift register AND make sure to pass the refnum through in each event case.
2) Another method would be to write the refnum to a local variable and then read from a corresponding local variable when you need it.
Usually it is best to avoid local variables when possible, and in this case it is easy to avoid (using method 1), so I would go with method 1!
Hope this helps!
Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments