LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to get control of a delphi application trough activeX component

I need to take control over some delphi application trough a LabVIEW VI. I know it is possible for all other microsoft applications using the ActiveX components. Is it possible with Delphi ? and How ??
0 Kudos
Message 1 of 3
(3,064 Views)
I do not have experience with Delphi, therefore my answer may be wrong.
In order to handle your Delphi (or other programming environment) code from LabVIEW, you need the external application to act as an activeX server. Thus, you need to find out if it's possible to do it in Delphi. Unfortunately, I could find just this link related to activex server in Delphi.
An alternative is to create activeX controls and embed them in LV front panels (comparing with activex server, this solution brings some limitations).
Also, you may consider to have your Delphi application as DLLs (if possible) or executable (controlling it by sending keys and mouse events via windows API)

Hope this helps somehow
0 Kudos
Message 2 of 3
(3,064 Views)
> I need to take control over some delphi application trough a LabVIEW
> VI. I know it is possible for all other microsoft applications using
> the ActiveX components. Is it possible with Delphi ? and How ??
>

I can't tell whether you are looking to control LV from Delphi or the
other way around, but I suspect it will be no problem. LV has ActiveX
client nodes for opening a connection to an automation server, reading
and writing properties, calling methods, and of course closing the
connection. LV also has an automation server interface so that you can
control it from Delphi having LV load, run, and return values.

Best place to look at client examples are probably the ones controlling
Excel. The server stuff is probably best shown on zone.ni.com.

G
reg McKaskle
0 Kudos
Message 3 of 3
(3,064 Views)