Getting error in standalone application while compiling it?

2 ビュー (過去 30 日間)
Hardik Upreti
Hardik Upreti 2021 年 3 月 16 日
回答済み: Rashed Mohammed 2021 年 3 月 18 日
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.

回答 (1 件)

Rashed Mohammed
Rashed Mohammed 2021 年 3 月 18 日
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

カテゴリ

Help Center および File ExchangeAnalog Devices ADALM1000 Support from Data Acquisition Toolbox についてさらに検索

Translated by