LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Active X Server from C#.net

Hi there !

I want to access an active x server compiled with Labview 6.0i from
C#.Net. There are some Examples using VB but not C#.
Here is my Example Code:

....after adding a Reference to LVSERVER...

LVSERVER.Application LVApp = new LVSERVER.ApplicationClass();
string test = LVApp.ApplicationDirectory;


.... The Labview Application starts correctly , but in the second Line
I get an Exception like this:

----------------------------------------------------------------------------------------------------------------
An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll

Additional information: Unknown language.
-----------------------------------------------------------------------------------
-----------------------------


Do you have any ideas ?



Greetings Roland
0 Kudos
Message 1 of 3
(3,090 Views)
Here is an example program from NI's website which demonstrates how to call a LabVIEW VI from C# via ActiveX. See if this runs on your machine and hopefully it will provide some clues.
J.R. Allen
0 Kudos
Message 2 of 3
(3,090 Views)
Hi,
sorry, but I cannot open this link.
Greetings Roland


On Fri, 7 Feb 2003 10:30:49 -0600 (CST), JRA wrote:

>>"http://eagle.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3DC9156A4E034080020E7486...
>is an example program from NI's website which demonstrates how to call
>a LabVIEW VI from C# via ActiveX. See if this runs on your machine
>and hopefully it will provide some clues.
0 Kudos
Message 3 of 3
(3,090 Views)