LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What data type is refnum? initializing refnum?

Hello,
 
I've attached my Labview 6.1 VI.   The VI allows the user to save and view the data of  up to 12  DAQ channels.   The VI uses a case statements and the the checkbox to determine whether or not to open and save data to a file.  My problem is that for a False condition, the File refnum is unconnected.  I believe I corrected the problem with the error out not being connected by initializing it using a cluster constants.  However, I haven't tested it yet.  How can I resolve the problem with the unconnected refnum.
 
Thanks,
Stephen
0 Kudos
Message 1 of 3
(3,019 Views)
In the palette under the files section is a "Not a Refnum" VI constant you can use for the False case.
Or depending on the version of LabVIEW you have you can right click the output tunnel and change it to "Use default if unwired".
 
In you save case check to make sure the Refnum is valid before saving or even giving this option...
 
 
0 Kudos
Message 2 of 3
(3,010 Views)
Thanks!  Smiley Very Happy
0 Kudos
Message 3 of 3
(3,007 Views)