Multiple file loader front end

A small panel is presented to the user for loading multiple files into an Igor experiment. This panel gives the user the ability to navigate to the disk folder containing files to load. A listbox is then updated to show a list of files in that folder. The shift key can be used to define contiguous groups of files and the control key (Win) or command key (Mac) can be used to select and deselect individual files in the listbox. Finally a button "GetFiles" is used to end file selection and initiate further code exection. The panel code stores its waves in its own subfolder.

The 3/22/2010 update (MultiFileLoader_1.ipf) incorporates several improvements aimed to make it easier to use and incorporate into other applications:

--Added data structure (structJTG_MFL) to hold the list of selected file names and path to disk folder holding those files. This should make it simpler to pass the file list onto a file loading function.

--Modified popFuncList Popup Menu. This Popup Menu can be used to select a function to process the list of selected files. All functions in memory ending in "_MFL" will be included in the list automatically and the selected function will be called when the list of selected files has been assembled.

See Release Notes and comments in the procedure file for additional details. Although this procedure was developed on Igor 6.12a, it should still be compatible with version 5.00 and above.

Images:

User interface

Project Details

Current Project Release

Multiple file loader front end IGOR.6.12.x-1.3

Release File: MultiFileLoader_1.ipf (34.93 KB)
Version: IGOR.6.12.x-1.3
Version Date:
Version Major: 1
Version Patch Level: 3
OS Compatibility: Windows Mac-Intel
Release Notes:

This 3/22/2010 release incorporates the following changes
--Added data structure (structJTG_MFL) to hold the list of selected file names and path to disk folder holding those files. The goal is to make easier to pass this data onto a file loading function.

--Modified popFuncList Popup Menu on the panel. This Popup Menu can be used to select a function to process the list of selected files. All functions in memory ending in "_MFL" will be included in the list. File processing functions must take as a single input a structure of the type structJTG_MFL. A numeric constant (kHideFunctionList) at the top of the procedure file controls whether the Popup Menu is enabled or not. If the popup menu is not hidden, the selected function will be called once the list of selected files is compiled.

--Because of the change to the behavior of popFuncList, the KnownFuncLists string variable has been removed from the function that creates the panel (MultiFileLoad).

--Fixed start up behavior of the panel so that the list box is filled with files from the default disk folder in ksDefaultDataPath. If that path doesn't exist, Igor pops up a dialog to find it.

--Provided a means to limit the types of files displayed in the list box. This is done using the fileTypeOrExtStr parameter of the IndexedFile function. Currently, the default behavior is to list files with the extension ".spc". However, all files in the folder could be listed, using the "????" form of fileTypeOrExtStr. For now this is easily (but not terribly transparently) done using a string constant (ksFileTypeOrExtension) at the head of the procedure file.

--Although this version has been created with Igor 6.12A, it should still be compatible with version 5.00 and greater.

View All Releases

Forum

Support

Gallery

Igor Pro 9

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More