04-18-2019 10:20 PM - edited 04-18-2019 10:33 PM
Hello everyone,
I am trying to use USRP NI 2954 with MATLAB 2013b on a 64 bit laptop with Windows 10 as the OS.
I have built an interface to communicate between MATLAB and the USRP device based on "https://github.com/nav-ei-tum". I have compiled this interface(Hopefully, successfully) by using the MEX command and while using the SDK 7.1 compiler. This has resulted in the MEX file called "uhdinterface.mexw64". When i run this file, with the USRP device connected, it presents the following error:
Error using uhdinterface Please specify a command
So i specify the following command with the following error:
dev = uhdinterface('init') Unexpected Standard exception from MEX file. What() is:LookupError: KeyError: No devices found for -----> Empty Device Address
I was suggested to run the examples from "C:\Program Files\UHD\lib\uhd\examples" and i chose(on being told) the "rx_samples_to_file.cpp" example. The following is the mex command and error for the same, with the device still connected:
mex -largeArrayDims -v -g rx_samples_to_file.cpp -I. "C:\Users\VINAYAK KARANDIKAR\Documents\MATLAB\MATLAB\Thesis\MATLAB_USRP_INTERFACE\UHD_sample_programs_from_GitHub\uhd"... -I."C:\Users\VINAYAK KARANDIKAR\Documents\MATLAB\MATLAB\Thesis\MATLAB_USRP_INTERFACE\UHD_sample_programs_from_GitHub\boost_1_55_0\boost"... -L."C:\Program Files\MATLAB\R2013b\extern\lib\win64\microsoft" ... uhd.lib
LINK : fatal error LNK1181: cannot open input file 'C:\Users\VINAYAK KARANDIKAR\Documents\MATLAB\MATLAB\Thesis\MATLAB_USRP_INTERFACE\UHD_sample_programs_from_GitHub\uhd.obj'
C:\PROGRA~1\MATLAB\R2013B\BIN\MEX.PL: Error: Link of 'rx_samples_to_file.mexw64' failed.
Unable to complete successfully.
Then finally i was suggested to go to the folder called "C:\Program Files\UHD\bin" and try the following commands, which gave the following error:
>> !uhd_find_devices Win32; Microsoft Visual C++ version 12.0; Boost_105600; UHD_003.010.002.000-release No UHD Devices Found >> !uhd_usrp_probe --args "addr=192.168.10.2" Win32; Microsoft Visual C++ version 12.0; Boost_105600; UHD_003.010.002.000-release Error: LookupError: KeyError: No devices found for -----> Device Address: addr: 192.168.10.2
It finally transpires that the commands and/or method to detect NI devices though MATLAB might be different from the ones suggested to me.
So i have following questions:
1. Is the USRP NI 2954R not really connected(electrically) to my laptop (only the blue PWR led is full on. The other led's are full off)
2. If it is connected, then are there other ways to detect it?
3. Am i missing something while connecting the USRP device and trying to detect it?
4. What about the error while trying to mex-compile-run the ""uhdinterface.mexw64" or the example "rx_samples_to_file.cpp" or the commands: "dev = uhdinterface('init')" or even the detect commands: "!uhd_find_devices" and "!uhd_usrp_probe --args "addr=192.168.10.2""...???
I would appreciate any help or response.
Thanks a lot,
Vinayak Anant Karandikar