USRP Software Radio

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 2901 USRP from C program

Solved!
Go to solution

You'll need USRP 14.1 or later. 

0 Kudos
Message 11 of 19
(2,618 Views)

I have installed USRP 14.1 from this link http://www.ni.com/download/ni-usrp-14.1/5335/en/

but when I try to open this project example from this link https://decibel.ni.com/content/docs/DOC-21823

look at the errors that I find Capture11.PNG

0 Kudos
Message 12 of 19
(2,605 Views)

This looks like a driver compatibility problem, not a USRP problem.

 

It looks like you're using LV 2015. In that case, I recommend that you use USRP 15.0 instead of 14.1. 15.0 includes support for LV 2015, while 14.1 does not. The problem could also be due to some file confusion on the part of LV. It is using an incorrect path to the VIs in the driver. I would recommend running through these steps. Those VIs can all be found at C:\Program Files (x86)\National Instruments\LabVIEW 2015\instr.lib\niUSRP . Make sure the LabVIEW is looking there. 

Message 13 of 19
(2,591 Views)

It have turned to be a matter of driver not project file conflicts.

Thank you for your help.

0 Kudos
Message 14 of 19
(2,583 Views)

No problem.

0 Kudos
Message 15 of 19
(2,571 Views)

Hi Phipps, I'm trying to do something similar to what you say. How is your work now? Does it work? 

 

I'm using python to call the functions of the niusrp.dll. It's kind of like to use C programming language to control USRP 2901 directly. However, I don't know how to pass the sessionHandle in the function ''niUSRP_OpenRxSession'' to the function ''niUSRP_ConfigureSignal''. I get the error code: 0xbffa4010 which means the niUSRP_Error_InvalidSessionHandle. Have you met this problem before? I set 4 bytes pointer to the variable sessionhandle in my code and return 0 from the function  ''niUSRP_OpenRxSession''. The value of this pointer is changed to '0x01' after the  ''niUSRP_OpenRxSession''. Do you have any ideas about any tips on this pointer? Thanks a lot. 

0 Kudos
Message 16 of 19
(2,076 Views)

Hi Mingway, 

Instead of reviving an old thread that is no longer active, you'll probably have better luck creating a new thread.

 

I noticed you created another thread, but in Multisim. I would suggest you repost your question in the USRP board instead of in this old topic or in the wrong forum.

 

Another way you can search is by defining your search parameters to search for USRP on NI's forums. I've found that this has been very helpful when searching for obscure information. 

 

 

0 Kudos
Message 17 of 19
(2,039 Views)

Oh I see. Thanks a lot for the suggestions. I'm new to here and so sorry about my misstep. I create another new topic in the correct place already.

0 Kudos
Message 18 of 19
(2,027 Views)
Hello, I've read the post regarding the usage of C and CVI with USRP. I'm trying to figure out how can I invoke usrp/uhd driver using CVI. I have installed the USRP driver. Now, using usrp_readme page (attached here) I intend to call driver functions from the dlls. 
 
I have the niusrp dlls, libs, *.h files, but regarding niuhd.dll - I have only the dll itself. No header files, no import library.
Here are my questions :
 
Does niusrp.dll uses the niuhd.dll, and niusrp API actually linked to niuhd.dll?
Is there any significant/meaningfull difference to use usrp.dll than directly use uhd driver from ettus?
Download All
0 Kudos
Message 19 of 19
(1,823 Views)