05-03-2010 12:01 PM
I have an Agilent N4010A and I have an example vi from Agilent. I am attempting to write a program that will test a WiFi wireless acsess point that we are designing. I need to write a LabView program that will communicate with the access point and the N4010A. I have learned from Agilent that the N4010A does not have a standard SCPI command list (when using the WLAN test option) like all other instruments I have dealt with in the past. In fact, it states you must use a COM or .NET interface with it. I don't understand what that means. Does that mean I need to be able to program in COM or .NET environments in order to control this piece of equipment? How do I go about automating a test when no SCPI commands are available?
Thanks,
Mike05-03-2010 01:02 PM
What they are referring to is that they have a COM library and/or a .NET library that can be used to control the instrument. The COM library would be accessed using the ActiveX Automation functions. You do not have to program in a .NET language to use the .NET library. You can call the .NET library using LabVIEW using the .NET functions. For both of these examples ship with LabVIEW.
The most likely problem you will run into with calling the .NET library from LabVIEW would stem from compatibility between the .NET version and the LabVIEW version.
05-03-2010 01:23 PM
05-03-2010 01:43 PM
08-11-2010 11:09 AM
I'm just curious if you ever got up and running on the code for the N4010A. I am writing code now using .NET. If you still need help or want to cross reference, let me know.
05-05-2011 03:36 AM
Hi There,
Could you please provide some steps on how to program the N4010A using .net. I am having the same problem as Agilent doesn't have SCPI commands for WLAN testing using N4010A
Regards,
-Bittu
05-05-2011 06:16 PM
Hello Bittu,
I looked on our website to see if we had drivers for this specific instrument (www.ni.com/idnet), but we do not. You will need to contact Agilent to get the correct drivers, DLLs, example VIs, etc. However as stated above, once you have access to those drivers and DLLs, you can call the .NET library using LabVIEW using the .NET functions.
Have a great day!
Jordan G
05-06-2011 02:19 AM
Hi,
You need the Agilent.N4010.WLanTest.dll, which comes with the installation of the (I think) virtual front panel. There is then also a little Labview programming example which you might find usefull.
Let me know if you need further help.
05-06-2011 03:10 AM
Hi Jef and Jordan,
Thanks a lot for your quick help. I got the dll from Agilent, When I tried adding the .net assembly references (Agilent dll) using Tools--->Advanced------>, I was unable to add.
simply it won't take...sorry could you pls help me why this is so?
05-06-2011 03:24 AM
Hi,
You need to place a constructor node on your block diagramm, then select the .dll and create an e.g. instrument reference.
I attached a little example that opens the connection to the instrument and reads out the Driver Version and Instrument Manufacturer.Hope that helps.
kind regards