03-19-2013 02:00 AM
Hi,
I build DLL which contains Goop Modbus functions used for reading data from controller in Labview.
Now I want to use this DLL and read value in visual studio C# .Net. How I can do this?
I kept all modbus settings constant. So my function returns value directly for temperature.
You can check attached code and DLL for same
03-19-2013 03:02 AM
http://zone.ni.com/reference/en-XX/help/371361J-01/lvhowto/building_a_net_assembly/
Refer to Calling the .NET Interop Assembly from Another Program section.
Also not sure why you have a while loop in your program!
03-19-2013 04:02 AM
Actualy I we executed small function which perform simple addition of two number entere.
Now issue is we are getting error for this particular DLL which has modbus communication VI.
Should I need to install some driver or implement communication separately in Visual Studio?