LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem calling a .net from labview, made by labview

Hello all,

 

I made a simple program to see if I can call a .net assembly made by labview.

Included is the .NET program(Maal.zip) made with labview 2010.

The program "run_dotNET_from_labview.vi" then calls the 'Maal'.

 

The dotNET code, 'Maal',  is a simple multiply program which multiply A with B and the result is C.

The occurs when calling this, labview will halt when trying to invoke the parameters.

 

I tested it in teststand 2010, there it works!

 

What am I doing wrong in labview?

 

gr,

Download All
0 Kudos
Message 1 of 5
(2,441 Views)

 

Could any one please help me with this question.

 

0 Kudos
Message 2 of 5
(2,427 Views)

Dear darkceed,

 

I did a test with Labview 2011 on a Windows 7 machine. I builded the assembly from your project. The assembly was stored in the same folder as run_dotNET_from_Labview.vi; this VI runned without any problems. So can you try to store the assembly in the same folder as your test VI?

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 3 of 5
(2,417 Views)

Hi hinlmartijn,

 

I tried it but no result, still the same problem.

Would find it strange if that would be the case, then I would have to put all the .net assembly's in the same folder.

 

Do I have to make some configuration in labview to be able to call a .net assembly?

 

gr,

0 Kudos
Message 4 of 5
(2,414 Views)

Made some progres...

 

When I build the caller to an exe then the .dll will be loaded.

But when I close the .exe I get an error. No info is given with this error.

 

I changed the default directory to where the .dll exist but no result when opening it in labview self.

How can I make labview look in the folder for the .dll?

I there a way to add a path to the constructor so he knows which .dll to load?

 

 

 

 

 

 

0 Kudos
Message 5 of 5
(2,410 Views)