Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68600

Check to See if an Active Refnum Exists

$
0
0

Hey All,

 

Gumby question today.  I want have written code that opens a data log file when the "Log" button is clicked.  Now I want to add code that, under certain circumstances, checks to see if a data log file exists.  If it exists, I will close it before opening a new one.

 

My first thought is to check to see if an active Refnum exists.  If so, I would close the associated file before opening a new one.  Is this the right way to go?  If so, how do I set up a check to see if an active refnum exists?


Many thanks.


Viewing all articles
Browse latest Browse all 68600

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>