File Exchange > Import and Export >    Import PLEXON's PLX

Author:
OriginLab Technical Support
Date Added:
2/8/2017
Last Update:
9/15/2023
Downloads (90 Days):
79
Total Ratings:
0
File Size:
137 KB
Average Rating:
File Name:
Import PLE...LX.opx
File Version:
1.09
Minimum Versions:
License:
Free
Type:
App
Summary:

Import data from a PLX file.

Screen Shot and Video:
Description:

Installation
Download the Import PLEXON's PLX.opx, and then drag-and-drop onto Origin workspace.
An icon will appear in the Apps Gallery window.

OPERATION

  1. Click the Import PLEXON's PLX icon to launch the dialog.
  2. Choose the PLX file to be imported.
  3. A dialog will open, showing a list of available variables with checkboxes.
    By default all variables will be imported. 
  4. Click OK button to load selected variable(s) into Origin.

LabTalk

You can use LabTalk script to import data from a PLX file, by calling functions written in Origin C.

  1. Load Origin C prior to opening any PLX file:
    run.LoadOC(%@AImport PLEXON's PLX\OPLX.cpp, 16);
  2. Open a PLX file, an integer ID representing the file will be returned:
    int nID = PLXopen(_plx_file_full_path_);  // _plx_file_full_path_
  3. Get the name(s) of available variables:
    string timestamps$ = PLX_Timestamps(nID); // timestamp names separated by '\n'
    string continuous$ = PLX_Continuous(nID); // continuous names separated by '\n'
    string waveforms$ = PLX_Waveforms(nID);   // waveform names separated by '\n'
  4. Select variable(s) to import:
    StringArray saTimestamps = {SPK01, SPK02};  // names of timestamps to import
    StringArray saContinuous = {WB01, WB02};    // names of continuous to import
    StringArray saWaveforms = {SPK01, SPK02};   // names of waveforms to import
  5. Import the selected variable(s) into an existing worksheet, say, [Book1]Sheet1:
    PLX_GetTimestamps(nID, [Book1]Sheet1, saTimestamps);  // import specific timestamps
    PLX_GetContinuous(nID, [Book1]Sheet1, saContinuous);  // import specific continuous
    PLX_GetWaveforms(nID, [Book1]Sheet1, saWaveforms);    // import specific waveforms
  6. To import markers into the existing worksheet, say, [Book1]Sheet1:
    PLX_GetMarkers(nID, [Book1]Sheet1);     // import the marker variable if there's any)
  7. The loading process should always end by closing the file:
    PLXclose(nID);

Updates:

v1.09 2/20/2023 Improve IO performance.
v1.08 2/17/2023 Fixed out of memory issue when import over 500 files

Reviews and Comments:

Be the first to review this File Exchange submission.