DEWESoft X2 plugins not working

Dennis Rosen

Posted on 20.03.2015 14:03

Hello,

I am developing a plugin for DEWESoft in Visual C#. I've been using DEWESoft X1, but recently I need to use X2. However, the plugin works fine in DEWESoft X1, but freezes randomly in X2 when measuring data, and always freezes when I try to stop measuring.

I've been trying to fix it for some time now, but nothing seems to work. So I figured I'll try the basic skeleton C# plugin example from the developer downloads. I found out that the basic plugin works with X1, but doesn't work with DEWESoft X2: It freezes when going to the measure state. Commenting out the AcquireData function seems to fix the freezing; it seems that accessing anything in the app variable interface causes the system to freeze.

Am I doing something fundamentally wrong here to get custom C# plugins to work for DEWESoft X2? Shouldn't the basic example work "out of the box"?

I am using Windows 7 Enterprise 64 bit.

DEWESoft Support
Technical support
Posted on 27.03.2015 10:39

Hi,

X2 uses arbitrary thread for data acquisition. In X1 data acquisition was performed in main UI thread. For some reason plugins/objects written in .NET framework cannot be called from arbitrary thread. They must be accessed from the same thread that created them (main UI thread). We are aware of this issue and we are looking for a solution. Most probably we will need to make a fallback to X1 way of data acquisition if .NET plugin is used. We'll get back to you as soon as we have this sorted out.

Chris Ludlow

Posted on 03.12.2015 23:38

Has this thread lockup issue been resolved in X2 yet? We attempted this same thing back in May, but have not tried again since. We stopped Dewe development for this exact reason.

Ben Newman

Posted on 15.05.2016 18:41

Has anything been done to resolve this? We just purchased Dewesoft mainly for it's plugin interface. If I can write C# .NET plugins for X2 then that's a big problem.

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