LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can we read DLL build in Labview which contains Modbus functions into Visual studio?

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

 

Associate Engineer
Eaton Technologies Pvt. Ltd
0 Kudos
Message 1 of 3
(2,701 Views)

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!


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 3
(2,692 Views)

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?

Associate Engineer
Eaton Technologies Pvt. Ltd
0 Kudos
Message 3 of 3
(2,683 Views)