Getting error in standalone application while compiling it?
2 views (last 30 days)
Show older comments
Hardik Upreti on 16 Mar 2021
Answered: Rashed Mohammed on 18 Mar 2021
i am getting this particular error while compiling the application. i didn't use base.m function in my program.
Program in which error occurring.
% signal generation
% spectrum view
[pxx,F1] = pwelch(tx_sig,,,,Fs,'centered','psd');
tx = sdrtx('Pluto');
tx.CenterFrequency = fc;
tx.BasebandSampleRate = fs;
tx.Gain = -10;
rx = sdrrx('Pluto','RadioID','usb:0','CenterFrequency',fc,'BasebandSampleRate',Fs,'GainSource','AGC Slow Attack','OutputDataType','double','SamplesPerFrame',fcapture);
y = rx();
% spectrum view
y1 = 10*log10(y1);
Failed to build CTF file: 'F:\codes\signal_carrier\for_testing\signal_carrier.ctf'. Details: The file
is empty (zero bytes long).
This file cannot be added to the CTF archive because it will cause an error
when the application or library is run. Add valid content to this file if
your application or library requires this file.
Note: i am doing this particular program in matlab 2020b.
Rashed Mohammed on 18 Mar 2021
I was successfully able to compile an application with your code and hence not able to reproduce the issue you are facing. I would suggest you to remove the existing hardware support package and reinstall it. If you are still facing an issue, please provide a screenshot of the files present in the folder "C:\ProgramData\MATLAB\SupportPackages\R2020b\toolbox\shared\libiio\base\+matlabshared\+libiio".
Hope this helps
Find more on Signal Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!