I've been experimenting creating data plugins using the Labview SDK, and have successfully got the examples shipped with the SDK to work (example loads a sample with the "lvtxt" extension). The import of these "lvtxt" files into the data portal works fine, until I attempt any analysis on the data portal data.
For instance;
Step 1: load the sample "lvtxt" file into data portal using plugin - works fine
Step 2: Clear the data portal, and reload a "lvtxt" file using plugin - again works fine
Step 3: Perform any operation on data in the data portal (for instance min/max) - works fine
Step 4: Clear the data portal, and attempt a reload of the same "lvtxt" file - Consistently fails.
The error message that appears when I try to reload the "lvtxt" file using the plugin is "Error message from DIAdem command kernel: Unexpected error". The only option is an OK button with no other hint what's wrong.
Annoyingly, the only way to "clear" this error is to quit and then restart DIAdem. Everything then works fine until I again modify data in the data portal, upon which the error occurs again. It appears changing the data structure (either storing results in the existing channel properties or writing the analysis to a new channel), causes a conflict with subsequent plugin loading operations. I've found no way to clear the subsequent plugin loading errors, except by doing a DIAdem restart.
What am I doing wrong here?
Labview 2015 64 bit
Labview plugin SDK 2015 64 bit
DIAdem 2017 64 bit