USRP Software Radio

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 2901 USRP from C program

Solved!
Go to solution

I am new to USRP and have a 2901 I am trying to control with a C program.   The manual says the device can only be used with Labview System Communication Design, but all the drivers seem to be there.  Can I control with C program ?  If I can use with C program, do I need to install the Labview anyway ?

 

From C I can communicate with device but after I niUSRP_ConfigureSignal and call niUSRP_WriteTxDataComplexInt16 to send samples, the call fails with the message "NI2901 data write failed. Status = -1074118650", even though I have timeout set to a negatvie number (wait forever).  All other calls seemed to work just fine.  Any assistance would be appreciated.

0 Kudos
Message 1 of 19
(6,615 Views)

As specified in the manual and readme for NI-USRP, the 2900 and 2901 devices are only supported in LabVIEW Communications System Design software. 

http://www.ni.com/pdf/manuals/374760e.html

 

The USRP 2920/21/22/30/32 devices can all be programmed using C and other languages, so if this is a requirement, then you may want to consider looking into these.

Paul C
0 Kudos
Message 2 of 19
(6,577 Views)
Solution
Accepted by Phipps

Hi Phipps,

 

You can program the 2900 using the Ettus UHD driver in C++, and I believe C as well. The USRP 2900 is very similar to a B200. 

Message 3 of 19
(6,558 Views)

Hi guys,

 

is there a way to program the USRP 2901 from matlab program or labview ?

 

0 Kudos
Message 4 of 19
(6,362 Views)

Hi emnajaoua,

 

I have had success in the past using the 2900/2901 with LabVIEW (rather than LabVIEW Communications). However, it's worth noting that LabVIEW is not officially supported by NI, only LabVIEW Communications. 

0 Kudos
Message 5 of 19
(6,355 Views)

Hi,

Thanks for your response.Have you installed any special driver for that ? have you followed a certain tutorial or something like that to do it ?

 

Best,

 

Emna.

0 Kudos
Message 6 of 19
(6,345 Views)

When I run LabVIEW USRP examples, I just replace the IP address with the name of the 2900/2901 (typically ni2900 or ni2901) and it seems to work. 

0 Kudos
Message 7 of 19
(6,327 Views)

Hi,

 

for the labview that I am working on I am facing some problems cencerning the drivers for the USRP hardware.

0 Kudos
Message 8 of 19
(6,310 Views)

Which driver are you using? 

0 Kudos
Message 9 of 19
(6,305 Views)

I have installed USRP1.1 from this link http://www.ni.com/download/ni-usrp-1.1/2949/en/

then I have opened a project which uses the USRP components (niUSRP open session , ... ) they seem not to be recognized.

0 Kudos
Message 10 of 19
(6,303 Views)