From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(5,801 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
(5,763 Views)
Solution
Accepted by topic author 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
(5,744 Views)

Hi guys,

 

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

 

0 Kudos
Message 4 of 19
(5,548 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
(5,541 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
(5,531 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
(5,513 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
(5,496 Views)

Which driver are you using? 

0 Kudos
Message 9 of 19
(5,491 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
(5,489 Views)