LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

main's open/replace/create file.vi but write in subvi

I'm trying to initialize the opening of a file in my main vi, but I need to pass the refnum out of the [open/replace/create file] function to the refnum input of the [write file]subvi I'm calling. The refnum data needs to go through multiple structures to get to the subvi, but I'm having trouble getting laview to tunnel from the main to the subvi refnum input. I know there is a technique to pass by reference but I'm not sure how to do this.
Anyone know the easiest way to due this?
0 Kudos
Message 1 of 2
(2,472 Views)
Two things, first check the code I posted you a little while ago. It might give you an idea of how to do things better.

Second, it sounds like you could be heading down a wrong path. (It's always a bad sign when things start getting really, really complicated.) Could you post a bit of your code so I can see what you are trying to accomplish?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 2
(2,472 Views)