LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug .net assembly in labview

Hi, I have .NET assemblies that I am calling from labview. How can I automatically launch Visual Studio when I step into a these code modules from labview? What kind of enviroment I need?

 

I am really appreciate anyone's help!

 

0 Kudos
Message 1 of 10
(3,662 Views)

Did you actually try to do a search?

 

Using Visual Studio to Debug an Assembly in LabVIEW

0 Kudos
Message 2 of 10
(3,650 Views)

Thanks. I do search. But from the link, I am not sure it's talking about C/C++ DLL or .Net DLL. Since I never work on the source code of .NET, I want to comfirm the setup...

0 Kudos
Message 3 of 10
(3,644 Views)

It's talking about .NET. If you don't know .NET then you should read up on some tutorials on .NET, otherwise how are you going to know what you're debugging?

0 Kudos
Message 4 of 10
(3,642 Views)

I know the DLL is build in .NET framework when it's passed from my colleague to me. And I can use constructor in labview to call this DLL. The problem is I meet with some problems and I need to see how to debug it. My colleague doesn't know labview and I don't know .Net. So I come here to ask the setup enviroment so we two can work together.

0 Kudos
Message 5 of 10
(3,639 Views)

Thanks for your reply. I will use ADE then.

0 Kudos
Message 6 of 10
(3,631 Views)

I don't understand what you're asking. Do you have a debug version of the DLL? Do you have the source code? That KB article tells you how to debug a .NET assembly. It's pretty self-explanatory. You load the solution in VIsual Studio. You place breakpoints where you want. You attach VIsual Studio to the LabVIEW process. You have the LabVIEW code call the assembly. When the breakpoint is hit, the Visual Studio environment will kick in. If your colleague knows how to use Visual Studio then they should know how to debug a .NET library that's used by another process. It's no different with LabVIEW.

0 Kudos
Message 7 of 10
(3,630 Views)

They can give me the source code of DLL. I will do the debug myself. I need to setup the enviroment in my PC.

One more quesiton: the link mention it's Visual Studio ADE. Should it be Visual Studio IDE?

0 Kudos
Message 8 of 10
(3,622 Views)

There is no special setup of the PC. You'd be debugging an assembly in the Visual Studio IDE. Again, if you do not know how to write .NET code or to debug assemblies, then you should study the manuals that come with Visual Studio or talk to your colleague, as this is a Visual Studio question, not a LabVIEW one.

 

I have no idea why the article says "ADE". It should say "IDE".

0 Kudos
Message 9 of 10
(3,610 Views)

Thanks a lot!

0 Kudos
Message 10 of 10
(3,608 Views)