FREE_LUN Procedure
Deallocates file units previously allocated with GET_LUN.
Usage
Input Parameters
uniti—The file units (logical unit numbers) to deallocate.
Keywords
None.
Discussion
If the specified file units are open, they are closed prior to the deallocation process.
Example
; Open test.dat file for reading and allocate a logical unit number. OPENR, log_unit, !Data_dir + 'mandril.img', /Get_lun ; Read the file. mandril_img = BYTARR(512, 512) READU, log_unit, mandril_img ; Closes the file and frees the logical unit. FREE_LUN, log_unit
See Also
For background information, see the section Logical Unit Numbers (LUNs) in the PV‑WAVE Programmer’s Guide.