X3 Matlab Export

Chris O'Shannassy

Posted on 20.10.2017 02:23

Hi;

Just tried to export a .mat file from the 64 bit version of DEWESoft X3, doesn't seem to have installed the dll file for it. I'm getting the error message "Export is not possible. LIBMAT.dll library not found."

Which is true, it doesn't seem to be installed for X3, I can only see libmat in "C:\Program Files (x86)\DEWESoft\Bin\X2".

Known bug?

DEWESoft Support
Technical support
Posted on 20.10.2017 13:44

Hi,

the X3 installation no longer includes the LIBMAT.dll file, which means that you'll need to have MATLAB installed on the PC that is performing the export. If you have a a 64-bit MATLAB installation on another PC, then you can copy the files from MATLAB to DEWESoft manually in order to use the export on a PC without MATLAB.

Henrik Sonnergård

Posted on 25.10.2017 08:57

Is it necessary to separately install a 64-bit version of Matlab for this to work? I encountered the same problem and copied the libmat, libmx and libut dll files from X2 to X3, but that didn't do the trick.

DEWESoft Support
Technical support
Posted on 25.10.2017 14:34

Hi,

if you have a 64-bit DEWESoft version, then you'll need the 64-bit dlls, which you'll only get from a 64-bit version of MATLAB. If you however have MATLAB installed on the PC which is performing the export, then you don't need to worry about the dll files.

Chris O'Shannassy

Posted on 29.10.2017 01:31

So, I have 64-bit DEWESoft X3, and 32bit Matlab (I need the 32bit version of Matlab for other reasons) installed on the computer, and am getting the LIBMAT.dll error. So, I tried the "Special Export" option to export directly into Matlab - but I get the following error message within Matlab:

RUN cannot execute the file 'C:\Program Files (x86)\DEWESoft\Bin64\X3\System\X3\Scripts\dw_data_reader.m'. RUN

requires a valid MATLAB script

It appears that there's nothing written into that directory, it's just empty - so I'm still unable to export files from Dewe X3.

DEWESoft Support
Technical support
Posted on 30.10.2017 16:05

Hi,

it appears that you don't have the correct environmental variables set to use the MATLAB export. The special export is another story which was in development, but it never got polished to be really useful, and there also seem to be some files that are missing in the installation.

I'd like to get the regular export working first. Your environmental variables need to include a path to MATLAB\...\win64 (or 32 in your case). Please check your path variables and if that path is not present, then you should add it manually. I've attached a screenshot that you can use for reference to help you locate the correct variable section.


Attached files:
Fabio Carcano

Posted on 06.02.2018 10:42

I can't install the 64-bit version of MATLAB on my Pc but I've to export the recorded data in MATLAB format for analysis purpose. Which are the dll I need to install?

Can you list me the file names and where I can find it? I'm using the Dewesoft X3 64-bits. Thanks


Chris O'Shannassy

Posted on 22.02.2018 05:42

I've mostly been getting around this by exporting on a machine that has a 64bit version of matlab installed as well. But I still cannot export from 64bit X3, with only a 32bit matlab install - even when trying to use the 64bit libmat.dll file. I've created a directory to hold libmat.dll at "C:\Program Files\MATLAB\R2017b\runtime\win64" and added that directory onto my system Path variable, see attached screenshot, but I'm still getting the same error message when trying to export.


Attached files:
DEWESoft Support
Technical support
Posted on 23.02.2018 15:41

Hi,

you unfortunately won't be able to use the MATLAB export if the bit rates of DEWESoft and MATLAB don't match. You need to have a 64-bit MATLAB if you're using a 64-bit DEWESoft, and vice versa.

After some further analysis, we've compiled a list of necessary dlls which enable the export even if you don't have MATLAB installed on your local machine. You can find it in the attachment. The dlls need to be located in the same folder as DEWESoft.exe.


Attached files:
Fabio Carcano

Posted on 26.02.2018 08:39

Hi,

I install the demo version of MatLab 2017b on my machine and the export works properly.

Then I moved the dlls you list to the Dewesoft folder and I removed MatLab, but the export stop working. Some dlls I found in the MatLab folders had a different version (….-vc140-…. instead of …-vc120-…); you can find the list the attachment.


Attached files:
Login to reply to this topic. If you don't have account yet, you can signup for free account .