Visual Control C# example not working on X2

  • Developers
  • Visual Control C# example not working on X2
Olivier LAVAL

Posted on 11.05.2017 11:26

Hello,

I would like to create my own Visual Control plugin. In order to not start from nothing, I download from your website "Visual Control C# example", i generate it (without any modification). When I try to use it, it appears correctly, but DeweSoft freeze (as soon as the mouse move), so I have to kill the task.

I use dewesoft X2-SP8, so i suppose that, may be, the plugin was made for X1. Is it please possible, to have an example of a Visual Control in C# working for X2 ? Or what is the correction to make in order to make it works fine ?

Thanks in advance

Olivier L


DEWESoft Support
Technical support
Posted on 11.05.2017 15:13

Hi,

if you're using custom plugins in X2, you have to uncheck the "Decoupled acquisition and UI" option in DEWESoft's settings, under the performance tab. I believe that after you make this adjustment, your plugin from X1 should also function correctly in X2.

If you want to develop something from scratch for X2, I would suggest that you try our "Visual Studio 2015 Plugin wizard", which is located at the bottom of the developers section.

Please let me know if this will solve your issue.


Attached files:
Olivier LAVAL

Posted on 11.05.2017 16:04

Hi,

Thanks for your answer. I unchek "Decoupled acquistion and UI " as you described. But, I still have the issue, (even worst, since now, the visual control don't appear at all, DEWESoft freeze directly).


In order to ease and accelarate development, i would like to avoid starting from scratch, that's the reason i need just a little example and add some minor modification.


Thanks again

DEWESoft Support
Technical support
Posted on 12.05.2017 15:20

Hi,

that's really odd because that's usually all it takes to get X1 plugins to work in X2.

I would try running DEWESoft as admin to make sure that the plugin gets correctly registered. If that doesn't work, then I think that the best option is to run the plugin Wizard anyway. I believe that it includes some example code so you'll be able to see how plugins should be written in X2.

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