LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use GetTagInfo located logosbrw.dll

Hi,

 

I'm developing a Shared Variable Browser using logosbrw.dll functions to list items on network.

I need to get info for some items, but I can't call GetTagInfo function succesfully.

 


Thanks for help.

 

 

 

0 Kudos
Message 1 of 3
(2,499 Views)

@bruno_costa wrote:

Hi,

 

I'm developing a Shared Variable Browser using logosbrw.dll functions to list items on network.

I need to get info for some items, but I can't call GetTagInfo function succesfully.

 



Have you found somewhere an official document that describes the API of this DLL? Just trying to call this DLL is most likely a very bad idea for several reason:

 

1) DLLS do not contain any interface description information, like .Net assemblies or even most ActiveX components. So calling them without a function documentation is impossible without resolving to disassembly and other likely illegal activities.

 

2) It's a low level DLL from the NI network protocol stack which is proprietary so far, undocumented as far as I know and subject to change at any time if NI decides so.

 

3) The DLL interface is AFAIK not called directly by most NI products. As such that interface can change at any time too, because of bug fixes, improvements or the simple decision by the developers to change it for fun.

 

4) It's probably a component used in the Datalogging Toolkit which is a licensed product and as such using components from this product without proper license is possibly illegal.

 

5) Not being an officialy documented API you base your work on something which can and most likely will change in the future in incompatible ways.

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 3
(2,480 Views)

I'm informed about this questions. But there are no other way to list variables on OPC servers.


Let me explain my problem better:

 

I need a way to list OPC variable structure with Access Mode and DataType for some OPC on network conncted through an IO Server in TagSrv.

 

In the LabVIEW 2012 there are a new way that only list the names and folder structures and I need a way to list Access Mode and Data Type too. This method has the same problem above.


There are a bug wich affects the functions "Data Socket Select URL.vi" and "Distributed System Manager" that show some folders items with incorrect types.

The difference are the possibility of expand the folder, in the Distributed System Manage I can expand the folder and in the "Datasocket Select URL.vi" I can't.

Some folder appear to me as doubles or variable range and a I can't list any items under of these folders. This error appears in this dll too, but I have a contour solution calling the function SetCurrentFolder on items with <4115> as datatype value and if success is a folder and else isn't a folder.

0 Kudos
Message 3 of 3
(2,470 Views)