Getting error in standalone application while compiling it?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
Fs=61.44e6;
Ts=1/Fs;
n=2^16;
A1=5; F1=1e6;
t=(0:Ts:(n-1)*Ts)';
% signal generation
f=5000;
tx_sig=A1*exp(2*pi*1i*(f)*t);
tx_sig=tx_sig/max(abs(tx_sig));
plot(app.UIAxes,abs(t),(tx_sig),'Color','g');
% spectrum view
[pxx,F1] = pwelch(tx_sig,[],[],[],Fs,'centered','psd');
pxx=10*log10(pxx);
plot(app.UIAxes2,pxx,'color','b');
fc=3.3e9;
tx = sdrtx('Pluto');
tx.CenterFrequency = fc;
tx.BasebandSampleRate = fs;
tx.Gain = -10;
transmitRepeat(tx,tx_sig);
fcapture=length(tx_sig);
rx = sdrrx('Pluto','RadioID','usb:0','CenterFrequency',fc,'BasebandSampleRate',Fs,'GainSource','AGC Slow Attack','OutputDataType','double','SamplesPerFrame',fcapture);
y = rx();
y=y/max(abs(y));
release(tx);
% spectrum view
y1=pwelch(y,[],[],[],Fs,'centered','psd');
y1 = 10*log10(y1);
plot(app.UIAxes3,F1,y1,'color','r');
error
Failed to build CTF file: 'F:\codes\signal_carrier\for_testing\signal_carrier.ctf'. Details: The file
'C:\ProgramData\MATLAB\SupportPackages\R2020b\toolbox\shared\libiio\base\+matlabshared\+libiio\base.m'
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.
0 Kommentare
Antworten (1)
Rashed Mohammed
am 18 Mär. 2021
Hi Hardik,
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu DTMF finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!