This example shows how to use one of the .NET control to have the Windows Explorer shell in front panel to be able to read/write files, open any folder or file and navigate to different locations on your hard drive.
Description The Explorer is loaded from the Shell assembly from the API Code Pack. It works pretty good just by defining the current location to be any path (e.g. "C:\Program Files\National Instruments"). It then displays the folder as if you were in a dedicated Windows Explorer window.
The drag/drop feature is native on path/string controls that have the "Allow Drop" property set to True. One just has to declare a "Value Changed" event on the path to make it effective, and use some random code in it (here, plot the data from the txt file).
Finally, to avoid having a too huge part of the FP dedicated to the Explorer, a Slide to hide/show the panel containing the .NET control is added.
LabVIEW 2012 (or compatible)
.NET Framework 4.0
Steps to Implement or Execute Code
Run the VI
Navigate in the explorer as if you were
in a regular folder.
Enter a new location in the address bar.
Click the centered boolean to hide/show
Drag&Drop a txt file to the graph (Graph.txt)
Additional Information or References VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Eric M. - Senior Software Engineer Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer Neosoft Technologies inc.