Re: [Discuss-gnuradio] Example: rx_samples_to_file.py
Yes I am using the command: uhd::usrp::multi_usrp::make(args) passing the IP addresses of the three N200 boards. Moreover I check the boards synch using usrp->get_time_synchronized () which returns true but still the sinusoids are not temporally alligned. A colleague raised an arguement the even though the boards' clcok are synch the daughter boards may introduce phase shift. Is this arguement valid? I am using DB DBSRX2. Many thanks, Zo PS. Thanks for recommending GRC but I am more confortable to work under windows with MSVC. Date: Mon, 6 May 2013 04:59:09 -0700 From: ml-node+s4n41189...@n7.nabble.com To: xtmpcvs...@hotmail.com Subject: Re: Example: rx_samples_to_file.py Dear Marcus, I a working under windows now. I have modified the the example "rx_samples_to_file.cpp" by including the following lines usrp->set_time_source("external"); usrp->set_time_unknown_pps(uhd::time_spec_t(0.0)); boost::this_thread::sleep(boost::posix_time::seconds(1)); for (size_t chan = 0; chan < usrp->get_rx_num_channels(); chan++) stream_args.channels.push_back(chan); uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args); std::vector > > buffs( usrp->get_rx_num_channels(), std::vector >(samps_per_buff) ); std::vector *> buff_ptrs; for (size_t i = 0; i < buffs.size(); i++) buff_ptrs.push_back(&buffs[i].front()); while(not stop_signal_called and (num_requested_samples != num_total_samps or num_requested_samples == 0)){ size_t num_rx_samps = rx_stream->recv(buff_ptrs, samps_per_buff, md, 2.0); outfile1.write((const char*)buff_ptrs[0], num_rx_samps*sizeof(float)); outfile2.write((const char*)buff_ptrs[1], num_rx_samps*sizeof(float)); outfile3.write((const char*)buff_ptrs[2], num_rx_samps*sizeof(float)); } outfile1.close(); outfile2.close(); outfile3.close(); I am feeding a split sinusoid to these boards so I expected to see similar values in these three files. However, i only see a sinusoid in the first file and some random noise in the 2nd and 3rd files. I am not sure how the metadata saves from the three boards. Would you check the lines above and reply if you have any insights, please? I wasn't able to verify sync. Best regards, Zo Where are you actually doing the setup on the 3 N210s? Via a mult-usrp object? Seriously, you can do this in GRC in about five minutes. -- Marcus Leech Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org ___ Discuss-gnuradio mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio If you reply to this email, your message will be added to the discussion below: http://gnuradio.4.n7.nabble.com/Example-rx-samples-to-file-py-tp40777p41189.html To start a new topic under GnuRadio, email ml-node+s4n2...@n7.nabble.com To unsubscribe from GnuRadio, click here. NAML ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Example: rx_samples_to_file.py
Got it! The problem I sent before is now solved by exeplicity defining gain, frequncy and rate for the three cheannles as follows: usrp->set_rx_gain(gain,std::string(),0); usrp->set_rx_gain(gain,std::string(),1); usrp->set_rx_gain(gain,std::string(),2); and similar lines for freq and rate. However, the obtained data is not time-alligned although I sync with the unknown pps as in my prevoius code. From: xtmpcvs...@hotmail.com To: discuss-gnuradio@gnu.org Subject: RE: Example: rx_samples_to_file.py Date: Mon, 6 May 2013 09:15:41 + Dear Marcus, I a working under windows now. I have modified the the example "rx_samples_to_file.cpp" by including the following lines usrp->set_time_source("external"); usrp->set_time_unknown_pps(uhd::time_spec_t(0.0)); boost::this_thread::sleep(boost::posix_time::seconds(1)); for (size_t chan = 0; chan < usrp->get_rx_num_channels(); chan++) stream_args.channels.push_back(chan); uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args); std::vector > > buffs( usrp->get_rx_num_channels(), std::vector >(samps_per_buff) ); std::vector *> buff_ptrs; for (size_t i = 0; i < buffs.size(); i++) buff_ptrs.push_back(&buffs[i].front()); while(not stop_signal_called and (num_requested_samples != num_total_samps or num_requested_samples == 0)){ size_t num_rx_samps = rx_stream->recv(buff_ptrs, samps_per_buff, md, 2.0); outfile1.write((const char*)buff_ptrs[0], num_rx_samps*sizeof(float)); outfile2.write((const char*)buff_ptrs[1], num_rx_samps*sizeof(float)); outfile3.write((const char*)buff_ptrs[2], num_rx_samps*sizeof(float)); } outfile1.close(); outfile2.close(); outfile3.close(); I am feeding a split sinusoid to these boards so I expected to see similar values in these three files. However, i only see a sinusoid in the first file and some random noise in the 2nd and 3rd files. I am not sure how the metadata saves from the three boards. Would you check the lines above and reply if you have any insights, please? I wasn't able to verify sync. Best regards, Zo Date: Mon, 15 Apr 2013 15:37:21 -0700 From: ml-node+s4n40806...@n7.nabble.com To: xtmpcvs...@hotmail.com Subject: Re: Example: rx_samples_to_file.py Dear All, My aim at the timebeing is to synchronously record some data from 3 USRP-N200 for offline processing I wonder if the provided example "rx_samples_to_file.py" works for multiple USRPs with external Ref/PPS. Does anybody have an expereince with this example and wants to share it? I cann't find any mentioning for the PPS signal in the source file. Best regards, Zo Not all examples exercise every possible API interface. You can reproduce most of rx_samples_to_file in a .grc script within a few minutes that enables using of PPS inputs, etc. -- Marcus Leech Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org ___ Discuss-gnuradio mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio If you reply to this email, your message will be added to the discussion below: http://gnuradio.4.n7.nabble.com/Example-rx-samples-to-file-py-tp40777p40806.html To start a new topic under GnuRadio, email ml-node+s4n2...@n7.nabble.com To unsubscribe from GnuRadio, click here. NAML ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Example: rx_samples_to_file.py
Dear Marcus, I a working under windows now. I have modified the the example "rx_samples_to_file.cpp" by including the following lines usrp->set_time_source("external"); usrp->set_time_unknown_pps(uhd::time_spec_t(0.0)); boost::this_thread::sleep(boost::posix_time::seconds(1)); for (size_t chan = 0; chan < usrp->get_rx_num_channels(); chan++) stream_args.channels.push_back(chan); uhd::rx_streamer::sptr rx_stream = usrp->get_rx_stream(stream_args); std::vector > > buffs( usrp->get_rx_num_channels(), std::vector >(samps_per_buff) ); std::vector *> buff_ptrs; for (size_t i = 0; i < buffs.size(); i++) buff_ptrs.push_back(&buffs[i].front()); while(not stop_signal_called and (num_requested_samples != num_total_samps or num_requested_samples == 0)){ size_t num_rx_samps = rx_stream->recv(buff_ptrs, samps_per_buff, md, 2.0); outfile1.write((const char*)buff_ptrs[0], num_rx_samps*sizeof(float)); outfile2.write((const char*)buff_ptrs[1], num_rx_samps*sizeof(float)); outfile3.write((const char*)buff_ptrs[2], num_rx_samps*sizeof(float)); } outfile1.close(); outfile2.close(); outfile3.close(); I am feeding a split sinusoid to these boards so I expected to see similar values in these three files. However, i only see a sinusoid in the first file and some random noise in the 2nd and 3rd files. I am not sure how the metadata saves from the three boards. Would you check the lines above and reply if you have any insights, please? I wasn't able to verify sync. Best regards, Zo Date: Mon, 15 Apr 2013 15:37:21 -0700 From: ml-node+s4n40806...@n7.nabble.com To: xtmpcvs...@hotmail.com Subject: Re: Example: rx_samples_to_file.py Dear All, My aim at the timebeing is to synchronously record some data from 3 USRP-N200 for offline processing I wonder if the provided example "rx_samples_to_file.py" works for multiple USRPs with external Ref/PPS. Does anybody have an expereince with this example and wants to share it? I cann't find any mentioning for the PPS signal in the source file. Best regards, Zo Not all examples exercise every possible API interface. You can reproduce most of rx_samples_to_file in a .grc script within a few minutes that enables using of PPS inputs, etc. -- Marcus Leech Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org ___ Discuss-gnuradio mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio If you reply to this email, your message will be added to the discussion below: http://gnuradio.4.n7.nabble.com/Example-rx-samples-to-file-py-tp40777p40806.html To start a new topic under GnuRadio, email ml-node+s4n2...@n7.nabble.com To unsubscribe from GnuRadio, click here. NAML ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Error in Building UHD on Windows
Hi Marcus, Please find attached the txt file with the warnings. Cheers, Zo Date: Thu, 2 May 2013 11:18:59 -0700 From: ml-node+s4n41109...@n7.nabble.com To: xtmpcvs...@hotmail.com Subject: Re: Error in Building UHD on Windows If everything works fine: Ignore them. The first one seems interesting, but does not necessarily imply an error. (sometimes you really just want to check if a double is still in initialized state, e.g. filled with zeros and therefore use it as a boolean; some compilers interpret that as cast to int) However, could you point out the file that warning occurred, just to help check things for consistency? Thanks, Marcus Müller Am 02.05.2013 10:42, schrieb Zooz Engineer: > However, I have some 27 warnings in MSVC and I don't know how important > they are: > > C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of data > C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) > C4305: '=' : truncation from 'double' to 'float' > > Can they be fixed or I can just ignore them? > > Best, > Zo ___ Discuss-gnuradio mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio If you reply to this email, your message will be added to the discussion below: http://gnuradio.4.n7.nabble.com/Error-in-Building-UHD-on-Windows-tp41004p41109.html To start a new topic under GnuRadio, email ml-node+s4n2...@n7.nabble.com To unsubscribe from GnuRadio, click here. NAML Warning2warning C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of dataC:\UHD\host\lib\usrp\dboard\db_tvrx2.cpp13121 uhd Warning3warning C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of dataC:\UHD\host\lib\usrp\dboard\db_tvrx2.cpp13141 uhd Warning4warning C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of dataC:\UHD\host\lib\usrp\dboard\db_tvrx2.cpp13271 uhd Warning5warning C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of dataC:\UHD\host\lib\usrp\dboard\db_tvrx2.cpp13291 uhd Warning6warning C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of dataC:\UHD\host\lib\usrp\dboard\db_tvrx2.cpp13431 uhd Warning9warning C4244: '=' : conversion from 'std::streamoff' to 'int', possible loss of dataC:\UHD\host\utils\usrp_n2xx_simple_net_burner.cpp 1171usrp_n2xx_simple_net_burner Warning10warning C4244: '=' : conversion from 'std::streamoff' to 'int', possible loss of data C:\UHD\host\utils\usrp_n2xx_simple_net_burner.cpp1511 usrp_n2xx_simple_net_burner Warning11warning C4244: 'argument' : conversion from 'double' to 'const std::complex::_Ty', possible loss of data C:\UHD\host\examples\txrx_loopback_to_file.cpp761 txrx_loopback_to_file Warning12warning C4244: 'argument' : conversion from 'double' to 'const std::complex::_Ty', possible loss of data C:\UHD\host\examples\txrx_loopback_to_file.cpp761 txrx_loopback_to_file Warning19warning C4244: 'argument' : conversion from 'double' to 'const std::complex::_Ty', possible loss of data C:\UHD\host\examples\tx_waveforms.cpp751tx_waveforms Warning20warning C4244: 'argument' : conversion from 'double' to 'const std::complex::_Ty', possible loss of data C:\UHD\host\examples\tx_waveforms.cpp751tx_waveforms Warning22warning C4244: 'argument' : conversion from 'double' to 'int64_t', possible loss of data C:\UHD\host\examples\tx_samples_from_file.cpp1891 tx_samples_from_file Warning1warning C4244: 'argument' : conversion from 'double' to 'uint32_t', possible loss of dataC:\UHD\host\lib\usrp\dboard\db_tvrx2.cpp 10951uhd Warning26warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data C:\UHD\host\examples\transport_hammer.cpp731transport_hammer Warning27warning C4244: 'argument' : convers
Re: [Discuss-gnuradio] Error in Building UHD on Windows
However, I have some 27 warnings in MSVC and I don't know how important they are: C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of data C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) C4305: '=' : truncation from 'double' to 'float' Can they be fixed or I can just ignore them? Best, Zo From: xtmpcvs...@hotmail.com To: discuss-gnuradio@gnu.org Subject: RE: Error in Building UHD on Windows Date: Thu, 2 May 2013 07:34:12 + Dear Josh, Thanks for the hint. The issue occurred after Visual Studio 2012 installation and is resolved by replacing the cvtres.exe from VS2010 with the one from VS2012. Best, Zo Date: Thu, 25 Apr 2013 14:54:37 -0700 From: ml-node+s4n41007...@n7.nabble.com To: xtmpcvs...@hotmail.com Subject: Re: Error in Building UHD on Windows On 04/25/2013 03:27 PM, Zooz Engineer wrote: > > > > Dear All, > > I am trying to install UHD on windows from source code. I have > installed the prerequisites: > > cmake-2.8.10.2-win32-x86 boost_1_51_setup32 python-2.6.6 > Cheetah-2.2.2.win32-py2.6 > msysGit-fullinstall-1.8.1.2-preview20130201 Visual studio 2010 > express > > I follwowed the steps detailed here: > http://files.ettus.com/uhd_docs/manual/html/build.html#build-instructions-windows. > After applying the fifth step in CMake I get the following error > message. > > Do you have any idea why this is happening? > If you google for "failure during conversion to COFF: file invalid", have tried any of the things suggested in the stack overflow forums? Many of the posts seem to indicate that its a visual studio 2012 stomping on files in 2010 or some .net installer doing something similar. -josh > Thank you, > > Zo > > The C compiler identification is MSVC 16.0.30319.1 The CXX compiler > identification is MSVC 16.0.30319.1 Check for working C compiler > using: Visual Studio 10 Check for working C compiler using: Visual > Studio 10 -- broken CMake Error at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): > The C compiler "C:/Program Files (x86)/Microsoft Visual Studio > 10.0/VC/bin/cl.exe" is not able to compile a simple test program. > > It fails with the following output: > > Change Dir: C:/UHD/host/build/CMakeFiles/CMakeTmp > > > > Run Build > Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe > cmTryCompileExec215809703.vcxproj /p:Configuration=Debug > /p:VisualStudioVersion=10.0 > > Microsoft (R) Build Engine version 4.0.30319.17929 > > [Microsoft .NET Framework, version 4.0.30319.18034] > > Copyright (C) Microsoft Corporation. All rights reserved. > > > > Build started 25/04/2013 21:57:38. > > Project > "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj" > > on node 1 (default targets). > > PrepareForBuild: > > Creating directory "cmTryCompileExec215809703.dir\Debug\". Creating > directory "C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\". > > InitializeBuildStatus: > > Creating > "cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.unsuccessfulbuild" > because "AlwaysCreate" was specified. > > ClCompile: > > C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c > /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D > "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise > /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" > /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" > /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000 > Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 > for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. > > cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D > "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise > /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" > /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" > /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000 > > testCCompiler.c > > ManifestResourceCompile: > > C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe > /nologo > /fo"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res" > cmTryCompileExec215809703.dir\Debug\cmTryC
Re: [Discuss-gnuradio] Error in Building UHD on Windows
Dear Josh, Thanks for the hint. The issue occurred after Visual Studio 2012 installation and is resolved by replacing the cvtres.exe from VS2010 with the one from VS2012. Best, Zo Date: Thu, 25 Apr 2013 14:54:37 -0700 From: ml-node+s4n41007...@n7.nabble.com To: xtmpcvs...@hotmail.com Subject: Re: Error in Building UHD on Windows On 04/25/2013 03:27 PM, Zooz Engineer wrote: > > > > Dear All, > > I am trying to install UHD on windows from source code. I have > installed the prerequisites: > > cmake-2.8.10.2-win32-x86 boost_1_51_setup32 python-2.6.6 > Cheetah-2.2.2.win32-py2.6 > msysGit-fullinstall-1.8.1.2-preview20130201 Visual studio 2010 > express > > I follwowed the steps detailed here: > http://files.ettus.com/uhd_docs/manual/html/build.html#build-instructions-windows. > After applying the fifth step in CMake I get the following error > message. > > Do you have any idea why this is happening? > If you google for "failure during conversion to COFF: file invalid", have tried any of the things suggested in the stack overflow forums? Many of the posts seem to indicate that its a visual studio 2012 stomping on files in 2010 or some .net installer doing something similar. -josh > Thank you, > > Zo > > The C compiler identification is MSVC 16.0.30319.1 The CXX compiler > identification is MSVC 16.0.30319.1 Check for working C compiler > using: Visual Studio 10 Check for working C compiler using: Visual > Studio 10 -- broken CMake Error at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): > The C compiler "C:/Program Files (x86)/Microsoft Visual Studio > 10.0/VC/bin/cl.exe" is not able to compile a simple test program. > > It fails with the following output: > > Change Dir: C:/UHD/host/build/CMakeFiles/CMakeTmp > > > > Run Build > Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe > cmTryCompileExec215809703.vcxproj /p:Configuration=Debug > /p:VisualStudioVersion=10.0 > > Microsoft (R) Build Engine version 4.0.30319.17929 > > [Microsoft .NET Framework, version 4.0.30319.18034] > > Copyright (C) Microsoft Corporation. All rights reserved. > > > > Build started 25/04/2013 21:57:38. > > Project > "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj" > > on node 1 (default targets). > > PrepareForBuild: > > Creating directory "cmTryCompileExec215809703.dir\Debug\". Creating > directory "C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\". > > InitializeBuildStatus: > > Creating > "cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.unsuccessfulbuild" > because "AlwaysCreate" was specified. > > ClCompile: > > C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c > /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D > "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise > /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" > /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" > /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000 > Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 > for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. > > cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D > "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise > /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" > /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" > /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000 > > testCCompiler.c > > ManifestResourceCompile: > > C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe > /nologo > /fo"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res" > cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703_manifest.rc > > > Link: > > C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe > /ERRORREPORT:QUEUE > /OUT:"C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec215809703.exe" > /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib > shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib > /MANIFEST > /ManifestFile:"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.intermediate.manifest" > /MANIFESTUAC:"level='
Re: [Discuss-gnuradio] Error in Building UHD on Windows
I think I am missing something in the build variables. What are the variables that need to be set? Cheers, Zo From: xtmpcvs...@hotmail.com To: discuss-gnuradio@gnu.org Subject: Error in Building UHD on Windows Date: Thu, 25 Apr 2013 20:27:38 + Dear All, I am trying to install UHD on windows from source code. I have installed the prerequisites: cmake-2.8.10.2-win32-x86 boost_1_51_setup32 python-2.6.6 Cheetah-2.2.2.win32-py2.6 msysGit-fullinstall-1.8.1.2-preview20130201 Visual studio 2010 express I follwowed the steps detailed here: http://files.ettus.com/uhd_docs/manual/html/build.html#build-instructions-windows. After applying the fifth step in CMake I get the following error message. Do you have any idea why this is happening? Thank you, Zo The C compiler identification is MSVC 16.0.30319.1 The CXX compiler identification is MSVC 16.0.30319.1 Check for working C compiler using: Visual Studio 10 Check for working C compiler using: Visual Studio 10 -- broken CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/UHD/host/build/CMakeFiles/CMakeTmp Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe cmTryCompileExec215809703.vcxproj /p:Configuration=Debug /p:VisualStudioVersion=10.0 Microsoft (R) Build Engine version 4.0.30319.17929 [Microsoft .NET Framework, version 4.0.30319.18034] Copyright (C) Microsoft Corporation. All rights reserved. Build started 25/04/2013 21:57:38. Project "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "cmTryCompileExec215809703.dir\Debug\". Creating directory "C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\". InitializeBuildStatus: Creating "cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000 Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000 testCCompiler.c ManifestResourceCompile: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res" cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703_manifest.rc Link: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec215809703.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /SUBSYSTEM:CONSOLE /STACK:"1000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.lib" /MACHINE:X86 cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res cmTryCompileExec215809703.dir\Debug\testCCompiler.obj /machine:X86 /debug LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj] Done Building Project "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj" (default targets) -- FAILED. Build FAILED. "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj" (default target) (1) -> (Link target) -> LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.64
[Discuss-gnuradio] Error in Building UHD on Windows
Dear All, I am trying to install UHD on windows from source code. I have installed the prerequisites: cmake-2.8.10.2-win32-x86 boost_1_51_setup32 python-2.6.6 Cheetah-2.2.2.win32-py2.6 msysGit-fullinstall-1.8.1.2-preview20130201 Visual studio 2010 express I follwowed the steps detailed here: http://files.ettus.com/uhd_docs/manual/html/build.html#build-instructions-windows. After applying the fifth step in CMake I get the following error message. Do you have any idea why this is happening? Thank you, Zo The C compiler identification is MSVC 16.0.30319.1 The CXX compiler identification is MSVC 16.0.30319.1 Check for working C compiler using: Visual Studio 10 Check for working C compiler using: Visual Studio 10 -- broken CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/UHD/host/build/CMakeFiles/CMakeTmp Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe cmTryCompileExec215809703.vcxproj /p:Configuration=Debug /p:VisualStudioVersion=10.0 Microsoft (R) Build Engine version 4.0.30319.17929 [Microsoft .NET Framework, version 4.0.30319.18034] Copyright (C) Microsoft Corporation. All rights reserved. Build started 25/04/2013 21:57:38. Project "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "cmTryCompileExec215809703.dir\Debug\". Creating directory "C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\". InitializeBuildStatus: Creating "cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000 Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000 testCCompiler.c ManifestResourceCompile: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res" cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703_manifest.rc Link: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec215809703.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /SUBSYSTEM:CONSOLE /STACK:"1000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.lib" /MACHINE:X86 cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res cmTryCompileExec215809703.dir\Debug\testCCompiler.obj /machine:X86 /debug LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj] Done Building Project "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj" (default targets) -- FAILED. Build FAILED. "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj" (default target) (1) -> (Link target) -> LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.64 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 2.8)
[Discuss-gnuradio] Power_cycling USRP N200
Dear All, I am working on USRP N200 and sometimes I access them through a remote desktop. However, when a problem happens and I need to power cycle the boards, I have to do that physically. Is there any method that I can execute a program or a command to power cycle the boards? Thanks, Zohair ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Example: rx_samples_to_file.py
Dear All, My aim at the timebeing is to synchronously record some data from 3 USRP-N200 for offline processing I wonder if the provided example "rx_samples_to_file.py" works for multiple USRPs with external Ref/PPS. Does anybody have an expereince with this example and wants to share it? I cann't find any mentioning for the PPS signal in the source file. Best regards, Zo ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Synchronizing 3 USRP-N200
Dear Ian and All, Although I tried what you have said, the phase is random and different every time I run the flow graph. I deeply suspect that synchronization is actually done on the boards. I use a GPS receiver for synchronization and yesterday I noticed that the shape of the PPS signal is as the one in the attached image. I am afraid that the ripple and the overshoot can imitate the behavior of the PPS in much smaller period than one sec. Do you believe so? Can I use a usual function generator for the PPS instead of the GPS receiver? In other words, should the ref/pps signal be sync? Best regards, Zo Subject: Re: [Discuss-gnuradio] Synchronizing 3 USRP-N200 From: i...@ionconcepts.com Date: Wed, 3 Apr 2013 11:59:20 -0700 CC: discuss-gnuradio@gnu.org To: xtmpcvs...@hotmail.com Zo,Have you tried swapping cables between USRP's? both REF/PPS and signal (one at a time) to see if the apparent phase differences follow particular cables/signal paths? On Apr 3, 2013, at 2:32 AM, Zooz Engineer wrote:Hi Marcus, Thanks for replying. I did the following test after your comments: 1- to rule out the scope sink problem, I used a file sink and plotted the output using octave: Same results observed. 2- I took the outputs of the splitters to the oscilloscope and there are aligned. Are there other ways to test Ref/PPS other than the one I mentioned in my original mesage? Best/ Zo___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio <>___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Synchronizing 3 USRP-N200
Hi Marcus, Thanks for replying. I did the following test after your comments: 1- to rule out the scope sink problem, I used a file sink and plotted the output using octave: Same results observed. 2- I took the outputs of the splitters to the oscilloscope and there are aligned. Are there other ways to test Ref/PPS other than the one I mentioned in my original mesage? Best/ Zo ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Using USRP N200 at symbol rate 27.5 MSps
Dear All, I have purchased 3 USRPs (N200) and set them up. I am intending to implement a satellite receiver by connecting a board to the output of an LNB (satellite dish). I am using the daughterboard DBSRX2 and I need to used a symbol rate of 27.5 MSps ( compliant to the standard). For testing purpose, I connected a USRP source to a graphical FFT sink and ran GNURadio. Each time I run GNURadio, I receive a warning: The hardware does not support the requested RX sample rate: Target sample rate: 27.50 MSps Actual sample rate: 25.00 MSps I understand now that to achieve what I want, samples must be taken in 8 bit format in stead of 16. However, I have no clue of how to do this in GNURadio. I changed the wire format to 8 bit but the warning keeps showing up. Any ideas or suggestions, please? Thanks a lot. Zooz ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio