LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Library Function Call Node

Hello
I have a WAGO PLC with an 750-842 Ethernet modbus.
I want to control my plc from labview. There is a dll (MBT.dll) that i have to use it. I try to use Library Function Call Node to call (MBTInit, MBTConnect, ,MBTWriteCoils, MBTDisconnect and MBTExit)
MBTInit does good but i do not know how can i pass a (HANDLE *hSocket) parameter to MBTConnect.
I will attach an example in C code and also the dll and lib file.
I hope some body can help me.
0 Kudos
Message 1 of 3
(3,314 Views)

The best thing to do would be to make a wrapper dll that would call the mbt dll. LV cannot directly pass pointers of complex data types into dll's. If you need more information about creating dll's for LV or using dll's with LV, refer to the "Calling External Code in LV" manual

Bilal Durrani
NI

Bilal Durrani
NI
Message 2 of 3
(3,314 Views)
Thank you for your attention. It was a good solution for my problem.
0 Kudos
Message 3 of 3
(3,314 Views)