In LabChart 8 for Windows, a prewritten macro named ExportFolder provides the capability to export Windows formatted (*.adicht) LabChart files within a specified folder to a set file type in another folder. The following formats are supported by LabChart and this macro:
- txt -> LabChart Text file
- bin -> .adibin LabChart Binary file
- mat -> MATLAB file
- edf -> European Data Format file
- abf -> Axon Binary File
- pxp -> Igor file
- wav -> WAV file
The ExportFolder script is found under the Example Macros tab in the Manage Macros Pop-up window, which is accessible via the Macro menus 'Manage...' option.
When running the script, the macro will prompt the user to first select the folder containing the *.adicht files, and will then prompt the user to select the folder where to save the exported files in the desired format type.
ExportFolder is configured by default to export *.adicht files to *.txt files. If you would like to change the format of the exported file, follow the directions below:
- Navigate to the Example Macros tab
- Double left-click ExportFolder or select ExportFolder and click View
- Copy the code’s script, excluding the first and last lines of the code (Sub ExportFolder () & End Sub)
- Navigate to Document Macros (Macros > Document Macros) and click New
- Name your macro and press OK
- Paste the ExportFolder script between the Sub and End script
- Change the extension type in the exportExtension = "txt" line of code to the desired format
- i.e. exportExtension = "edf" to export the folder’s files to European Data Format files
For further technical assistance with this or any other issue, please contact ADInstruments Technical Support by clicking HERE.