Automatically export to Matlab

  • Software
  • Automatically export to Matlab
Siv Pou

Posted on 06.03.2018 16:14

Hi

I am a total beginner with Dewesoft.

For my application I need to start and stop the measurement from a Matlab script, which I actually managed to do. The problem is that I am not able to import the recorded data to Matlab after that. What I am looking for is a command (in Matlab) that export the recorded data to Matlab in the same way, and format, it is done manually from the DEWESoft-program.
Is there such a command?
Is there another way of directly getting the data to Matlab, given that the measurement was started from Matlab?

Urban Baš
Software Test Engineer I
Posted on 07.03.2018 08:50

Hello,

yes, there is such a command called ExportDataEx. Here is a link to the DCOM manual where you'll find instructions for this command. After you have exported your file, you'll just have to make a script to load it.

Please tell me if you need any more help.

Siv Pou

Posted on 07.03.2018 10:38

Hi,

Thank you so much for your answer much appreciated, it seems like it is working for now.

However another problem occurred, when using the command StartStoring, Dewesoft is able to open from Matlab normally, but then I get an error saying "Access denied".

I tried changing the settings in "dcomcnfg" according to https://www.dewesoft.com/forum/posts/662, however it does not seem to make any difference.

Any idea on this problem?

Urban Baš
Software Test Engineer I
Posted on 07.03.2018 11:03

Hi,

can you please try to store data with Dewesoft, without using Matlab, so we can see if this is a DCOM problem or a Dewesoft problem.

Can you also tell me what version of Dewesoft are you using.

Siv Pou

Posted on 07.03.2018 12:13

Storing manually from Dewesoft works fine. I am using DEWESoftX3 (64-bit), Matlab 2017b (64-bit) and Windows 10

Urban Baš
Software Test Engineer I
Posted on 07.03.2018 12:32

Did you use the command "procedure Measure();" before the "StartStoring"? You need to be in measure mode before you start to store.


Siv Pou

Posted on 07.03.2018 12:39

I tried that, does not work, also tried "Start()" . I really do not get it. Every other command works just fine.

Siv Pou

Posted on 07.03.2018 12:39

I tried that, does not work, also tried "Start()" . I really do not get it. Every other command works just fine.

Urban Baš
Software Test Engineer I
Posted on 07.03.2018 12:59

Try running Matlab as administrator and see if that helps.

Siv Pou

Posted on 07.03.2018 13:14

That does not seem to work either. But, I managed to solve the problem in another way (not a very good way but it kinda works) and getting around the command StartStoring.

Thank you again for your help, much appreciated!

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