Hi,
I know how to call .NET from VEE (using dll).
I know how to call VEE function from .NET (using callable server).
But does anyone know how to call VEE function from dll that was called by the same VEE?
Eg.
My main aplication is in VEE. I want to create GUI in .net so I created dll in Visual Studio. Now from this dll I want to call some fuction from the same VEE program that called dll. When I use callable server it open new instance of my VEE program but I need to call function form the same VEE program that called dll. Maybe there is a way to configure callable server to reference to parent VEE? Any ideas?
I'm using VEE 9.2, C# and Visual Studio 2013.
Thank you.
Martin P.
If I understand your request correctly, I think the answer is to add events to your dll. For example you probably want your VEE program to update fields on your GUI which it can do via a call to the appropriate method or setting a property. If you change something on your GUI, you'll want that to call a function in the VEE program.
So add an event, say MakeMeasurementButtonPressed, and then in your VEE program you'll see you can capture that event as a function call. IIRC there is a 'enable events' checkbox in VEE associated with the DLL object. Note that the function call is out-of-scope so you can only call public UserFunctions or access / alter program-wide global variables.
HTH,
Mike Watts