LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WIFI acquisition with WLANAPI.DLL dynamic library

Hello to everyone,

 

I'm a French student currently studying in Germany, for my end studies application.

I am facing a problem : I need to acquire the MAC adresses and signal strengths of the nearby WIFI networks via the WIFI interface of my laptop.

I am at the optimization step, and I had the idea to use the wlanapi.dll dynamic library, as you can see it in the attached VI.

But, my problem is that I really don't know how to configure the "call library function node", wich functions to call, in wich order, etc... I have only a light knowledge in C, but not at all in C++.

Here the Microsoft documentation I found : 

http://msdn.microsoft.com/en-us/library/windows/desktop/ms706274%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms706274%28v=vs.85%29.aspx

 

I called the NI support 10 days ago, no answer yet...

 

Thank you very much for your help,

 

Pierre

0 Kudos
Message 1 of 3
(3,215 Views)

Hello pierre-dev,

 

In fact, the functions that you need to call as well as the order are information which are specific to the DLL that you would like to use. In the DLL, you will find basic functions and if you want to realize some complex behaviors, you will have to look into the documentation of the DLL (on Microsoft site here) in order to know which ones you will need to associate (put together).

 

If you wish, you can try to contact Microsoft to help you but LabVIEW is not related to this first stage.

 

Then, once you will have found out which functions to use, you will have to choose the right datatypes to fit with Microsoft's datatypes. And the documents that Junior provided you here will help you to do this.

 

Here an additional document which should also be useful :

 

Using External Code in LabVIEW

 

Regards,

Jérémy C.
NI France

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

Hello Pierre-Dev

 

Were you about to obtain a wrapper file? This is something similar to what I'm trying to accmplish. I really want to be able to display the wifi single strength from my HMI on my front panel. I was thinking of taking a similar approach to what you did but I was  having a difficult time with the wrapper file to access the WLANAPI. 

I found an example c++ code using the Wlanapi which I was attempting to interpret in microsoft visual studios 2010 but I was having a hard time compiling the code. I'll send a link to the code I used this evening.

 

Cheers

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