Automatically export to Matlab
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?
Software Test Engineer I
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.
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?
Software Test Engineer I
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.
Storing manually from Dewesoft works fine. I am using DEWESoftX3 (64-bit), Matlab 2017b (64-bit) and Windows 10
Software Test Engineer I
Did you use the command "procedure Measure();" before the "StartStoring"? You need to be in measure mode before you start to store.
I tried that, does not work, also tried "Start()" . I really do not get it. Every other command works just fine.
I tried that, does not work, also tried "Start()" . I really do not get it. Every other command works just fine.
Software Test Engineer I
Try running Matlab as administrator and see if that helps.
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!