LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is refnum? How does it work?

Hello!

I want to use the "write file" function. This function asks for refnum. What is that, and how does it work? I have tried to read the help, but it is very poorly described there.


/ Krille
0 Kudos
Message 1 of 3
(5,912 Views)
Hello Krille,

Refnum is a reference to an object or procedure you are operating with.
In your case, it is a reference to the file you will write to.
To write to a file, you must open it first, the "Open/Create/Replace File" function will do that and will return a refnum for you to connect to your write file function.
Hope this helps,
Paulo
Message 2 of 3
(5,907 Views)
OK!

Thank you. This solves my problem. I didn´t know how to get the refnum variable.


/ Krille
0 Kudos
Message 3 of 3
(5,904 Views)