11-18-2011 01:49 AM
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,
11-19-2011 01:12 PM
Could any one please help me with this question.
11-21-2011 12:43 AM
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,
11-21-2011 01:12 AM
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,
11-21-2011 02:59 AM
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?