Tag Archives: matlab
2D matrix resize or interpolation
Hello,
I’m new to matlab and I’m not sure what would be the best way to do the following.
I have an image/data matrix, I, of size (rows,cols) = (y,x) = [384,512].
The spatial resolution in the x direction is 0.078021 cm (total span is ~40cm)
The spatial resolution in the y direction is 0.078021 (total span is ~30cm)
Q1.
If I would like to have a finer sampling of the data by doubling the samples (eg Inew = [768, 1024], which function would you suggest?
Q2.
If I had another separate image but with offset x,y values, how would I interpolate this data onto the same grid as the other matrix?
Thank you for your help,
RRHello,
I’m new to matlab and I’m not sure what would be the best way to do the following.
I have an image/data matrix, I, of size (rows,cols) = (y,x) = [384,512].
The spatial resolution in the x direction is 0.078021 cm (total span is ~40cm)
The spatial resolution in the y direction is 0.078021 (total span is ~30cm)
Q1.
If I would like to have a finer sampling of the data by doubling the samples (eg Inew = [768, 1024], which function would you suggest?
Q2.
If I had another separate image but with offset x,y values, how would I interpolate this data onto the same grid as the other matrix?
Thank you for your help,
RR Hello,
I’m new to matlab and I’m not sure what would be the best way to do the following.
I have an image/data matrix, I, of size (rows,cols) = (y,x) = [384,512].
The spatial resolution in the x direction is 0.078021 cm (total span is ~40cm)
The spatial resolution in the y direction is 0.078021 (total span is ~30cm)
Q1.
If I would like to have a finer sampling of the data by doubling the samples (eg Inew = [768, 1024], which function would you suggest?
Q2.
If I had another separate image but with offset x,y values, how would I interpolate this data onto the same grid as the other matrix?
Thank you for your help,
RR matrix interpolation MATLAB Answers — New Questions
Formatting Numbers in App Designer’s UITable
Is there a way to format numbers in a UITable in App Designer? For example, can I have the second row’s format be ‘%.1f’ and cell (4,2)’s format be ‘%.4e’? I don’t want to use strings because I need to keep the table’s numerical data.Is there a way to format numbers in a UITable in App Designer? For example, can I have the second row’s format be ‘%.1f’ and cell (4,2)’s format be ‘%.4e’? I don’t want to use strings because I need to keep the table’s numerical data. Is there a way to format numbers in a UITable in App Designer? For example, can I have the second row’s format be ‘%.1f’ and cell (4,2)’s format be ‘%.4e’? I don’t want to use strings because I need to keep the table’s numerical data. format, uitable, appdesigner MATLAB Answers — New Questions
Integration method two function depend on each other
If c(x) is a function of u(x) and u(x) is a function of c(x) so how we integrate u(x).If c(x) is a function of u(x) and u(x) is a function of c(x) so how we integrate u(x). If c(x) is a function of u(x) and u(x) is a function of c(x) so how we integrate u(x). matlab, matlab coder, for loop, function, iteration, iteration method, matlab function MATLAB Answers — New Questions
Thyristor Power converter Control
Hello,
I am trying to understand the Thyristor power converter that MATLAB has assembled in the demo: power_RegulatedThyristorRectifier.
In implementing the PI controller for the converter, why is the angle alpha taken as 90 – Ce, where "C" is the PI controller and "e" is the error. Where does this calculation come from? I have read the documentation on this demo, but no information is provided for this calculation.
Thanks!Hello,
I am trying to understand the Thyristor power converter that MATLAB has assembled in the demo: power_RegulatedThyristorRectifier.
In implementing the PI controller for the converter, why is the angle alpha taken as 90 – Ce, where "C" is the PI controller and "e" is the error. Where does this calculation come from? I have read the documentation on this demo, but no information is provided for this calculation.
Thanks! Hello,
I am trying to understand the Thyristor power converter that MATLAB has assembled in the demo: power_RegulatedThyristorRectifier.
In implementing the PI controller for the converter, why is the angle alpha taken as 90 – Ce, where "C" is the PI controller and "e" is the error. Where does this calculation come from? I have read the documentation on this demo, but no information is provided for this calculation.
Thanks! power converter, thyristor converter, control systems, power_electronics_control, power_conversion_control MATLAB Answers — New Questions
esercizio di calcolo numerico con MATLAB
Buongiorno, avrei bisogno di una mano sul seguente problema. Data una successione di funzioni di una variabile Ln(x)
scrivere la funzione in MATLAB che riceva in input due interi sterattamente positivi M>=3 e t e un numero reale e positivo z.Se M non viene dato in input, ponga M=30; se t non viene dato in input , ponga t=3. ii) costruisca e restituisca il vettore L di lunghezza non superiore ad M le cui componenti sono gli elementi della successione Ln(z) che approssimano l’elemento precedente con almeno t decimali esatti.
grazieBuongiorno, avrei bisogno di una mano sul seguente problema. Data una successione di funzioni di una variabile Ln(x)
scrivere la funzione in MATLAB che riceva in input due interi sterattamente positivi M>=3 e t e un numero reale e positivo z.Se M non viene dato in input, ponga M=30; se t non viene dato in input , ponga t=3. ii) costruisca e restituisca il vettore L di lunghezza non superiore ad M le cui componenti sono gli elementi della successione Ln(z) che approssimano l’elemento precedente con almeno t decimali esatti.
grazie Buongiorno, avrei bisogno di una mano sul seguente problema. Data una successione di funzioni di una variabile Ln(x)
scrivere la funzione in MATLAB che riceva in input due interi sterattamente positivi M>=3 e t e un numero reale e positivo z.Se M non viene dato in input, ponga M=30; se t non viene dato in input , ponga t=3. ii) costruisca e restituisca il vettore L di lunghezza non superiore ad M le cui componenti sono gli elementi della successione Ln(z) che approssimano l’elemento precedente con almeno t decimali esatti.
grazie sequence, vector, italian MATLAB Answers — New Questions
Save the Simulink model regularly each 5 minutes
Hi there,
Is it feasible to set up a Simulink model to automatically save itself every 5 minutes or so?Hi there,
Is it feasible to set up a Simulink model to automatically save itself every 5 minutes or so? Hi there,
Is it feasible to set up a Simulink model to automatically save itself every 5 minutes or so? simulink, slx, save, backup, model MATLAB Answers — New Questions
Unable to perform the harness operation for the externally saved test harness since the directory is not writable
When trying to externally creating a test haness, simulink is returning this error:
Error:Unable to perform the harness operation for the externally saved test harness ‘untitled_Harness1’ since the directory is not writable.
[1] This issue happens with any matlab version.
[2] Running Matlab as admin does not solve the issue.
[3] Even after the file beeen synchronized with OneDrive, the issue persists.
[4] I have windows R/W permissions to the folderWhen trying to externally creating a test haness, simulink is returning this error:
Error:Unable to perform the harness operation for the externally saved test harness ‘untitled_Harness1’ since the directory is not writable.
[1] This issue happens with any matlab version.
[2] Running Matlab as admin does not solve the issue.
[3] Even after the file beeen synchronized with OneDrive, the issue persists.
[4] I have windows R/W permissions to the folder When trying to externally creating a test haness, simulink is returning this error:
Error:Unable to perform the harness operation for the externally saved test harness ‘untitled_Harness1’ since the directory is not writable.
[1] This issue happens with any matlab version.
[2] Running Matlab as admin does not solve the issue.
[3] Even after the file beeen synchronized with OneDrive, the issue persists.
[4] I have windows R/W permissions to the folder matlab, test harness, access denied MATLAB Answers — New Questions
Use of matlab dlls as third party dependencies
Hi guys,
I am trying to build a Qt application which will generates .mat files. Last year I was using a 32 bits Qt framework and it was working fine. I had two matlab dlls (coming from matlab 2018b if I do remember well) as third party dependencies: libmat.dll and libmx.dll, I could compile and execute my application without any issue.
But the application will frequently use more than 2 Gb of RAM and than is why I am migrating to a 64 bits Qt framework. However Qt is struggling to load matlab dlls. Either a dll is missing or I get the error code 0xc000007b which means that I am using 32-bits and 64-bits dlls.
I already post a question about Qt on their forum but we where not able to find a solution. That is why I am posting the question here.
I have matlab 2022b installed on my machine (Windows x64 bits)
I can see in <matlab_root>/bin/win64 folder the dlls I am looking for: libmat.dll and libmx.dll and I am using mat.h, matrix.h and tmwtypes.h from <matlab_root>/extern/include folder in the source code to interact with the dlls. At that point, I am able to compile (So the matlab libraries are found by Qt) but if I try to start the application, Qt is complaining because some dlls are missing: libmwfl.dll, libmwflstorageutility.dll etc..
Apparently, Qt is also looking in the Windows PATH variable to search for dlls, I had a look in my system path and I can see two paths:
I know this is a matlab forum, not a Qt one, but do you guys have an idea of what I should do to use matlab as a third party dependency ?
Have a nice day,
Pierre-EmmanuelHi guys,
I am trying to build a Qt application which will generates .mat files. Last year I was using a 32 bits Qt framework and it was working fine. I had two matlab dlls (coming from matlab 2018b if I do remember well) as third party dependencies: libmat.dll and libmx.dll, I could compile and execute my application without any issue.
But the application will frequently use more than 2 Gb of RAM and than is why I am migrating to a 64 bits Qt framework. However Qt is struggling to load matlab dlls. Either a dll is missing or I get the error code 0xc000007b which means that I am using 32-bits and 64-bits dlls.
I already post a question about Qt on their forum but we where not able to find a solution. That is why I am posting the question here.
I have matlab 2022b installed on my machine (Windows x64 bits)
I can see in <matlab_root>/bin/win64 folder the dlls I am looking for: libmat.dll and libmx.dll and I am using mat.h, matrix.h and tmwtypes.h from <matlab_root>/extern/include folder in the source code to interact with the dlls. At that point, I am able to compile (So the matlab libraries are found by Qt) but if I try to start the application, Qt is complaining because some dlls are missing: libmwfl.dll, libmwflstorageutility.dll etc..
Apparently, Qt is also looking in the Windows PATH variable to search for dlls, I had a look in my system path and I can see two paths:
I know this is a matlab forum, not a Qt one, but do you guys have an idea of what I should do to use matlab as a third party dependency ?
Have a nice day,
Pierre-Emmanuel Hi guys,
I am trying to build a Qt application which will generates .mat files. Last year I was using a 32 bits Qt framework and it was working fine. I had two matlab dlls (coming from matlab 2018b if I do remember well) as third party dependencies: libmat.dll and libmx.dll, I could compile and execute my application without any issue.
But the application will frequently use more than 2 Gb of RAM and than is why I am migrating to a 64 bits Qt framework. However Qt is struggling to load matlab dlls. Either a dll is missing or I get the error code 0xc000007b which means that I am using 32-bits and 64-bits dlls.
I already post a question about Qt on their forum but we where not able to find a solution. That is why I am posting the question here.
I have matlab 2022b installed on my machine (Windows x64 bits)
I can see in <matlab_root>/bin/win64 folder the dlls I am looking for: libmat.dll and libmx.dll and I am using mat.h, matrix.h and tmwtypes.h from <matlab_root>/extern/include folder in the source code to interact with the dlls. At that point, I am able to compile (So the matlab libraries are found by Qt) but if I try to start the application, Qt is complaining because some dlls are missing: libmwfl.dll, libmwflstorageutility.dll etc..
Apparently, Qt is also looking in the Windows PATH variable to search for dlls, I had a look in my system path and I can see two paths:
I know this is a matlab forum, not a Qt one, but do you guys have an idea of what I should do to use matlab as a third party dependency ?
Have a nice day,
Pierre-Emmanuel libmat, libmx, third-party, dependency, dlls MATLAB Answers — New Questions
pv based single stage acim driver error
Hello guys, in my work for my school project, it works very slowly and I get the error when I increase the irradiance from 600w / mm2 to 1000W / mm2, please help?Hello guys, in my work for my school project, it works very slowly and I get the error when I increase the irradiance from 600w / mm2 to 1000W / mm2, please help? Hello guys, in my work for my school project, it works very slowly and I get the error when I increase the irradiance from 600w / mm2 to 1000W / mm2, please help? acim driver, pv panels, single stage inverter MATLAB Answers — New Questions
Connection of PowerGUI Mode block to non powergui block
I have created a mathematical model(state space) of BLDC motor and made an inverter in power domain ,Now I want to connect both blocks but not able to do so.So,is there any method to connect power block to signal domain block??I have created a mathematical model(state space) of BLDC motor and made an inverter in power domain ,Now I want to connect both blocks but not able to do so.So,is there any method to connect power block to signal domain block?? I have created a mathematical model(state space) of BLDC motor and made an inverter in power domain ,Now I want to connect both blocks but not able to do so.So,is there any method to connect power block to signal domain block?? bldc motor control, powergui to state space model MATLAB Answers — New Questions
How to simulate multiple rooftop solar PVs connected to grid in Simulink?
I need to simulate network control of PV inverters. I am unable to connect multiple PV units to the grid. I started with the built-in model "power_PVarray_250kW.slx" and copied the inverted controlled PV arrray and connected to the grid. I know I cannot just connect two such panels to the grid, but am not sure how to interface the two (or more) units located at different places in the grid to the common grid. Specifically, I am trying to reproduce the results of this paper: https://www.sciencedirect.com/science/article/pii/S0142061519328285. I get negative values of AC power generate for the second PV array. I am new to simulation of power systems, and any help would be appreciated.I need to simulate network control of PV inverters. I am unable to connect multiple PV units to the grid. I started with the built-in model "power_PVarray_250kW.slx" and copied the inverted controlled PV arrray and connected to the grid. I know I cannot just connect two such panels to the grid, but am not sure how to interface the two (or more) units located at different places in the grid to the common grid. Specifically, I am trying to reproduce the results of this paper: https://www.sciencedirect.com/science/article/pii/S0142061519328285. I get negative values of AC power generate for the second PV array. I am new to simulation of power systems, and any help would be appreciated. I need to simulate network control of PV inverters. I am unable to connect multiple PV units to the grid. I started with the built-in model "power_PVarray_250kW.slx" and copied the inverted controlled PV arrray and connected to the grid. I know I cannot just connect two such panels to the grid, but am not sure how to interface the two (or more) units located at different places in the grid to the common grid. Specifically, I am trying to reproduce the results of this paper: https://www.sciencedirect.com/science/article/pii/S0142061519328285. I get negative values of AC power generate for the second PV array. I am new to simulation of power systems, and any help would be appreciated. solar pv, distribution grid, simulink, network control, pv inverter MATLAB Answers — New Questions
S-function does not exist error in Simulink MATLAB
I am trying to run a model in SImulink Matlab that uses both Matlab based S-function block (a .mexw32 file) and a C code based S-function block (a .c file). When I run the model, I get the error below:
I don’t know why it keeps saying "It does not exist". The file is there, and it does exist. Someone should please help me out here. See the files in one folder below:
I also downloaded and installed MATLAB support for MinGW-w64 C/C++ Compiler to compile the C code so that it can be called from MATLAB using MEX. I’m still getting the same error despite doing this. I don’t know what else to do.I am trying to run a model in SImulink Matlab that uses both Matlab based S-function block (a .mexw32 file) and a C code based S-function block (a .c file). When I run the model, I get the error below:
I don’t know why it keeps saying "It does not exist". The file is there, and it does exist. Someone should please help me out here. See the files in one folder below:
I also downloaded and installed MATLAB support for MinGW-w64 C/C++ Compiler to compile the C code so that it can be called from MATLAB using MEX. I’m still getting the same error despite doing this. I don’t know what else to do. I am trying to run a model in SImulink Matlab that uses both Matlab based S-function block (a .mexw32 file) and a C code based S-function block (a .c file). When I run the model, I get the error below:
I don’t know why it keeps saying "It does not exist". The file is there, and it does exist. Someone should please help me out here. See the files in one folder below:
I also downloaded and installed MATLAB support for MinGW-w64 C/C++ Compiler to compile the C code so that it can be called from MATLAB using MEX. I’m still getting the same error despite doing this. I don’t know what else to do. matlab, simulink, mex compiler MATLAB Answers — New Questions
Memory optimization and code speed up
Hi! I have a function to compute what is called Fuzzy Rand Index. It is a way to compare a fuzzy (soft) or probabilistic data partition (clustering result) with a reference hard partition. The math behind this is basically an algebra with t-norms and t-conorms (s-norms). Among some choices, we can use min() as t-norm and max() as s-norm or algebraic product and probabilistic OR (probor) also as t-norm and s-norm. In the present case I’m using min() and max().
The input data are 2 partition matrices (Nxd) in which N is the number of data points and d the number of clusters. So each element h_ji of a partition matrix is precisely the probability of datapoint j belongs to cluster i. In general, N >> d (e.g. N = 20000 to 50000 points and d is tipically 2 to 5 clusters).
The math behind the index is such that I have to compute sort of a "pairwise min" between each data point and all others within the same column (min(h_ji,h_ki)), so I’ll have N*(N-1)/2 values for each of the d columns. To these d arrays of size N*(N-1)/2, I must apply the max s-norm element wise to end up with a quantity V that is an array of size N*(N-1)/2.
Also I must compute the same "pairwise min" t-norm between every data point and each other but mixing the columns like min(h_ji,h_kp). So I’ll end up with factorial(d)/factorial(d-2) arrays of size N*(N-1)/2 and to these I must also apply the max s-norm element wise to end up with a quantity X that is an array of size N*(N-1)/2.
What I call "pairwise min" is much like pdist do, comparing each point with the next ones, but not with the previous ones.
Later, this V and X from one partition matrix are compared with another V0 and X0 from the reference partition matrix with min t-norm.
I have implemented this in 3 different ways.
The slower and the one that has high memory consumption is the more compact form as:
% you can use as an example U = rand(20000,4);
U = rand(30000,4); % just for test
[N,d] = size(U); % U is a partition matrix
comb = ones(d,2).*(1:d)’;
V = max(cell2mat(arrayfun(@(k) cell2mat(arrayfun(@(j) pdist2(U((j+1):N,comb(k,1)),U(j,comb(k,2)),@min),(1:(N-1)).’,’UniformOutput’,false)),1:size(comb,1),’UniformOutput’,false)).’);
comb = nchoosek(1:d,2);
comb = [comb;fliplr(comb)];
X = max(cell2mat(arrayfun(@(k) cell2mat(arrayfun(@(j) pdist2(U((j+1):N,comb(k,1)),U(j,comb(k,2)),@min),(1:(N-1)).’,’UniformOutput’,false)),1:size(comb,1),’UniformOutput’,false)).’);
In some intermediate form, I’ve tried to use parallel code like
% you can use as an example U = rand(20000,4);
U = rand(30000,4); % just for test
[N,d] = size(U); % U is a partition matrix
comb = nchoosek(1:d,2);
ncomb = size(comb,1);
X = cell(n-1,1);
V = cell(n-1,1);
parfor j=1:n-1
tmp = zeros(n-j,1);
for k=1:ncomb
tmp = max(tmp,max(min(U(j,comb(k,1)), U((j+1):end,comb(k,2))) , min(U(j,comb(k,2)), U((j+1):end,comb(k,1)))));
end
X{j} = tmp;
tmp = zeros(n-j,1);
for k=1:d
tmp = max(tmp,min(U(j,k), U((j+1):end,k)));
end
V{j} = tmp;
end
X2 = cell2mat(X);
V2 = cell2mat(V);
Finally, the version I’ve got the best results in terms of speed and memory usage is the following, where I did the trick using circshifts and have used single type, as double precision is not important to me:
% you can use as an example A = rand(20000,4);
A = rand(30000,4); % just for test
[N,d] = size(A); % A is a partition matrix
NC = fix(N/2);
numelements = N*(N-1)/2;
V = zeros(numelements,1,’single’);
X = zeros(numelements,1,’single’);
temp = zeros(N,1,’single’);
for nc1 = 1:NC-1
Ac = circshift(A,-nc1,1);
V((nc1-1)*N + 1 : nc1*N) = max(min(A,Ac),[],2);
X((nc1-1)*N + 1 : nc1*N) = func1(A,Ac,temp,d);
temp(:) = 0;
end
if N/2 – NC == 0
V((NC-1)*N + 1 : end) = max(min(A(1:N/2,:),A(N/2+1:end,:)),[],2);
X((NC-1)*N + 1 : end) = func2(A,N,d,temp(1:N/2));
else
Ac = circshift(A,-NC,1);
V((NC-1)*N + 1 : end) = max(min(A,Ac),[],2);
X((NC-1)*N + 1 : end) = func1(A,Ac,N,d);
end
function temp = func1(A,Ac,temp,d)
for nc2 = 1:d-1
temp = max(temp,max(min(A,circshift(Ac,-nc2,2)),[],2));
end
end
function temp = func2(A,N,d,temp)
for nc2 = 1:d-1
temp = max(temp,max(min(A(1:N/2,:),circshift(A(N/2+1:end,:),-nc2,2)),[],2));
end
end
The problem is that this calculation must be made several times to compare a lot of different clustering results to the reference one and for datasets with N > 20000 things take a lot of time. So do you think there is room for more optimization and get this faster and more memory efficient than the 3rd version with the circshifts?
Also, as this is done multiple times (2300 times for each dataset), this function is being called inside a parfor. So each thread executes this function. But min and max are multi-threaded functions also. My approach was to set the parpool with 6 workers (12 threads) and left 2 workers (4 threads) out of the parpool willing that these 4 threads will be used for the min() and max() multi-threading. Is that right? I thought that using all workers within the parpool would disable the multi-threading of min() and max() and get things slower.Hi! I have a function to compute what is called Fuzzy Rand Index. It is a way to compare a fuzzy (soft) or probabilistic data partition (clustering result) with a reference hard partition. The math behind this is basically an algebra with t-norms and t-conorms (s-norms). Among some choices, we can use min() as t-norm and max() as s-norm or algebraic product and probabilistic OR (probor) also as t-norm and s-norm. In the present case I’m using min() and max().
The input data are 2 partition matrices (Nxd) in which N is the number of data points and d the number of clusters. So each element h_ji of a partition matrix is precisely the probability of datapoint j belongs to cluster i. In general, N >> d (e.g. N = 20000 to 50000 points and d is tipically 2 to 5 clusters).
The math behind the index is such that I have to compute sort of a "pairwise min" between each data point and all others within the same column (min(h_ji,h_ki)), so I’ll have N*(N-1)/2 values for each of the d columns. To these d arrays of size N*(N-1)/2, I must apply the max s-norm element wise to end up with a quantity V that is an array of size N*(N-1)/2.
Also I must compute the same "pairwise min" t-norm between every data point and each other but mixing the columns like min(h_ji,h_kp). So I’ll end up with factorial(d)/factorial(d-2) arrays of size N*(N-1)/2 and to these I must also apply the max s-norm element wise to end up with a quantity X that is an array of size N*(N-1)/2.
What I call "pairwise min" is much like pdist do, comparing each point with the next ones, but not with the previous ones.
Later, this V and X from one partition matrix are compared with another V0 and X0 from the reference partition matrix with min t-norm.
I have implemented this in 3 different ways.
The slower and the one that has high memory consumption is the more compact form as:
% you can use as an example U = rand(20000,4);
U = rand(30000,4); % just for test
[N,d] = size(U); % U is a partition matrix
comb = ones(d,2).*(1:d)’;
V = max(cell2mat(arrayfun(@(k) cell2mat(arrayfun(@(j) pdist2(U((j+1):N,comb(k,1)),U(j,comb(k,2)),@min),(1:(N-1)).’,’UniformOutput’,false)),1:size(comb,1),’UniformOutput’,false)).’);
comb = nchoosek(1:d,2);
comb = [comb;fliplr(comb)];
X = max(cell2mat(arrayfun(@(k) cell2mat(arrayfun(@(j) pdist2(U((j+1):N,comb(k,1)),U(j,comb(k,2)),@min),(1:(N-1)).’,’UniformOutput’,false)),1:size(comb,1),’UniformOutput’,false)).’);
In some intermediate form, I’ve tried to use parallel code like
% you can use as an example U = rand(20000,4);
U = rand(30000,4); % just for test
[N,d] = size(U); % U is a partition matrix
comb = nchoosek(1:d,2);
ncomb = size(comb,1);
X = cell(n-1,1);
V = cell(n-1,1);
parfor j=1:n-1
tmp = zeros(n-j,1);
for k=1:ncomb
tmp = max(tmp,max(min(U(j,comb(k,1)), U((j+1):end,comb(k,2))) , min(U(j,comb(k,2)), U((j+1):end,comb(k,1)))));
end
X{j} = tmp;
tmp = zeros(n-j,1);
for k=1:d
tmp = max(tmp,min(U(j,k), U((j+1):end,k)));
end
V{j} = tmp;
end
X2 = cell2mat(X);
V2 = cell2mat(V);
Finally, the version I’ve got the best results in terms of speed and memory usage is the following, where I did the trick using circshifts and have used single type, as double precision is not important to me:
% you can use as an example A = rand(20000,4);
A = rand(30000,4); % just for test
[N,d] = size(A); % A is a partition matrix
NC = fix(N/2);
numelements = N*(N-1)/2;
V = zeros(numelements,1,’single’);
X = zeros(numelements,1,’single’);
temp = zeros(N,1,’single’);
for nc1 = 1:NC-1
Ac = circshift(A,-nc1,1);
V((nc1-1)*N + 1 : nc1*N) = max(min(A,Ac),[],2);
X((nc1-1)*N + 1 : nc1*N) = func1(A,Ac,temp,d);
temp(:) = 0;
end
if N/2 – NC == 0
V((NC-1)*N + 1 : end) = max(min(A(1:N/2,:),A(N/2+1:end,:)),[],2);
X((NC-1)*N + 1 : end) = func2(A,N,d,temp(1:N/2));
else
Ac = circshift(A,-NC,1);
V((NC-1)*N + 1 : end) = max(min(A,Ac),[],2);
X((NC-1)*N + 1 : end) = func1(A,Ac,N,d);
end
function temp = func1(A,Ac,temp,d)
for nc2 = 1:d-1
temp = max(temp,max(min(A,circshift(Ac,-nc2,2)),[],2));
end
end
function temp = func2(A,N,d,temp)
for nc2 = 1:d-1
temp = max(temp,max(min(A(1:N/2,:),circshift(A(N/2+1:end,:),-nc2,2)),[],2));
end
end
The problem is that this calculation must be made several times to compare a lot of different clustering results to the reference one and for datasets with N > 20000 things take a lot of time. So do you think there is room for more optimization and get this faster and more memory efficient than the 3rd version with the circshifts?
Also, as this is done multiple times (2300 times for each dataset), this function is being called inside a parfor. So each thread executes this function. But min and max are multi-threaded functions also. My approach was to set the parpool with 6 workers (12 threads) and left 2 workers (4 threads) out of the parpool willing that these 4 threads will be used for the min() and max() multi-threading. Is that right? I thought that using all workers within the parpool would disable the multi-threading of min() and max() and get things slower. Hi! I have a function to compute what is called Fuzzy Rand Index. It is a way to compare a fuzzy (soft) or probabilistic data partition (clustering result) with a reference hard partition. The math behind this is basically an algebra with t-norms and t-conorms (s-norms). Among some choices, we can use min() as t-norm and max() as s-norm or algebraic product and probabilistic OR (probor) also as t-norm and s-norm. In the present case I’m using min() and max().
The input data are 2 partition matrices (Nxd) in which N is the number of data points and d the number of clusters. So each element h_ji of a partition matrix is precisely the probability of datapoint j belongs to cluster i. In general, N >> d (e.g. N = 20000 to 50000 points and d is tipically 2 to 5 clusters).
The math behind the index is such that I have to compute sort of a "pairwise min" between each data point and all others within the same column (min(h_ji,h_ki)), so I’ll have N*(N-1)/2 values for each of the d columns. To these d arrays of size N*(N-1)/2, I must apply the max s-norm element wise to end up with a quantity V that is an array of size N*(N-1)/2.
Also I must compute the same "pairwise min" t-norm between every data point and each other but mixing the columns like min(h_ji,h_kp). So I’ll end up with factorial(d)/factorial(d-2) arrays of size N*(N-1)/2 and to these I must also apply the max s-norm element wise to end up with a quantity X that is an array of size N*(N-1)/2.
What I call "pairwise min" is much like pdist do, comparing each point with the next ones, but not with the previous ones.
Later, this V and X from one partition matrix are compared with another V0 and X0 from the reference partition matrix with min t-norm.
I have implemented this in 3 different ways.
The slower and the one that has high memory consumption is the more compact form as:
% you can use as an example U = rand(20000,4);
U = rand(30000,4); % just for test
[N,d] = size(U); % U is a partition matrix
comb = ones(d,2).*(1:d)’;
V = max(cell2mat(arrayfun(@(k) cell2mat(arrayfun(@(j) pdist2(U((j+1):N,comb(k,1)),U(j,comb(k,2)),@min),(1:(N-1)).’,’UniformOutput’,false)),1:size(comb,1),’UniformOutput’,false)).’);
comb = nchoosek(1:d,2);
comb = [comb;fliplr(comb)];
X = max(cell2mat(arrayfun(@(k) cell2mat(arrayfun(@(j) pdist2(U((j+1):N,comb(k,1)),U(j,comb(k,2)),@min),(1:(N-1)).’,’UniformOutput’,false)),1:size(comb,1),’UniformOutput’,false)).’);
In some intermediate form, I’ve tried to use parallel code like
% you can use as an example U = rand(20000,4);
U = rand(30000,4); % just for test
[N,d] = size(U); % U is a partition matrix
comb = nchoosek(1:d,2);
ncomb = size(comb,1);
X = cell(n-1,1);
V = cell(n-1,1);
parfor j=1:n-1
tmp = zeros(n-j,1);
for k=1:ncomb
tmp = max(tmp,max(min(U(j,comb(k,1)), U((j+1):end,comb(k,2))) , min(U(j,comb(k,2)), U((j+1):end,comb(k,1)))));
end
X{j} = tmp;
tmp = zeros(n-j,1);
for k=1:d
tmp = max(tmp,min(U(j,k), U((j+1):end,k)));
end
V{j} = tmp;
end
X2 = cell2mat(X);
V2 = cell2mat(V);
Finally, the version I’ve got the best results in terms of speed and memory usage is the following, where I did the trick using circshifts and have used single type, as double precision is not important to me:
% you can use as an example A = rand(20000,4);
A = rand(30000,4); % just for test
[N,d] = size(A); % A is a partition matrix
NC = fix(N/2);
numelements = N*(N-1)/2;
V = zeros(numelements,1,’single’);
X = zeros(numelements,1,’single’);
temp = zeros(N,1,’single’);
for nc1 = 1:NC-1
Ac = circshift(A,-nc1,1);
V((nc1-1)*N + 1 : nc1*N) = max(min(A,Ac),[],2);
X((nc1-1)*N + 1 : nc1*N) = func1(A,Ac,temp,d);
temp(:) = 0;
end
if N/2 – NC == 0
V((NC-1)*N + 1 : end) = max(min(A(1:N/2,:),A(N/2+1:end,:)),[],2);
X((NC-1)*N + 1 : end) = func2(A,N,d,temp(1:N/2));
else
Ac = circshift(A,-NC,1);
V((NC-1)*N + 1 : end) = max(min(A,Ac),[],2);
X((NC-1)*N + 1 : end) = func1(A,Ac,N,d);
end
function temp = func1(A,Ac,temp,d)
for nc2 = 1:d-1
temp = max(temp,max(min(A,circshift(Ac,-nc2,2)),[],2));
end
end
function temp = func2(A,N,d,temp)
for nc2 = 1:d-1
temp = max(temp,max(min(A(1:N/2,:),circshift(A(N/2+1:end,:),-nc2,2)),[],2));
end
end
The problem is that this calculation must be made several times to compare a lot of different clustering results to the reference one and for datasets with N > 20000 things take a lot of time. So do you think there is room for more optimization and get this faster and more memory efficient than the 3rd version with the circshifts?
Also, as this is done multiple times (2300 times for each dataset), this function is being called inside a parfor. So each thread executes this function. But min and max are multi-threaded functions also. My approach was to set the parpool with 6 workers (12 threads) and left 2 workers (4 threads) out of the parpool willing that these 4 threads will be used for the min() and max() multi-threading. Is that right? I thought that using all workers within the parpool would disable the multi-threading of min() and max() and get things slower. multi-thread, parfor, speed up, memory usage MATLAB Answers — New Questions
Lookup table problem in Simulink
Dear Community,
I’m a newbie in Simscape simulation. As a first learning attempt, I would like to simulate a small 2D RC network of 4 rows and 10 columns. Nodes in this network are RC subsystems connected to each other with electrical lines. I placed a Controlled Current Source into the (3 row , 2 column) node, which I would like to feed with a 1D lookup table. I also placed 5 voltage sensors into nodes (2,2, blue), (2,3, green), (2,4,cyan), (3,2, red) and (1,10,magenta) to measure how voltage evolves in the different locations of the network during the simulation. The 1D lookup table should get data from an external Excel file called RateSchedule.xlsx. Simulation time is 400s. I wired everything together and tried to run the model, but Simulink has a problem in the lookup table, although I provided the interpolation vectors. Could you pls. have a short look to the model what do I do wrong, what I miss here? I’ve attached the model also (TwoDRCNetwork.slx), the current schedule (RateSchedule.xlsx) and the results figure (VoltageResults.fig), which was calculated by a different method. This is how the system response should look like.
Tx for the kind help in advance,
Best regards
AndrasDear Community,
I’m a newbie in Simscape simulation. As a first learning attempt, I would like to simulate a small 2D RC network of 4 rows and 10 columns. Nodes in this network are RC subsystems connected to each other with electrical lines. I placed a Controlled Current Source into the (3 row , 2 column) node, which I would like to feed with a 1D lookup table. I also placed 5 voltage sensors into nodes (2,2, blue), (2,3, green), (2,4,cyan), (3,2, red) and (1,10,magenta) to measure how voltage evolves in the different locations of the network during the simulation. The 1D lookup table should get data from an external Excel file called RateSchedule.xlsx. Simulation time is 400s. I wired everything together and tried to run the model, but Simulink has a problem in the lookup table, although I provided the interpolation vectors. Could you pls. have a short look to the model what do I do wrong, what I miss here? I’ve attached the model also (TwoDRCNetwork.slx), the current schedule (RateSchedule.xlsx) and the results figure (VoltageResults.fig), which was calculated by a different method. This is how the system response should look like.
Tx for the kind help in advance,
Best regards
Andras Dear Community,
I’m a newbie in Simscape simulation. As a first learning attempt, I would like to simulate a small 2D RC network of 4 rows and 10 columns. Nodes in this network are RC subsystems connected to each other with electrical lines. I placed a Controlled Current Source into the (3 row , 2 column) node, which I would like to feed with a 1D lookup table. I also placed 5 voltage sensors into nodes (2,2, blue), (2,3, green), (2,4,cyan), (3,2, red) and (1,10,magenta) to measure how voltage evolves in the different locations of the network during the simulation. The 1D lookup table should get data from an external Excel file called RateSchedule.xlsx. Simulation time is 400s. I wired everything together and tried to run the model, but Simulink has a problem in the lookup table, although I provided the interpolation vectors. Could you pls. have a short look to the model what do I do wrong, what I miss here? I’ve attached the model also (TwoDRCNetwork.slx), the current schedule (RateSchedule.xlsx) and the results figure (VoltageResults.fig), which was calculated by a different method. This is how the system response should look like.
Tx for the kind help in advance,
Best regards
Andras simulink, simscape MATLAB Answers — New Questions
Simulink Crashing Suddenly (from yesterday)
Simulink was working properly till yesterday. From yestertady I am getting Access violation detected error. I uninstalled and reinstalled the entire software but error still persist.
I have copy pasted the error bellow..
————————————————
MATLAB Log File
————————————————
——————————————————————————–
Access violation detected at 2022-04-19 08:04:11 +0530
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : windows-1252
Deployed : false
Graphics Driver : Unknown hardware
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 630 Version 27.20.100.8280 (2020-5-19)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 6257193
MATLAB Root : C:Program FilesPolyspaceR2021a
MATLAB Version : 9.10.0.1602886 (R2021a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Pro
Process ID : 3740
Processor ID : x86 Family 6 Model 158 Stepping 9, GenuineIntel
Session Key : d2d94843-e1bc-46b3-b24b-a620ede5a089
Window System : Version 10.0 (Build 19044)
Fault Count: 1
Abnormal termination:
Access violation
Current Thread: ‘MCR 0 interpreter thread’ id 10624
Register State (from fault):
RAX = 00007ffe55071ad0 RBX = 0000009384df91b0
RCX = 000001cd9304cb60 RDX = 000001cdb2ca0000
RSP = 0000009384df8688 RBP = 0000009384df87c0
RSI = 0000009384df8b70 RDI = 0000009384df91b0
R8 = 000001cdb2b94500 R9 = 0000000000000001
R10 = 0000000000008000 R11 = 0000009384df85f0
R12 = 0000000000000000 R13 = 0000000000000001
R14 = 000001cda5ffb7b0 R15 = 000001cdf9515a70
RIP = 00007ffe519456c6 EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ffe519456c6 C:Program FilesPolyspaceR2021abinwin64sl_graphical_classes.dll+06510278 BDConfigSetInfo::getRTWComponent+00000086
[ 1] 0x00007ffe513fcacf C:Program FilesPolyspaceR2021abinwin64sl_graphical_classes.dll+00969423 SLRootBDAPI::getRTWSystemTargetFile+00000063
[ 2] 0x00007ffe11a8e5b5 C:ProgramDataMATLABSupportPackagesR2021abinwin64simulink_pluginshardwaresupportpkgstargetstargetHiddenBlkInsertlibmwtargetHiddenBlkInsert.dll+00124341 sl_hmi::DashboardBlock::useLatestValueForValueParam+00032757
[ 3] 0x00007ffe4f6f0f36 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+04198198 slplugin::addCompBdSignal+00019302
[ 4] 0x00007ffe4f3ca7f7 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00894967 bdPostEngineEvent_nothrow+00001847
[ 5] 0x00007ffe4f3b69b0 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00813488 ssSetGrBlkMaxFreqHz+00004336
[ 6] 0x00007ffe4f3c60c9 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00876745 slplugin::MasterCompEvent::~MasterCompEvent+00004329
[ 7] 0x00007ffe4f3bad6d C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00830829 ssSetGrBlkMaxFreqHz+00021677
[ 8] 0x00007ffe4f3c7760 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00882528 slplugin::ProcessEngineEvent+00000336
[ 9] 0x00007ffe4f3ca041 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00892993 bdPostEngineEvent+00000209
[ 10] 0x00007ffe4301f280 C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03469952 SLOutportWithFcnCallInitPassThru::throwErrorOnInvalidICSrc+00002720
[ 11] 0x00007ffe43063dcb C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03751371 VarHiddenConnectionInfo::setNIForRemoval+00010315
[ 12] 0x00007ffe43063f88 C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03751816 VarHiddenConnectionInfo::setNIForRemoval+00010760
[ 13] 0x00007ffe4300722a C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03371562 SLCompDiagramImpl+00040618
[ 14] 0x00007ffe42ffd68a C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03331722 SLCompDiagramImpl+00000778
[ 15] 0x00007ffe521dd146 C:Program FilesPolyspaceR2021abinwin64sl_link_bd.dll+01102150 slink::CreateSlModelForLink+00000758
[ 16] 0x00007ffe521dce73 C:Program FilesPolyspaceR2021abinwin64sl_link_bd.dll+01101427 slink::CreateSlModelForLink+00000035
[ 17] 0x00007ffe54a73ee4 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+15810276 slstSetOutputPortRateID+00130612
[ 18] 0x00007ffe54a79d26 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+15834406 slstSetOutputPortRateID+00154742
[ 19] 0x00007ffe54a804a7 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+15860903 slstSetOutputPortRateID+00181239
[ 20] 0x00007ffe54abbcf2 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+16104690 slstSetOutputPortRateID+00425026
[ 21] 0x00007ffe53eb1022 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+03477538 ExitPauseInDebuggerMenuSim+00001346
[ 22] 0x00007ffe54683706 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+11679494 SLGlue::simulationStartPauseContinueNARMode+00000182
[ 23] 0x00007ffe20a65509 C:Program FilesPolyspaceR2021abinwin64sl_mi.dll+00349449 SLM3I::mi::initCosSFBlockOpenNotification+00074009
[ 24] 0x00007ffea50cd42e binwin64pgomcos_impl.dll+00381998
[ 25] 0x00007ffea50cc9d5 binwin64pgomcos_impl.dll+00379349
[ 26] 0x00007ffea50cc670 binwin64pgomcos_impl.dll+00378480
[ 27] 0x00007ffea510d543 binwin64pgomcos_impl.dll+00644419 mdMethodListAllFcn+00084595
[ 28] 0x00007ffea510d458 binwin64pgomcos_impl.dll+00644184 mdMethodListAllFcn+00084360
[ 29] 0x00007ffea510d33e binwin64pgomcos_impl.dll+00643902 mdMethodListAllFcn+00084078
[ 30] 0x00007ffea50d083d binwin64pgomcos_impl.dll+00395325 mdIsA+00002017
[ 31] 0x00007ffeb0554630 binwin64pgom_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 32] 0x00007ffeb05547b9 binwin64pgom_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 33] 0x00007ffea162a62e binwin64pgom_lxe.dll+00370222
[ 34] 0x00007ffea16aa093 binwin64pgom_lxe.dll+00893075 MathWorks::lxe::initializeFcn+00521059
[ 35] 0x00007ffec233f68c binwin64pgolibmx.dll+00652940 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000036
[ 36] 0x00007ffeb0345a75 binwin64pgom_interpreter.dll+00154229 mwboost::serialization::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >+00027445
[ 37] 0x00007ffeafb38bea C:Program FilesPolyspaceR2021abinwin64builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130
[ 38] 0x00007ffeb0564b1c binwin64pgom_dispatcher.dll+00150300 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136
[ 39] 0x00007ffeb0554630 binwin64pgom_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 40] 0x00007ffeb05547b9 binwin64pgom_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 41] 0x00007ffea162a62e binwin64pgom_lxe.dll+00370222
[ 42] 0x00007ffea1626436 binwin64pgom_lxe.dll+00353334
[ 43] 0x00007ffea162638f binwin64pgom_lxe.dll+00353167
[ 44] 0x00007ffeb032d550 binwin64pgom_interpreter.dll+00054608 inCallFcn+00000084
[ 45] 0x00007ffea178f126 binwin64pgom_lxe.dll+01831206 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00022786
[ 46] 0x00007ffeb03326e2 binwin64pgom_interpreter.dll+00075490 inCallFcnWithTrap+00000098
[ 47] 0x00007ffe2cb94bc9 C:Program FilesPolyspaceR2021abinwin64dig.dll+03623881 dig::FunctionInfoToArray+00000649
[ 48] 0x00007ffe2cb6121a C:Program FilesPolyspaceR2021abinwin64dig.dll+03412506 dig::ActionCallback::operator()+00000826
[ 49] 0x00007ffe2cb60efd C:Program FilesPolyspaceR2021abinwin64dig.dll+03411709 dig::ActionCallback::operator()+00000029
[ 50] 0x00007ffe2ca527d4 C:Program FilesPolyspaceR2021abinwin64dig.dll+02303956 dig::ActionService::executeActionImpl+00001732
[ 51] 0x00007ffe2ca5185f C:Program FilesPolyspaceR2021abinwin64dig.dll+02299999 dig::ActionService::executeAction+00000287
[ 52] 0x00007ffe2ca51e64 C:Program FilesPolyspaceR2021abinwin64dig.dll+02301540 dig::ActionService::executeAction+00000388
[ 53] 0x00007ffe2cbe6164 C:Program FilesPolyspaceR2021abinwin64dig.dll+03957092 dig::View::handleEvent+00001252
[ 54] 0x00007ffe2cbddc38 C:Program FilesPolyspaceR2021abinwin64dig.dll+03923000 dig::ToolStrip::handleEvent+00001704
[ 55] 0x00007ffe2caba182 C:Program FilesPolyspaceR2021abinwin64dig.dll+02728322 dig::UDDPropertyAdapter::setPropertyValue+00011682
[ 56] 0x00007ffe2c9fb3ab C:Program FilesPolyspaceR2021abinwin64dig.dll+01946539 dig::config::Widget::Impl::printHierarchy+00101019
[ 57] 0x00007ffe2c9eb9f3 C:Program FilesPolyspaceR2021abinwin64dig.dll+01882611 dig::config::Widget::Impl::printHierarchy+00037091
[ 58] 0x00007ffe2c9ff2f0 C:Program FilesPolyspaceR2021abinwin64dig.dll+01962736 dig::config::Widget::Impl::printHierarchy+00117216
[ 59] 0x00007ffeb071392a C:Program FilesPolyspaceR2021abinwin64iqm.dll+00801066 iqm::PackagedTaskPlugin::execute+00000074
[ 60] 0x00007ffeb083e1ed C:Program FilesPolyspaceR2021abinwin64mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 61] 0x00007ffeb06e65ec C:Program FilesPolyspaceR2021abinwin64iqm.dll+00615916 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 62] 0x00007ffeb06b71f0 C:Program FilesPolyspaceR2021abinwin64iqm.dll+00422384 iqm::Iqm::create+00007024
[ 63] 0x00007ffeb02c8eaf C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00102063 ioReadLine+00000463
[ 64] 0x00007ffeb02c8ca5 C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00101541 ioReadLine+00000165
[ 65] 0x00007ffeb02da761 C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00173921 mnGetCommandLineBuffer+00000289
[ 66] 0x00007ffeb02dabb7 C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00175031 mnParser+00000487
[ 67] 0x00007ffeb0843d86 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00540038 mcr_set_enableReadingFromStdin+00013894
[ 68] 0x00007ffeb07df5d3 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00128467 mcrFunctionSignature::set_signature+00107555
[ 69] 0x00007ffeb07fb550 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00243024 mcrFunctionSignature::set_signature+00222112
[ 70] 0x00007ffeb071392a C:Program FilesPolyspaceR2021abinwin64iqm.dll+00801066 iqm::PackagedTaskPlugin::execute+00000074
[ 71] 0x00007ffeb083e1ed C:Program FilesPolyspaceR2021abinwin64mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 72] 0x00007ffeb06e65ec C:Program FilesPolyspaceR2021abinwin64iqm.dll+00615916 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 73] 0x00007ffeb06b84bc C:Program FilesPolyspaceR2021abinwin64iqm.dll+00427196 iqm::Iqm::create+00011836
[ 74] 0x00007ffeb06b7c32 C:Program FilesPolyspaceR2021abinwin64iqm.dll+00425010 iqm::Iqm::create+00009650
[ 75] 0x00007ffeb08158fc C:Program FilesPolyspaceR2021abinwin64mcr.dll+00350460 mcrInstantiationError::operator=+00010428
[ 76] 0x00007ffeb08164ac C:Program FilesPolyspaceR2021abinwin64mcr.dll+00353452 mcrInstantiationError::operator=+00013420
[ 77] 0x00007ffeb0813ac0 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00342720 mcrInstantiationError::operator=+00002688
[ 78] 0x00007ffed84e9b9a C:Program FilesPolyspaceR2021abinwin64mwboost_thread-vc142-mt-x64-1_72.dll+00039834 mwboost::thread::swap+00000074
[ 79] 0x00007ffef6331bb2 C:WINDOWSSystem32ucrtbase.dll+00138162 configthreadlocale+00000146
[ 80] 0x00007ffef8067034 C:WINDOWSSystem32KERNEL32.DLL+00094260 BaseThreadInitThunk+00000020
[ 81] 0x00007ffef88c2651 C:WINDOWSSYSTEM32ntdll.dll+00337489 RtlUserThreadStart+00000033
Program State:
Most Recent Simulink Activity:
playSimulationAction : OK in editor 1 at Tue Apr 19 08:04:10 2022
Rename Block : OK in editor 1 at Tue Apr 19 08:04:06 2022
Create Subsystem : OK in editor 1 at Tue Apr 19 08:03:47 2022
Simulink:CreateSubsystemFromSelection : OK in editor 1 at Tue Apr 19 08:03:47 2022
Parameter Changes : OK in editor 1 at Tue Apr 19 08:03:42 2022
Parameter Changes : OK in editor 1 at Tue Apr 19 08:03:38 2022
Create Segment : OK in editor 1 at Tue Apr 19 08:03:33 2022
Create Segment : OK in editor 1 at Tue Apr 19 08:03:33 2022
Move : OK in editor 1 at Tue Apr 19 08:03:32 2022
Move : OK in editor 1 at Tue Apr 19 08:03:31 2022
Most Recent Tool Interaction:
Editor 1: tools idle, class diagram::markup::TextTool is most recently active tool since Tue Apr 19 08:03:51 2022Simulink was working properly till yesterday. From yestertady I am getting Access violation detected error. I uninstalled and reinstalled the entire software but error still persist.
I have copy pasted the error bellow..
————————————————
MATLAB Log File
————————————————
——————————————————————————–
Access violation detected at 2022-04-19 08:04:11 +0530
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : windows-1252
Deployed : false
Graphics Driver : Unknown hardware
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 630 Version 27.20.100.8280 (2020-5-19)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 6257193
MATLAB Root : C:Program FilesPolyspaceR2021a
MATLAB Version : 9.10.0.1602886 (R2021a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Pro
Process ID : 3740
Processor ID : x86 Family 6 Model 158 Stepping 9, GenuineIntel
Session Key : d2d94843-e1bc-46b3-b24b-a620ede5a089
Window System : Version 10.0 (Build 19044)
Fault Count: 1
Abnormal termination:
Access violation
Current Thread: ‘MCR 0 interpreter thread’ id 10624
Register State (from fault):
RAX = 00007ffe55071ad0 RBX = 0000009384df91b0
RCX = 000001cd9304cb60 RDX = 000001cdb2ca0000
RSP = 0000009384df8688 RBP = 0000009384df87c0
RSI = 0000009384df8b70 RDI = 0000009384df91b0
R8 = 000001cdb2b94500 R9 = 0000000000000001
R10 = 0000000000008000 R11 = 0000009384df85f0
R12 = 0000000000000000 R13 = 0000000000000001
R14 = 000001cda5ffb7b0 R15 = 000001cdf9515a70
RIP = 00007ffe519456c6 EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ffe519456c6 C:Program FilesPolyspaceR2021abinwin64sl_graphical_classes.dll+06510278 BDConfigSetInfo::getRTWComponent+00000086
[ 1] 0x00007ffe513fcacf C:Program FilesPolyspaceR2021abinwin64sl_graphical_classes.dll+00969423 SLRootBDAPI::getRTWSystemTargetFile+00000063
[ 2] 0x00007ffe11a8e5b5 C:ProgramDataMATLABSupportPackagesR2021abinwin64simulink_pluginshardwaresupportpkgstargetstargetHiddenBlkInsertlibmwtargetHiddenBlkInsert.dll+00124341 sl_hmi::DashboardBlock::useLatestValueForValueParam+00032757
[ 3] 0x00007ffe4f6f0f36 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+04198198 slplugin::addCompBdSignal+00019302
[ 4] 0x00007ffe4f3ca7f7 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00894967 bdPostEngineEvent_nothrow+00001847
[ 5] 0x00007ffe4f3b69b0 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00813488 ssSetGrBlkMaxFreqHz+00004336
[ 6] 0x00007ffe4f3c60c9 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00876745 slplugin::MasterCompEvent::~MasterCompEvent+00004329
[ 7] 0x00007ffe4f3bad6d C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00830829 ssSetGrBlkMaxFreqHz+00021677
[ 8] 0x00007ffe4f3c7760 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00882528 slplugin::ProcessEngineEvent+00000336
[ 9] 0x00007ffe4f3ca041 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00892993 bdPostEngineEvent+00000209
[ 10] 0x00007ffe4301f280 C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03469952 SLOutportWithFcnCallInitPassThru::throwErrorOnInvalidICSrc+00002720
[ 11] 0x00007ffe43063dcb C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03751371 VarHiddenConnectionInfo::setNIForRemoval+00010315
[ 12] 0x00007ffe43063f88 C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03751816 VarHiddenConnectionInfo::setNIForRemoval+00010760
[ 13] 0x00007ffe4300722a C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03371562 SLCompDiagramImpl+00040618
[ 14] 0x00007ffe42ffd68a C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03331722 SLCompDiagramImpl+00000778
[ 15] 0x00007ffe521dd146 C:Program FilesPolyspaceR2021abinwin64sl_link_bd.dll+01102150 slink::CreateSlModelForLink+00000758
[ 16] 0x00007ffe521dce73 C:Program FilesPolyspaceR2021abinwin64sl_link_bd.dll+01101427 slink::CreateSlModelForLink+00000035
[ 17] 0x00007ffe54a73ee4 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+15810276 slstSetOutputPortRateID+00130612
[ 18] 0x00007ffe54a79d26 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+15834406 slstSetOutputPortRateID+00154742
[ 19] 0x00007ffe54a804a7 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+15860903 slstSetOutputPortRateID+00181239
[ 20] 0x00007ffe54abbcf2 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+16104690 slstSetOutputPortRateID+00425026
[ 21] 0x00007ffe53eb1022 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+03477538 ExitPauseInDebuggerMenuSim+00001346
[ 22] 0x00007ffe54683706 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+11679494 SLGlue::simulationStartPauseContinueNARMode+00000182
[ 23] 0x00007ffe20a65509 C:Program FilesPolyspaceR2021abinwin64sl_mi.dll+00349449 SLM3I::mi::initCosSFBlockOpenNotification+00074009
[ 24] 0x00007ffea50cd42e binwin64pgomcos_impl.dll+00381998
[ 25] 0x00007ffea50cc9d5 binwin64pgomcos_impl.dll+00379349
[ 26] 0x00007ffea50cc670 binwin64pgomcos_impl.dll+00378480
[ 27] 0x00007ffea510d543 binwin64pgomcos_impl.dll+00644419 mdMethodListAllFcn+00084595
[ 28] 0x00007ffea510d458 binwin64pgomcos_impl.dll+00644184 mdMethodListAllFcn+00084360
[ 29] 0x00007ffea510d33e binwin64pgomcos_impl.dll+00643902 mdMethodListAllFcn+00084078
[ 30] 0x00007ffea50d083d binwin64pgomcos_impl.dll+00395325 mdIsA+00002017
[ 31] 0x00007ffeb0554630 binwin64pgom_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 32] 0x00007ffeb05547b9 binwin64pgom_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 33] 0x00007ffea162a62e binwin64pgom_lxe.dll+00370222
[ 34] 0x00007ffea16aa093 binwin64pgom_lxe.dll+00893075 MathWorks::lxe::initializeFcn+00521059
[ 35] 0x00007ffec233f68c binwin64pgolibmx.dll+00652940 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000036
[ 36] 0x00007ffeb0345a75 binwin64pgom_interpreter.dll+00154229 mwboost::serialization::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >+00027445
[ 37] 0x00007ffeafb38bea C:Program FilesPolyspaceR2021abinwin64builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130
[ 38] 0x00007ffeb0564b1c binwin64pgom_dispatcher.dll+00150300 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136
[ 39] 0x00007ffeb0554630 binwin64pgom_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 40] 0x00007ffeb05547b9 binwin64pgom_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 41] 0x00007ffea162a62e binwin64pgom_lxe.dll+00370222
[ 42] 0x00007ffea1626436 binwin64pgom_lxe.dll+00353334
[ 43] 0x00007ffea162638f binwin64pgom_lxe.dll+00353167
[ 44] 0x00007ffeb032d550 binwin64pgom_interpreter.dll+00054608 inCallFcn+00000084
[ 45] 0x00007ffea178f126 binwin64pgom_lxe.dll+01831206 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00022786
[ 46] 0x00007ffeb03326e2 binwin64pgom_interpreter.dll+00075490 inCallFcnWithTrap+00000098
[ 47] 0x00007ffe2cb94bc9 C:Program FilesPolyspaceR2021abinwin64dig.dll+03623881 dig::FunctionInfoToArray+00000649
[ 48] 0x00007ffe2cb6121a C:Program FilesPolyspaceR2021abinwin64dig.dll+03412506 dig::ActionCallback::operator()+00000826
[ 49] 0x00007ffe2cb60efd C:Program FilesPolyspaceR2021abinwin64dig.dll+03411709 dig::ActionCallback::operator()+00000029
[ 50] 0x00007ffe2ca527d4 C:Program FilesPolyspaceR2021abinwin64dig.dll+02303956 dig::ActionService::executeActionImpl+00001732
[ 51] 0x00007ffe2ca5185f C:Program FilesPolyspaceR2021abinwin64dig.dll+02299999 dig::ActionService::executeAction+00000287
[ 52] 0x00007ffe2ca51e64 C:Program FilesPolyspaceR2021abinwin64dig.dll+02301540 dig::ActionService::executeAction+00000388
[ 53] 0x00007ffe2cbe6164 C:Program FilesPolyspaceR2021abinwin64dig.dll+03957092 dig::View::handleEvent+00001252
[ 54] 0x00007ffe2cbddc38 C:Program FilesPolyspaceR2021abinwin64dig.dll+03923000 dig::ToolStrip::handleEvent+00001704
[ 55] 0x00007ffe2caba182 C:Program FilesPolyspaceR2021abinwin64dig.dll+02728322 dig::UDDPropertyAdapter::setPropertyValue+00011682
[ 56] 0x00007ffe2c9fb3ab C:Program FilesPolyspaceR2021abinwin64dig.dll+01946539 dig::config::Widget::Impl::printHierarchy+00101019
[ 57] 0x00007ffe2c9eb9f3 C:Program FilesPolyspaceR2021abinwin64dig.dll+01882611 dig::config::Widget::Impl::printHierarchy+00037091
[ 58] 0x00007ffe2c9ff2f0 C:Program FilesPolyspaceR2021abinwin64dig.dll+01962736 dig::config::Widget::Impl::printHierarchy+00117216
[ 59] 0x00007ffeb071392a C:Program FilesPolyspaceR2021abinwin64iqm.dll+00801066 iqm::PackagedTaskPlugin::execute+00000074
[ 60] 0x00007ffeb083e1ed C:Program FilesPolyspaceR2021abinwin64mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 61] 0x00007ffeb06e65ec C:Program FilesPolyspaceR2021abinwin64iqm.dll+00615916 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 62] 0x00007ffeb06b71f0 C:Program FilesPolyspaceR2021abinwin64iqm.dll+00422384 iqm::Iqm::create+00007024
[ 63] 0x00007ffeb02c8eaf C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00102063 ioReadLine+00000463
[ 64] 0x00007ffeb02c8ca5 C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00101541 ioReadLine+00000165
[ 65] 0x00007ffeb02da761 C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00173921 mnGetCommandLineBuffer+00000289
[ 66] 0x00007ffeb02dabb7 C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00175031 mnParser+00000487
[ 67] 0x00007ffeb0843d86 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00540038 mcr_set_enableReadingFromStdin+00013894
[ 68] 0x00007ffeb07df5d3 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00128467 mcrFunctionSignature::set_signature+00107555
[ 69] 0x00007ffeb07fb550 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00243024 mcrFunctionSignature::set_signature+00222112
[ 70] 0x00007ffeb071392a C:Program FilesPolyspaceR2021abinwin64iqm.dll+00801066 iqm::PackagedTaskPlugin::execute+00000074
[ 71] 0x00007ffeb083e1ed C:Program FilesPolyspaceR2021abinwin64mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 72] 0x00007ffeb06e65ec C:Program FilesPolyspaceR2021abinwin64iqm.dll+00615916 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 73] 0x00007ffeb06b84bc C:Program FilesPolyspaceR2021abinwin64iqm.dll+00427196 iqm::Iqm::create+00011836
[ 74] 0x00007ffeb06b7c32 C:Program FilesPolyspaceR2021abinwin64iqm.dll+00425010 iqm::Iqm::create+00009650
[ 75] 0x00007ffeb08158fc C:Program FilesPolyspaceR2021abinwin64mcr.dll+00350460 mcrInstantiationError::operator=+00010428
[ 76] 0x00007ffeb08164ac C:Program FilesPolyspaceR2021abinwin64mcr.dll+00353452 mcrInstantiationError::operator=+00013420
[ 77] 0x00007ffeb0813ac0 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00342720 mcrInstantiationError::operator=+00002688
[ 78] 0x00007ffed84e9b9a C:Program FilesPolyspaceR2021abinwin64mwboost_thread-vc142-mt-x64-1_72.dll+00039834 mwboost::thread::swap+00000074
[ 79] 0x00007ffef6331bb2 C:WINDOWSSystem32ucrtbase.dll+00138162 configthreadlocale+00000146
[ 80] 0x00007ffef8067034 C:WINDOWSSystem32KERNEL32.DLL+00094260 BaseThreadInitThunk+00000020
[ 81] 0x00007ffef88c2651 C:WINDOWSSYSTEM32ntdll.dll+00337489 RtlUserThreadStart+00000033
Program State:
Most Recent Simulink Activity:
playSimulationAction : OK in editor 1 at Tue Apr 19 08:04:10 2022
Rename Block : OK in editor 1 at Tue Apr 19 08:04:06 2022
Create Subsystem : OK in editor 1 at Tue Apr 19 08:03:47 2022
Simulink:CreateSubsystemFromSelection : OK in editor 1 at Tue Apr 19 08:03:47 2022
Parameter Changes : OK in editor 1 at Tue Apr 19 08:03:42 2022
Parameter Changes : OK in editor 1 at Tue Apr 19 08:03:38 2022
Create Segment : OK in editor 1 at Tue Apr 19 08:03:33 2022
Create Segment : OK in editor 1 at Tue Apr 19 08:03:33 2022
Move : OK in editor 1 at Tue Apr 19 08:03:32 2022
Move : OK in editor 1 at Tue Apr 19 08:03:31 2022
Most Recent Tool Interaction:
Editor 1: tools idle, class diagram::markup::TextTool is most recently active tool since Tue Apr 19 08:03:51 2022 Simulink was working properly till yesterday. From yestertady I am getting Access violation detected error. I uninstalled and reinstalled the entire software but error still persist.
I have copy pasted the error bellow..
————————————————
MATLAB Log File
————————————————
——————————————————————————–
Access violation detected at 2022-04-19 08:04:11 +0530
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : windows-1252
Deployed : false
Graphics Driver : Unknown hardware
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 630 Version 27.20.100.8280 (2020-5-19)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 6257193
MATLAB Root : C:Program FilesPolyspaceR2021a
MATLAB Version : 9.10.0.1602886 (R2021a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Pro
Process ID : 3740
Processor ID : x86 Family 6 Model 158 Stepping 9, GenuineIntel
Session Key : d2d94843-e1bc-46b3-b24b-a620ede5a089
Window System : Version 10.0 (Build 19044)
Fault Count: 1
Abnormal termination:
Access violation
Current Thread: ‘MCR 0 interpreter thread’ id 10624
Register State (from fault):
RAX = 00007ffe55071ad0 RBX = 0000009384df91b0
RCX = 000001cd9304cb60 RDX = 000001cdb2ca0000
RSP = 0000009384df8688 RBP = 0000009384df87c0
RSI = 0000009384df8b70 RDI = 0000009384df91b0
R8 = 000001cdb2b94500 R9 = 0000000000000001
R10 = 0000000000008000 R11 = 0000009384df85f0
R12 = 0000000000000000 R13 = 0000000000000001
R14 = 000001cda5ffb7b0 R15 = 000001cdf9515a70
RIP = 00007ffe519456c6 EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ffe519456c6 C:Program FilesPolyspaceR2021abinwin64sl_graphical_classes.dll+06510278 BDConfigSetInfo::getRTWComponent+00000086
[ 1] 0x00007ffe513fcacf C:Program FilesPolyspaceR2021abinwin64sl_graphical_classes.dll+00969423 SLRootBDAPI::getRTWSystemTargetFile+00000063
[ 2] 0x00007ffe11a8e5b5 C:ProgramDataMATLABSupportPackagesR2021abinwin64simulink_pluginshardwaresupportpkgstargetstargetHiddenBlkInsertlibmwtargetHiddenBlkInsert.dll+00124341 sl_hmi::DashboardBlock::useLatestValueForValueParam+00032757
[ 3] 0x00007ffe4f6f0f36 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+04198198 slplugin::addCompBdSignal+00019302
[ 4] 0x00007ffe4f3ca7f7 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00894967 bdPostEngineEvent_nothrow+00001847
[ 5] 0x00007ffe4f3b69b0 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00813488 ssSetGrBlkMaxFreqHz+00004336
[ 6] 0x00007ffe4f3c60c9 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00876745 slplugin::MasterCompEvent::~MasterCompEvent+00004329
[ 7] 0x00007ffe4f3bad6d C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00830829 ssSetGrBlkMaxFreqHz+00021677
[ 8] 0x00007ffe4f3c7760 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00882528 slplugin::ProcessEngineEvent+00000336
[ 9] 0x00007ffe4f3ca041 C:Program FilesPolyspaceR2021abinwin64sl_engine_classes.dll+00892993 bdPostEngineEvent+00000209
[ 10] 0x00007ffe4301f280 C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03469952 SLOutportWithFcnCallInitPassThru::throwErrorOnInvalidICSrc+00002720
[ 11] 0x00007ffe43063dcb C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03751371 VarHiddenConnectionInfo::setNIForRemoval+00010315
[ 12] 0x00007ffe43063f88 C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03751816 VarHiddenConnectionInfo::setNIForRemoval+00010760
[ 13] 0x00007ffe4300722a C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03371562 SLCompDiagramImpl+00040618
[ 14] 0x00007ffe42ffd68a C:Program FilesPolyspaceR2021abinwin64sl_compile.dll+03331722 SLCompDiagramImpl+00000778
[ 15] 0x00007ffe521dd146 C:Program FilesPolyspaceR2021abinwin64sl_link_bd.dll+01102150 slink::CreateSlModelForLink+00000758
[ 16] 0x00007ffe521dce73 C:Program FilesPolyspaceR2021abinwin64sl_link_bd.dll+01101427 slink::CreateSlModelForLink+00000035
[ 17] 0x00007ffe54a73ee4 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+15810276 slstSetOutputPortRateID+00130612
[ 18] 0x00007ffe54a79d26 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+15834406 slstSetOutputPortRateID+00154742
[ 19] 0x00007ffe54a804a7 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+15860903 slstSetOutputPortRateID+00181239
[ 20] 0x00007ffe54abbcf2 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+16104690 slstSetOutputPortRateID+00425026
[ 21] 0x00007ffe53eb1022 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+03477538 ExitPauseInDebuggerMenuSim+00001346
[ 22] 0x00007ffe54683706 C:Program FilesPolyspaceR2021abinwin64libmwsimulink.dll+11679494 SLGlue::simulationStartPauseContinueNARMode+00000182
[ 23] 0x00007ffe20a65509 C:Program FilesPolyspaceR2021abinwin64sl_mi.dll+00349449 SLM3I::mi::initCosSFBlockOpenNotification+00074009
[ 24] 0x00007ffea50cd42e binwin64pgomcos_impl.dll+00381998
[ 25] 0x00007ffea50cc9d5 binwin64pgomcos_impl.dll+00379349
[ 26] 0x00007ffea50cc670 binwin64pgomcos_impl.dll+00378480
[ 27] 0x00007ffea510d543 binwin64pgomcos_impl.dll+00644419 mdMethodListAllFcn+00084595
[ 28] 0x00007ffea510d458 binwin64pgomcos_impl.dll+00644184 mdMethodListAllFcn+00084360
[ 29] 0x00007ffea510d33e binwin64pgomcos_impl.dll+00643902 mdMethodListAllFcn+00084078
[ 30] 0x00007ffea50d083d binwin64pgomcos_impl.dll+00395325 mdIsA+00002017
[ 31] 0x00007ffeb0554630 binwin64pgom_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 32] 0x00007ffeb05547b9 binwin64pgom_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 33] 0x00007ffea162a62e binwin64pgom_lxe.dll+00370222
[ 34] 0x00007ffea16aa093 binwin64pgom_lxe.dll+00893075 MathWorks::lxe::initializeFcn+00521059
[ 35] 0x00007ffec233f68c binwin64pgolibmx.dll+00652940 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000036
[ 36] 0x00007ffeb0345a75 binwin64pgom_interpreter.dll+00154229 mwboost::serialization::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >+00027445
[ 37] 0x00007ffeafb38bea C:Program FilesPolyspaceR2021abinwin64builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130
[ 38] 0x00007ffeb0564b1c binwin64pgom_dispatcher.dll+00150300 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136
[ 39] 0x00007ffeb0554630 binwin64pgom_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 40] 0x00007ffeb05547b9 binwin64pgom_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 41] 0x00007ffea162a62e binwin64pgom_lxe.dll+00370222
[ 42] 0x00007ffea1626436 binwin64pgom_lxe.dll+00353334
[ 43] 0x00007ffea162638f binwin64pgom_lxe.dll+00353167
[ 44] 0x00007ffeb032d550 binwin64pgom_interpreter.dll+00054608 inCallFcn+00000084
[ 45] 0x00007ffea178f126 binwin64pgom_lxe.dll+01831206 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00022786
[ 46] 0x00007ffeb03326e2 binwin64pgom_interpreter.dll+00075490 inCallFcnWithTrap+00000098
[ 47] 0x00007ffe2cb94bc9 C:Program FilesPolyspaceR2021abinwin64dig.dll+03623881 dig::FunctionInfoToArray+00000649
[ 48] 0x00007ffe2cb6121a C:Program FilesPolyspaceR2021abinwin64dig.dll+03412506 dig::ActionCallback::operator()+00000826
[ 49] 0x00007ffe2cb60efd C:Program FilesPolyspaceR2021abinwin64dig.dll+03411709 dig::ActionCallback::operator()+00000029
[ 50] 0x00007ffe2ca527d4 C:Program FilesPolyspaceR2021abinwin64dig.dll+02303956 dig::ActionService::executeActionImpl+00001732
[ 51] 0x00007ffe2ca5185f C:Program FilesPolyspaceR2021abinwin64dig.dll+02299999 dig::ActionService::executeAction+00000287
[ 52] 0x00007ffe2ca51e64 C:Program FilesPolyspaceR2021abinwin64dig.dll+02301540 dig::ActionService::executeAction+00000388
[ 53] 0x00007ffe2cbe6164 C:Program FilesPolyspaceR2021abinwin64dig.dll+03957092 dig::View::handleEvent+00001252
[ 54] 0x00007ffe2cbddc38 C:Program FilesPolyspaceR2021abinwin64dig.dll+03923000 dig::ToolStrip::handleEvent+00001704
[ 55] 0x00007ffe2caba182 C:Program FilesPolyspaceR2021abinwin64dig.dll+02728322 dig::UDDPropertyAdapter::setPropertyValue+00011682
[ 56] 0x00007ffe2c9fb3ab C:Program FilesPolyspaceR2021abinwin64dig.dll+01946539 dig::config::Widget::Impl::printHierarchy+00101019
[ 57] 0x00007ffe2c9eb9f3 C:Program FilesPolyspaceR2021abinwin64dig.dll+01882611 dig::config::Widget::Impl::printHierarchy+00037091
[ 58] 0x00007ffe2c9ff2f0 C:Program FilesPolyspaceR2021abinwin64dig.dll+01962736 dig::config::Widget::Impl::printHierarchy+00117216
[ 59] 0x00007ffeb071392a C:Program FilesPolyspaceR2021abinwin64iqm.dll+00801066 iqm::PackagedTaskPlugin::execute+00000074
[ 60] 0x00007ffeb083e1ed C:Program FilesPolyspaceR2021abinwin64mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 61] 0x00007ffeb06e65ec C:Program FilesPolyspaceR2021abinwin64iqm.dll+00615916 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 62] 0x00007ffeb06b71f0 C:Program FilesPolyspaceR2021abinwin64iqm.dll+00422384 iqm::Iqm::create+00007024
[ 63] 0x00007ffeb02c8eaf C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00102063 ioReadLine+00000463
[ 64] 0x00007ffeb02c8ca5 C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00101541 ioReadLine+00000165
[ 65] 0x00007ffeb02da761 C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00173921 mnGetCommandLineBuffer+00000289
[ 66] 0x00007ffeb02dabb7 C:Program FilesPolyspaceR2021abinwin64libmwbridge.dll+00175031 mnParser+00000487
[ 67] 0x00007ffeb0843d86 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00540038 mcr_set_enableReadingFromStdin+00013894
[ 68] 0x00007ffeb07df5d3 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00128467 mcrFunctionSignature::set_signature+00107555
[ 69] 0x00007ffeb07fb550 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00243024 mcrFunctionSignature::set_signature+00222112
[ 70] 0x00007ffeb071392a C:Program FilesPolyspaceR2021abinwin64iqm.dll+00801066 iqm::PackagedTaskPlugin::execute+00000074
[ 71] 0x00007ffeb083e1ed C:Program FilesPolyspaceR2021abinwin64mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 72] 0x00007ffeb06e65ec C:Program FilesPolyspaceR2021abinwin64iqm.dll+00615916 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 73] 0x00007ffeb06b84bc C:Program FilesPolyspaceR2021abinwin64iqm.dll+00427196 iqm::Iqm::create+00011836
[ 74] 0x00007ffeb06b7c32 C:Program FilesPolyspaceR2021abinwin64iqm.dll+00425010 iqm::Iqm::create+00009650
[ 75] 0x00007ffeb08158fc C:Program FilesPolyspaceR2021abinwin64mcr.dll+00350460 mcrInstantiationError::operator=+00010428
[ 76] 0x00007ffeb08164ac C:Program FilesPolyspaceR2021abinwin64mcr.dll+00353452 mcrInstantiationError::operator=+00013420
[ 77] 0x00007ffeb0813ac0 C:Program FilesPolyspaceR2021abinwin64mcr.dll+00342720 mcrInstantiationError::operator=+00002688
[ 78] 0x00007ffed84e9b9a C:Program FilesPolyspaceR2021abinwin64mwboost_thread-vc142-mt-x64-1_72.dll+00039834 mwboost::thread::swap+00000074
[ 79] 0x00007ffef6331bb2 C:WINDOWSSystem32ucrtbase.dll+00138162 configthreadlocale+00000146
[ 80] 0x00007ffef8067034 C:WINDOWSSystem32KERNEL32.DLL+00094260 BaseThreadInitThunk+00000020
[ 81] 0x00007ffef88c2651 C:WINDOWSSYSTEM32ntdll.dll+00337489 RtlUserThreadStart+00000033
Program State:
Most Recent Simulink Activity:
playSimulationAction : OK in editor 1 at Tue Apr 19 08:04:10 2022
Rename Block : OK in editor 1 at Tue Apr 19 08:04:06 2022
Create Subsystem : OK in editor 1 at Tue Apr 19 08:03:47 2022
Simulink:CreateSubsystemFromSelection : OK in editor 1 at Tue Apr 19 08:03:47 2022
Parameter Changes : OK in editor 1 at Tue Apr 19 08:03:42 2022
Parameter Changes : OK in editor 1 at Tue Apr 19 08:03:38 2022
Create Segment : OK in editor 1 at Tue Apr 19 08:03:33 2022
Create Segment : OK in editor 1 at Tue Apr 19 08:03:33 2022
Move : OK in editor 1 at Tue Apr 19 08:03:32 2022
Move : OK in editor 1 at Tue Apr 19 08:03:31 2022
Most Recent Tool Interaction:
Editor 1: tools idle, class diagram::markup::TextTool is most recently active tool since Tue Apr 19 08:03:51 2022 simulink, access MATLAB Answers — New Questions
How can I load a portion of a .tif file using readgeoraster?
I need to work with a .tif file containing elevation data relative to a region of the world. This file I got is too big to be loaded in MatLab and it saturates the memory, so I wanted to extract only a portion of it. I already know how to do it using imread, but since I want to collect all the information stored in the file I would prefer to use readgeoraster.
Do you know about a way to select a range of the picture to load using this function?
I can’t load the .tif file because it’s huge, but I can give you its info:
FileFormat: "GeoTIFF"
RasterSize: [85809 119862]
NumBands: 1
NativeFormat: "int16"
MissingDataIndicator: 32767
Categories: []
ColorType: "grayscale"
Colormap: []
RasterReference: []
CoordinateReferenceSystem: [1×1 geocrs]
Metadata: [1×1 struct]
Thanks in advance!I need to work with a .tif file containing elevation data relative to a region of the world. This file I got is too big to be loaded in MatLab and it saturates the memory, so I wanted to extract only a portion of it. I already know how to do it using imread, but since I want to collect all the information stored in the file I would prefer to use readgeoraster.
Do you know about a way to select a range of the picture to load using this function?
I can’t load the .tif file because it’s huge, but I can give you its info:
FileFormat: "GeoTIFF"
RasterSize: [85809 119862]
NumBands: 1
NativeFormat: "int16"
MissingDataIndicator: 32767
Categories: []
ColorType: "grayscale"
Colormap: []
RasterReference: []
CoordinateReferenceSystem: [1×1 geocrs]
Metadata: [1×1 struct]
Thanks in advance! I need to work with a .tif file containing elevation data relative to a region of the world. This file I got is too big to be loaded in MatLab and it saturates the memory, so I wanted to extract only a portion of it. I already know how to do it using imread, but since I want to collect all the information stored in the file I would prefer to use readgeoraster.
Do you know about a way to select a range of the picture to load using this function?
I can’t load the .tif file because it’s huge, but I can give you its info:
FileFormat: "GeoTIFF"
RasterSize: [85809 119862]
NumBands: 1
NativeFormat: "int16"
MissingDataIndicator: 32767
Categories: []
ColorType: "grayscale"
Colormap: []
RasterReference: []
CoordinateReferenceSystem: [1×1 geocrs]
Metadata: [1×1 struct]
Thanks in advance! matlab, elevation, tif file, readgeoraster, imread MATLAB Answers — New Questions
obtaining Geotiff file from JPG file
Hi!!!
i’m using this lines of code:
basename=’domaine’;
imagefile=[basename ‘.jpeg’];
RGB=imread(imagefile);
worldfile=getworldfilename(imagefile);
R=worldfileread(worldfile,’geographic’, size(RGB));
filename=[basename ‘.tif’];
geotiffwrite(filename, RGB, R)
and i’m getting this error:
Error using internal.map.checkfilename>checkDiskfilename (line 173)
Function WORLDFILEREAD was unable to find file ‘domaine.jpegw’.
How can i fix it? thanks in advanceHi!!!
i’m using this lines of code:
basename=’domaine’;
imagefile=[basename ‘.jpeg’];
RGB=imread(imagefile);
worldfile=getworldfilename(imagefile);
R=worldfileread(worldfile,’geographic’, size(RGB));
filename=[basename ‘.tif’];
geotiffwrite(filename, RGB, R)
and i’m getting this error:
Error using internal.map.checkfilename>checkDiskfilename (line 173)
Function WORLDFILEREAD was unable to find file ‘domaine.jpegw’.
How can i fix it? thanks in advance Hi!!!
i’m using this lines of code:
basename=’domaine’;
imagefile=[basename ‘.jpeg’];
RGB=imread(imagefile);
worldfile=getworldfilename(imagefile);
R=worldfileread(worldfile,’geographic’, size(RGB));
filename=[basename ‘.tif’];
geotiffwrite(filename, RGB, R)
and i’m getting this error:
Error using internal.map.checkfilename>checkDiskfilename (line 173)
Function WORLDFILEREAD was unable to find file ‘domaine.jpegw’.
How can i fix it? thanks in advance jpg to tiff MATLAB Answers — New Questions
How to use the gradient with respect to a given vector?
I am trying to implement an algorithm that uses the matrices R – ( m x m matrix) and K – ( n x n ) that are the inputs of a function f(R,K). I am trying to use a starting point z = [r,n] where r is the vectorization of R and n is the vectorization of K. Starting values of R and K are given thus z is also known. I need to calculate r(z) = [gradient_r(f(R,K)) gradient_n(f(R,K))].
Once this is calculated I will do more calculations and use my next starting point in the algorithm, so z is trying to optimize to r(z) = 0 which is the Kurush-Khan-Tucker condition. Thus optimizing my matrices R and K in the process.
I do not know whether I should use numerical or symbolic gradient or even if what I am trying to do is possible. The paper I am referencing appears to use this method.
I have been trying something like this:
syms z [48 1]
r = z([1:16]);
n = z([17:48]);
R_hat = Dr*r;
R = reshape(R_hat, [4,4]);
K_hat = Dn*n;
K = reshape(K_hat, [8,8]) + eye(8);
g = solve(gradient(ft_RK));
Any guidance would be greatly appreciated.I am trying to implement an algorithm that uses the matrices R – ( m x m matrix) and K – ( n x n ) that are the inputs of a function f(R,K). I am trying to use a starting point z = [r,n] where r is the vectorization of R and n is the vectorization of K. Starting values of R and K are given thus z is also known. I need to calculate r(z) = [gradient_r(f(R,K)) gradient_n(f(R,K))].
Once this is calculated I will do more calculations and use my next starting point in the algorithm, so z is trying to optimize to r(z) = 0 which is the Kurush-Khan-Tucker condition. Thus optimizing my matrices R and K in the process.
I do not know whether I should use numerical or symbolic gradient or even if what I am trying to do is possible. The paper I am referencing appears to use this method.
I have been trying something like this:
syms z [48 1]
r = z([1:16]);
n = z([17:48]);
R_hat = Dr*r;
R = reshape(R_hat, [4,4]);
K_hat = Dn*n;
K = reshape(K_hat, [8,8]) + eye(8);
g = solve(gradient(ft_RK));
Any guidance would be greatly appreciated. I am trying to implement an algorithm that uses the matrices R – ( m x m matrix) and K – ( n x n ) that are the inputs of a function f(R,K). I am trying to use a starting point z = [r,n] where r is the vectorization of R and n is the vectorization of K. Starting values of R and K are given thus z is also known. I need to calculate r(z) = [gradient_r(f(R,K)) gradient_n(f(R,K))].
Once this is calculated I will do more calculations and use my next starting point in the algorithm, so z is trying to optimize to r(z) = 0 which is the Kurush-Khan-Tucker condition. Thus optimizing my matrices R and K in the process.
I do not know whether I should use numerical or symbolic gradient or even if what I am trying to do is possible. The paper I am referencing appears to use this method.
I have been trying something like this:
syms z [48 1]
r = z([1:16]);
n = z([17:48]);
R_hat = Dr*r;
R = reshape(R_hat, [4,4]);
K_hat = Dn*n;
K = reshape(K_hat, [8,8]) + eye(8);
g = solve(gradient(ft_RK));
Any guidance would be greatly appreciated. gradient, vectorization, optimization MATLAB Answers — New Questions
Length of X in in ARX/ARMAX/ARIMAX
Hi,
I want to an ARX1 model where X is an Indicator function which is 1 during weekends and 0 during weekdays. I have daily data starting on a Monday from January 2 until December 31 (364 obs). I created my X as follows:
X = repmat([0 0 0 0 0 1 1]’, 52, 1);
Hence X has also 364 obs. However when I now estimate my model I get an error saying that X must contact at least 365 obs.
I know this has something to do with a X0, however I am not sure what this X0 should be (to be honest I’m not really sure why I need X0). Adding a single 0 or 1 at the beginning of my X does the trick but can someone please tell me whether this should be a 0 or a 1 (even though results are almost the same) and whether my AR1 and X will still be correctly ‘aligned’ after adding a single observation at the beginning of my X. That is, will all ‘1’s be corresponding to weekends and ‘0’s to weekdays.
Thank you!Hi,
I want to an ARX1 model where X is an Indicator function which is 1 during weekends and 0 during weekdays. I have daily data starting on a Monday from January 2 until December 31 (364 obs). I created my X as follows:
X = repmat([0 0 0 0 0 1 1]’, 52, 1);
Hence X has also 364 obs. However when I now estimate my model I get an error saying that X must contact at least 365 obs.
I know this has something to do with a X0, however I am not sure what this X0 should be (to be honest I’m not really sure why I need X0). Adding a single 0 or 1 at the beginning of my X does the trick but can someone please tell me whether this should be a 0 or a 1 (even though results are almost the same) and whether my AR1 and X will still be correctly ‘aligned’ after adding a single observation at the beginning of my X. That is, will all ‘1’s be corresponding to weekends and ‘0’s to weekdays.
Thank you! Hi,
I want to an ARX1 model where X is an Indicator function which is 1 during weekends and 0 during weekdays. I have daily data starting on a Monday from January 2 until December 31 (364 obs). I created my X as follows:
X = repmat([0 0 0 0 0 1 1]’, 52, 1);
Hence X has also 364 obs. However when I now estimate my model I get an error saying that X must contact at least 365 obs.
I know this has something to do with a X0, however I am not sure what this X0 should be (to be honest I’m not really sure why I need X0). Adding a single 0 or 1 at the beginning of my X does the trick but can someone please tell me whether this should be a 0 or a 1 (even though results are almost the same) and whether my AR1 and X will still be correctly ‘aligned’ after adding a single observation at the beginning of my X. That is, will all ‘1’s be corresponding to weekends and ‘0’s to weekdays.
Thank you! armax, arimax, length of vector, exogenous input, exogenous predictor, indicator funcion, weekday, weekends MATLAB Answers — New Questions
Purpose of software loopback in IO334_ad_da_hdlc.slx Model for Speedgoat IO334 Analog Interface.
I am using Speedgoat Performance P3 with IO334.
I have found an example demonstrating the use of Analog Interface (IO334_ad_da_hdlc.slx).
I have managed to generate HDL code and succesfully ran the model on Speedgoat. In this particular model the sine signals are supposed to be generated on the FPGA (there is internal sine generator inside DUT), send to AO channels and then routed by external wiring back to the AI channels.
However, I dont understand what kind of use is to loopback "data" and "trigger" label in IO334_ad_da_hdlc.slx. Input ports (AD_xx, AD_valid_X_X) and output ports (DA_xx, AD_Trigger_X_X) are mapped to the respective AI and AO interfaces via HDL advisor and external wiring connects signals from AOs to AIs. Can you clarify what is the purpose of this software loopback in the model?I am using Speedgoat Performance P3 with IO334.
I have found an example demonstrating the use of Analog Interface (IO334_ad_da_hdlc.slx).
I have managed to generate HDL code and succesfully ran the model on Speedgoat. In this particular model the sine signals are supposed to be generated on the FPGA (there is internal sine generator inside DUT), send to AO channels and then routed by external wiring back to the AI channels.
However, I dont understand what kind of use is to loopback "data" and "trigger" label in IO334_ad_da_hdlc.slx. Input ports (AD_xx, AD_valid_X_X) and output ports (DA_xx, AD_Trigger_X_X) are mapped to the respective AI and AO interfaces via HDL advisor and external wiring connects signals from AOs to AIs. Can you clarify what is the purpose of this software loopback in the model? I am using Speedgoat Performance P3 with IO334.
I have found an example demonstrating the use of Analog Interface (IO334_ad_da_hdlc.slx).
I have managed to generate HDL code and succesfully ran the model on Speedgoat. In this particular model the sine signals are supposed to be generated on the FPGA (there is internal sine generator inside DUT), send to AO channels and then routed by external wiring back to the AI channels.
However, I dont understand what kind of use is to loopback "data" and "trigger" label in IO334_ad_da_hdlc.slx. Input ports (AD_xx, AD_valid_X_X) and output ports (DA_xx, AD_Trigger_X_X) are mapped to the respective AI and AO interfaces via HDL advisor and external wiring connects signals from AOs to AIs. Can you clarify what is the purpose of this software loopback in the model? speedgoat, hdl coder, real-time MATLAB Answers — New Questions