Category: News
TI C2000 f28388d SPI Tx and SPI Rx with multiple chip select GPIOs
My application requires connecting SPI to multiple devices using multiple chip select GPIOs. I tried to make the "Chip select pin" as a variable but it didn’t work. How can I implement this use case with multiple chip selects?My application requires connecting SPI to multiple devices using multiple chip select GPIOs. I tried to make the "Chip select pin" as a variable but it didn’t work. How can I implement this use case with multiple chip selects? My application requires connecting SPI to multiple devices using multiple chip select GPIOs. I tried to make the "Chip select pin" as a variable but it didn’t work. How can I implement this use case with multiple chip selects? spi, tms320f28388d MATLAB Answers — New Questions
Invalid setting in ‘Model’ for parameter ‘Gain’.
I am trying to tune a PID controller for controlling a plant model buit in Simulink. My aim is to obtain the gains of the PID controller using an optimization technique whose code is written in a script file. So, the objective function is calculated by obtaining the loged values from the simulink model. While I run my code, it always shows the error: Invalid setting in ‘Model/PID/Gain’ for parameter ‘Gain’, where the simulink file’s name is Model. Since I am tuning the gains using optimization, the are changing in each iteration. Kp, Ki, and Kd are the gains. The error is: Invalid setting in ‘Model/PID/Gain’ for parameter ‘Gain’.
function objective_func = F3(x)
Kp=x(1)
Ki=x(2)
Kd=x(3)
mdl = "Model";
open_system(mdl)
in = Simulink.SimulationInput(mdl)
out = sim(in)
simout = out.J(3001) %objective function value
objective_func=simout;
endI am trying to tune a PID controller for controlling a plant model buit in Simulink. My aim is to obtain the gains of the PID controller using an optimization technique whose code is written in a script file. So, the objective function is calculated by obtaining the loged values from the simulink model. While I run my code, it always shows the error: Invalid setting in ‘Model/PID/Gain’ for parameter ‘Gain’, where the simulink file’s name is Model. Since I am tuning the gains using optimization, the are changing in each iteration. Kp, Ki, and Kd are the gains. The error is: Invalid setting in ‘Model/PID/Gain’ for parameter ‘Gain’.
function objective_func = F3(x)
Kp=x(1)
Ki=x(2)
Kd=x(3)
mdl = "Model";
open_system(mdl)
in = Simulink.SimulationInput(mdl)
out = sim(in)
simout = out.J(3001) %objective function value
objective_func=simout;
end I am trying to tune a PID controller for controlling a plant model buit in Simulink. My aim is to obtain the gains of the PID controller using an optimization technique whose code is written in a script file. So, the objective function is calculated by obtaining the loged values from the simulink model. While I run my code, it always shows the error: Invalid setting in ‘Model/PID/Gain’ for parameter ‘Gain’, where the simulink file’s name is Model. Since I am tuning the gains using optimization, the are changing in each iteration. Kp, Ki, and Kd are the gains. The error is: Invalid setting in ‘Model/PID/Gain’ for parameter ‘Gain’.
function objective_func = F3(x)
Kp=x(1)
Ki=x(2)
Kd=x(3)
mdl = "Model";
open_system(mdl)
in = Simulink.SimulationInput(mdl)
out = sim(in)
simout = out.J(3001) %objective function value
objective_func=simout;
end simulink, gain block, optimization MATLAB Answers — New Questions
Interpolation of two-dimensional within a given space window
Dear all
I am attaching a dataset, called "Points.txt", where the first and second columns represent the spatial coordinates along the x- and y-th directions, respectively, and the third column the value of a variable at each listed pair of points (x,y). I was wondering which could be a good way to increase the number of points mainly inside the hexagonal shape within the current listed points are restricted to:
I have tried the following:
pgon=nsidedpoly(6,’Center’,[0 0],’SideLength’,1);
%% Let’s rearrange the data associated to the interlayer isotropic exchange, Jinter
% Let’s load the preliminar data
Jinter=cell2mat(struct2cell(load(strcat(pwd,’Preliminar-DataJinter.mat’))));
% Let’s construct the unit vectors of the in-plane unit cell
x=unique(Jinter(:,1));
y=unique(Jinter(:,2));
a1_points=[max(x) 0];
a2_points=[-0.5 max(y)];
a1_modulus=sqrt(dot(a1_points,a1_points));
a2_modulus=sqrt(dot(a2_points,a2_points));
a1=a1_points./a1_modulus;
a2=a2_points./a2_modulus;
% Let’s construct the supercell for Jinter
diff_y=max(y)-min(y);
counter=0;
for dy=[-1 0 1]
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)++dy*[0 1]*diff_y)~=any(Jinter(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+dy*[0 1]*diff_y;
Jinter_extended(counter,3)=Jinter(i,3);
end
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[a1(1)+abs(a2(1)) abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[a1(1)+abs(a2(1)) abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[a1(1)+abs(a2(1)) -abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[a1(1)+abs(a2(1)) -abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) -abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) -abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
clear a1 a2 a1_modulus a2_modulus a1_points a2_points Jinter diff_y x y dy
% Let’s plot it
u17=figure(17)
scatter(Jinter_extended(:,1),Jinter_extended(:,2),[],Jinter_extended(:,3),’o’,’filled’);
colormap(gca,bluewhitered(256));
clim([min(Jinter_extended(:,3)) max(Jinter_extended(:,3))]);
clr17=colorbar;
box on;
pbaspect([1 6/4 1]);
clear u17 clr17
% Now, let’s interpolate data
x_extended=linspace(min(Jinter_extended(:,1)),max(Jinter_extended(:,1)));
y_extended=linspace(min(Jinter_extended(:,2)),max(Jinter_extended(:,2)));
Jinter_interpolated=RegularizeData3D(Jinter_extended(:,1),Jinter_extended(:,2),Jinter_extended(:,3),x_extended,y_extended,’interp’,’bicubic’,’smoothness’,1e-4);
x_interpolation=linspace(-1,1,201);
y_interpolation=linspace(-sqrt(3)/2,sqrt(3)/2,201);
[X,Y]=meshgrid(x_interpolation,y_interpolation);
interpolated_Jinter=interp2(x_extended,y_extended,Jinter_interpolated,X,Y,’cubic’);
clear X Y Jinter_interpolated x_extended y_extended Jinter_extended
% Let’s plot it
u18=figure(18)
uimagesc(x_interpolation,y_interpolation,interpolated_Jinter);
colormap(gca,bluewhitered(256));
% hold on
axis xy;
% plot(pgon);
clim([min(min(interpolated_Jinter)) max(max(interpolated_Jinter))]);
clr18=colorbar;
box on;
pbaspect([1 sqrt(3)/2 1]);
clear u18 clr18
% Now, let’s rearrange and save the data
x_intermediate=linspace(-100,100,201);
y_intermediate=linspace(-100,100,201);
counter=0;
for i=1:length(x_interpolation)
for j=1:length(y_interpolation)
counter=counter+1;
Jinter_save(counter,1)=x_intermediate(i);
Jinter_save(counter,2)=y_intermediate(j);
Jinter_save(counter,3)=interpolated_Jinter(i,j);
end
end
writematrix(Jinter_save,strcat(pwd,’Interpolated-DataInterpolated_J_Inter.txt’),’Delimiter’,’space’);
clear interpolated_Jinter Jinter_save x_interpolation y_interpolation counter i j x_intermediate y_intermediate
where the "Jinter.mat" is exactly the same dataset as in "Points.txt". The problem with this is that, for example, if I take a look at the generated "Interpolated_J_Inter.txt", the value for (0,0) differs notably.
Any ideas?Dear all
I am attaching a dataset, called "Points.txt", where the first and second columns represent the spatial coordinates along the x- and y-th directions, respectively, and the third column the value of a variable at each listed pair of points (x,y). I was wondering which could be a good way to increase the number of points mainly inside the hexagonal shape within the current listed points are restricted to:
I have tried the following:
pgon=nsidedpoly(6,’Center’,[0 0],’SideLength’,1);
%% Let’s rearrange the data associated to the interlayer isotropic exchange, Jinter
% Let’s load the preliminar data
Jinter=cell2mat(struct2cell(load(strcat(pwd,’Preliminar-DataJinter.mat’))));
% Let’s construct the unit vectors of the in-plane unit cell
x=unique(Jinter(:,1));
y=unique(Jinter(:,2));
a1_points=[max(x) 0];
a2_points=[-0.5 max(y)];
a1_modulus=sqrt(dot(a1_points,a1_points));
a2_modulus=sqrt(dot(a2_points,a2_points));
a1=a1_points./a1_modulus;
a2=a2_points./a2_modulus;
% Let’s construct the supercell for Jinter
diff_y=max(y)-min(y);
counter=0;
for dy=[-1 0 1]
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)++dy*[0 1]*diff_y)~=any(Jinter(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+dy*[0 1]*diff_y;
Jinter_extended(counter,3)=Jinter(i,3);
end
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[a1(1)+abs(a2(1)) abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[a1(1)+abs(a2(1)) abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[a1(1)+abs(a2(1)) -abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[a1(1)+abs(a2(1)) -abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) -abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) -abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
clear a1 a2 a1_modulus a2_modulus a1_points a2_points Jinter diff_y x y dy
% Let’s plot it
u17=figure(17)
scatter(Jinter_extended(:,1),Jinter_extended(:,2),[],Jinter_extended(:,3),’o’,’filled’);
colormap(gca,bluewhitered(256));
clim([min(Jinter_extended(:,3)) max(Jinter_extended(:,3))]);
clr17=colorbar;
box on;
pbaspect([1 6/4 1]);
clear u17 clr17
% Now, let’s interpolate data
x_extended=linspace(min(Jinter_extended(:,1)),max(Jinter_extended(:,1)));
y_extended=linspace(min(Jinter_extended(:,2)),max(Jinter_extended(:,2)));
Jinter_interpolated=RegularizeData3D(Jinter_extended(:,1),Jinter_extended(:,2),Jinter_extended(:,3),x_extended,y_extended,’interp’,’bicubic’,’smoothness’,1e-4);
x_interpolation=linspace(-1,1,201);
y_interpolation=linspace(-sqrt(3)/2,sqrt(3)/2,201);
[X,Y]=meshgrid(x_interpolation,y_interpolation);
interpolated_Jinter=interp2(x_extended,y_extended,Jinter_interpolated,X,Y,’cubic’);
clear X Y Jinter_interpolated x_extended y_extended Jinter_extended
% Let’s plot it
u18=figure(18)
uimagesc(x_interpolation,y_interpolation,interpolated_Jinter);
colormap(gca,bluewhitered(256));
% hold on
axis xy;
% plot(pgon);
clim([min(min(interpolated_Jinter)) max(max(interpolated_Jinter))]);
clr18=colorbar;
box on;
pbaspect([1 sqrt(3)/2 1]);
clear u18 clr18
% Now, let’s rearrange and save the data
x_intermediate=linspace(-100,100,201);
y_intermediate=linspace(-100,100,201);
counter=0;
for i=1:length(x_interpolation)
for j=1:length(y_interpolation)
counter=counter+1;
Jinter_save(counter,1)=x_intermediate(i);
Jinter_save(counter,2)=y_intermediate(j);
Jinter_save(counter,3)=interpolated_Jinter(i,j);
end
end
writematrix(Jinter_save,strcat(pwd,’Interpolated-DataInterpolated_J_Inter.txt’),’Delimiter’,’space’);
clear interpolated_Jinter Jinter_save x_interpolation y_interpolation counter i j x_intermediate y_intermediate
where the "Jinter.mat" is exactly the same dataset as in "Points.txt". The problem with this is that, for example, if I take a look at the generated "Interpolated_J_Inter.txt", the value for (0,0) differs notably.
Any ideas? Dear all
I am attaching a dataset, called "Points.txt", where the first and second columns represent the spatial coordinates along the x- and y-th directions, respectively, and the third column the value of a variable at each listed pair of points (x,y). I was wondering which could be a good way to increase the number of points mainly inside the hexagonal shape within the current listed points are restricted to:
I have tried the following:
pgon=nsidedpoly(6,’Center’,[0 0],’SideLength’,1);
%% Let’s rearrange the data associated to the interlayer isotropic exchange, Jinter
% Let’s load the preliminar data
Jinter=cell2mat(struct2cell(load(strcat(pwd,’Preliminar-DataJinter.mat’))));
% Let’s construct the unit vectors of the in-plane unit cell
x=unique(Jinter(:,1));
y=unique(Jinter(:,2));
a1_points=[max(x) 0];
a2_points=[-0.5 max(y)];
a1_modulus=sqrt(dot(a1_points,a1_points));
a2_modulus=sqrt(dot(a2_points,a2_points));
a1=a1_points./a1_modulus;
a2=a2_points./a2_modulus;
% Let’s construct the supercell for Jinter
diff_y=max(y)-min(y);
counter=0;
for dy=[-1 0 1]
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)++dy*[0 1]*diff_y)~=any(Jinter(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+dy*[0 1]*diff_y;
Jinter_extended(counter,3)=Jinter(i,3);
end
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[a1(1)+abs(a2(1)) abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[a1(1)+abs(a2(1)) abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[a1(1)+abs(a2(1)) -abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[a1(1)+abs(a2(1)) -abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
counter=length(Jinter_extended(:,1));
for i=1:length(Jinter(:,1))
if (Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) -abs(a2(2))])~=any(Jinter_extended(:,1:2))
counter=counter+1;
Jinter_extended(counter,1:2)=Jinter(i,1:2)+[-(a1(1)+abs(a2(1))) -abs(a2(2))];
Jinter_extended(counter,3)=Jinter(i,3);
end
end
clear a1 a2 a1_modulus a2_modulus a1_points a2_points Jinter diff_y x y dy
% Let’s plot it
u17=figure(17)
scatter(Jinter_extended(:,1),Jinter_extended(:,2),[],Jinter_extended(:,3),’o’,’filled’);
colormap(gca,bluewhitered(256));
clim([min(Jinter_extended(:,3)) max(Jinter_extended(:,3))]);
clr17=colorbar;
box on;
pbaspect([1 6/4 1]);
clear u17 clr17
% Now, let’s interpolate data
x_extended=linspace(min(Jinter_extended(:,1)),max(Jinter_extended(:,1)));
y_extended=linspace(min(Jinter_extended(:,2)),max(Jinter_extended(:,2)));
Jinter_interpolated=RegularizeData3D(Jinter_extended(:,1),Jinter_extended(:,2),Jinter_extended(:,3),x_extended,y_extended,’interp’,’bicubic’,’smoothness’,1e-4);
x_interpolation=linspace(-1,1,201);
y_interpolation=linspace(-sqrt(3)/2,sqrt(3)/2,201);
[X,Y]=meshgrid(x_interpolation,y_interpolation);
interpolated_Jinter=interp2(x_extended,y_extended,Jinter_interpolated,X,Y,’cubic’);
clear X Y Jinter_interpolated x_extended y_extended Jinter_extended
% Let’s plot it
u18=figure(18)
uimagesc(x_interpolation,y_interpolation,interpolated_Jinter);
colormap(gca,bluewhitered(256));
% hold on
axis xy;
% plot(pgon);
clim([min(min(interpolated_Jinter)) max(max(interpolated_Jinter))]);
clr18=colorbar;
box on;
pbaspect([1 sqrt(3)/2 1]);
clear u18 clr18
% Now, let’s rearrange and save the data
x_intermediate=linspace(-100,100,201);
y_intermediate=linspace(-100,100,201);
counter=0;
for i=1:length(x_interpolation)
for j=1:length(y_interpolation)
counter=counter+1;
Jinter_save(counter,1)=x_intermediate(i);
Jinter_save(counter,2)=y_intermediate(j);
Jinter_save(counter,3)=interpolated_Jinter(i,j);
end
end
writematrix(Jinter_save,strcat(pwd,’Interpolated-DataInterpolated_J_Inter.txt’),’Delimiter’,’space’);
clear interpolated_Jinter Jinter_save x_interpolation y_interpolation counter i j x_intermediate y_intermediate
where the "Jinter.mat" is exactly the same dataset as in "Points.txt". The problem with this is that, for example, if I take a look at the generated "Interpolated_J_Inter.txt", the value for (0,0) differs notably.
Any ideas? interpolate two-dimensional data MATLAB Answers — New Questions
Urgent Request for Assistance: Overcoming Verification Challenges in AI Cloud Partner Program
Hello Community,
I am reaching out as urgently seeking guidance or insights from those familiar with the challenges of the AI Cloud Partner Program or anyone who can offer assistance. We are currently handling two domains:
main domain (A): Our actively managed Sales Intelligence SaaS.email domain (B): Previously active service, now pivoted to main domain and used internally.
Over the past month, we have faced significant hurdles in the verification process of the AI Cloud Partner Program, despite rigorously following all outlined steps from Microsoft and various community resources. Here’s what we have undertaken:
Contact Information: We transitioned from using generic email addresses like contact@ or marketing@ to personal accounts after learning they could lead to application rejections.
Documentation Submission: Initially, we provided receipts as Namecheap does not issue invoices. After realizing that only invoices were acceptable, we ceased submitting receipts.
Domain Hosting and Privacy: We meticulously matched the contact profile details—company name, address, contact information—down to case sensitivity on our email domain (B), which we host directly. Furthermore, we disabled privacy features in WHOIS to expose my personal information, prioritizing compliance over privacy.
Support Interaction: We are actively engaging with the partner support through three ongoing support tickets, attempting to resolve our issues. Separately, we reached out to Microsoft’s Partner Twitter handle but have not received a response.
Parallel Certification Attempt: Our application to the ISV Success program was stopped because our account showed “multiple failed attempts,” according to their system. This has blocked us from proceeding with our Account Verification.
Despite these efforts, we are still awaiting a final decision from the AI Cloud Partner Program, now well beyond the initial promise of 3-5 business days, extending over ten days.
The documentation requirements for the ISV Success are identical to those of the AI Cloud Partner Program, heightening our concern as both are crucial for our business operations, which are currently under severe strain.
We are in dire need of a more personalized response to understand possible missteps or further required actions. The generic responses from the partner center have been unhelpful and frustrating.
Does anyone have any insights or can offer assistance on how to move forward in this situation? Has anyone else faced similar verification challenges?
Thank you in advance for your support and guidance.
Hello Community, I am reaching out as urgently seeking guidance or insights from those familiar with the challenges of the AI Cloud Partner Program or anyone who can offer assistance. We are currently handling two domains:main domain (A): Our actively managed Sales Intelligence SaaS.email domain (B): Previously active service, now pivoted to main domain and used internally. Over the past month, we have faced significant hurdles in the verification process of the AI Cloud Partner Program, despite rigorously following all outlined steps from Microsoft and various community resources. Here’s what we have undertaken:Contact Information: We transitioned from using generic email addresses like contact@ or marketing@ to personal accounts after learning they could lead to application rejections.Documentation Submission: Initially, we provided receipts as Namecheap does not issue invoices. After realizing that only invoices were acceptable, we ceased submitting receipts.Domain Hosting and Privacy: We meticulously matched the contact profile details—company name, address, contact information—down to case sensitivity on our email domain (B), which we host directly. Furthermore, we disabled privacy features in WHOIS to expose my personal information, prioritizing compliance over privacy.Support Interaction: We are actively engaging with the partner support through three ongoing support tickets, attempting to resolve our issues. Separately, we reached out to Microsoft’s Partner Twitter handle but have not received a response.Parallel Certification Attempt: Our application to the ISV Success program was stopped because our account showed “multiple failed attempts,” according to their system. This has blocked us from proceeding with our Account Verification.Despite these efforts, we are still awaiting a final decision from the AI Cloud Partner Program, now well beyond the initial promise of 3-5 business days, extending over ten days.The documentation requirements for the ISV Success are identical to those of the AI Cloud Partner Program, heightening our concern as both are crucial for our business operations, which are currently under severe strain. We are in dire need of a more personalized response to understand possible missteps or further required actions. The generic responses from the partner center have been unhelpful and frustrating.Does anyone have any insights or can offer assistance on how to move forward in this situation? Has anyone else faced similar verification challenges?Thank you in advance for your support and guidance. Read More
How to find our TPIN ID
How to find our Microsoft partner TPIN id.
Raised ticket from partner portal but they have responded its out of their scope.
How to find our Microsoft partner TPIN id. Raised ticket from partner portal but they have responded its out of their scope. Read More
Send Message as User/Bot Using Graph API Based on User’s Email Existence in Microsoft Teams Channel
If a user’s email exists in the teams channel, the message should be sent as a reply from that user.If the user’s email doesn’t exist in the channel, the message should be sent from a bot or a service account.
Here is a rough outline of what I’m trying to accomplish:
Check if the email exists in the teams channel.If it does, send the message as the user.If it doesn’t, send the message as a bot or service account.
I’m working on a project that involves sending messages to a Microsoft Teams channel using the Microsoft Graph API. I have a specific requirement where:If a user’s email exists in the teams channel, the message should be sent as a reply from that user.If the user’s email doesn’t exist in the channel, the message should be sent from a bot or a service account.I’m using user’s token for authentication. Is there any way to achieve this conditional sending of messages using the Microsoft Graph API?Here is a rough outline of what I’m trying to accomplish:Check if the email exists in the teams channel.If it does, send the message as the user.If it doesn’t, send the message as a bot or service account.Any guidance or examples on how to implement this would be greatly appreciated. Thank you! Read More
Is there any power point certification exams & courses or excel certification exams & courses
Hi,
We are a learning partners from India.
Our few of clients inquiring us for powerpoint certification exams & courses and also excel certification exams & courses.
Kindly advise us on the same.
Thanks and regards
Hi, We are a learning partners from India. Our few of clients inquiring us for powerpoint certification exams & courses and also excel certification exams & courses. Kindly advise us on the same. Thanks and regards Read More
Simulink generated code optimization – CPU Load
Hi all,
I’m successfully generating code from the Simulink model. This code substitute manual one with the same function. Code is the integrated with the rest of the manual code, flashed to the HW and running. This substituting of the manual code part with the generated one increses the CPU Load. When I’m checking the Code generation setting, basic targets are RAM minimazing or Execution speed mazimazing. Non of these will directly reduce the CPU Load I suppose.
So I’d like to ask you, do you know what Advanced or Detailed Code generation Optimization setting can reduce the CPU Load? I’m attaching screenshots of the current setting.
And possibly follow up question – is there any metric which can estimate affect on the CPU Load without need of flashing the integrated code to the HW?
Thank you for your help in advance, have a nice day!
OldrichHi all,
I’m successfully generating code from the Simulink model. This code substitute manual one with the same function. Code is the integrated with the rest of the manual code, flashed to the HW and running. This substituting of the manual code part with the generated one increses the CPU Load. When I’m checking the Code generation setting, basic targets are RAM minimazing or Execution speed mazimazing. Non of these will directly reduce the CPU Load I suppose.
So I’d like to ask you, do you know what Advanced or Detailed Code generation Optimization setting can reduce the CPU Load? I’m attaching screenshots of the current setting.
And possibly follow up question – is there any metric which can estimate affect on the CPU Load without need of flashing the integrated code to the HW?
Thank you for your help in advance, have a nice day!
Oldrich Hi all,
I’m successfully generating code from the Simulink model. This code substitute manual one with the same function. Code is the integrated with the rest of the manual code, flashed to the HW and running. This substituting of the manual code part with the generated one increses the CPU Load. When I’m checking the Code generation setting, basic targets are RAM minimazing or Execution speed mazimazing. Non of these will directly reduce the CPU Load I suppose.
So I’d like to ask you, do you know what Advanced or Detailed Code generation Optimization setting can reduce the CPU Load? I’m attaching screenshots of the current setting.
And possibly follow up question – is there any metric which can estimate affect on the CPU Load without need of flashing the integrated code to the HW?
Thank you for your help in advance, have a nice day!
Oldrich embedded coder MATLAB Answers — New Questions
Plotting a system of fractional order differential equations
Hi. I have been trying to plot fractional order differential equations with MATLAB. I have tried to use this technique called "Predictor-Corrector Method" and got a code listing using AI. The code seems to be giving the plots, though they do not match with the expected results. I will attach the code listing below. But my question is how to actually plot such systems? Is there a standard method in-built, or a widely accepted add-on/package? Thanks. “`% Parameters
alpha = 0.9;
LAMBDA = 3;
mu = 0.4;
beta = 0.004;
gamma = 0.0005;
m = 0.03;
n = 0.006;
delta = 0.02;
rho = 0.003;
h = 0.1; % Time step
T = 300; % Total time
% Time steps
time = 0:h:T;
time_steps = length(time);
% Initial conditions
s = zeros(1, time_steps);
i = zeros(1, time_steps);
r = zeros(1, time_steps);
s(1) = 85;
i(1) = 3;
r(1) = 0;
% Predictor-Corrector Method
for k = 1:(time_steps – 1)
% Predictor step (Adams-Bashforth)
if k == 1
ds_pred = h * (LAMBDA – mu * s(k) – (beta * s(k) * i(k)) / (1 + gamma * i(k)));
di_pred = h * ((beta * s(k) * i(k)) / (1 + gamma * i(k)) – (m * i(k)) / (1 + n * i(k)) – (mu + delta + rho) * i(k));
dr_pred = h * ((m * i(k)) / (1 + n * i(k)) + delta * i(k) – mu * r(k));
else
ds_pred = h / 2 * ((LAMBDA – mu * s(k) – (beta * s(k) * i(k)) / (1 + gamma * i(k))) + …
(LAMBDA – mu * s(k-1) – (beta * s(k-1) * i(k-1)) / (1 + gamma * i(k-1))));
di_pred = h / 2 * (((beta * s(k) * i(k)) / (1 + gamma * i(k)) – (m * i(k)) / (1 + n * i(k)) – (mu + delta + rho) * i(k)) + …
((beta * s(k-1) * i(k-1)) / (1 + gamma * i(k-1)) – (m * i(k-1)) / (1 + n * i(k-1)) – (mu + delta + rho) * i(k-1)));
dr_pred = h / 2 * (((m * i(k)) / (1 + n * i(k)) + delta * i(k) – mu * r(k)) + …
((m * i(k-1)) / (1 + n * i(k-1)) + delta * i(k-1) – mu * r(k-1)));
end
% Update predicted values
s(k + 1) = s(k) + ds_pred;
i(k + 1) = i(k) + di_pred;
r(k + 1) = r(k) + dr_pred;
% Corrector step (Adams-Moulton)
ds_corr = h / 2 * ((LAMBDA – mu * s(k + 1) – (beta * s(k + 1) * i(k + 1)) / (1 + gamma * i(k + 1))) + …
(LAMBDA – mu * s(k) – (beta * s(k) * i(k)) / (1 + gamma * i(k))));
di_corr = h / 2 * (((beta * s(k + 1) * i(k + 1)) / (1 + gamma * i(k + 1)) – (m * i(k + 1)) / (1 + n * i(k + 1)) – (mu + delta + rho) * i(k + 1)) + …
((beta * s(k) * i(k)) / (1 + gamma * i(k)) – (m * i(k)) / (1 + n * i(k)) – (mu + delta + rho) * i(k)));
dr_corr = h / 2 * (((m * i(k + 1)) / (1 + n * i(k + 1)) + delta * i(k + 1) – mu * r(k + 1)) + …
((m * i(k)) / (1 + n * i(k)) + delta * i(k) – mu * r(k)));
% Update corrected values
s(k + 1) = s(k) + ds_corr;
i(k + 1) = i(k) + di_corr;
r(k + 1) = r(k) + dr_corr;
end
% Plot the results
figure;
plot(time, s, ‘-o’, ‘DisplayName’, ‘s(t)’);
hold on;
plot(time, i, ‘-s’, ‘DisplayName’, ‘i(t)’);
plot(time, r, ‘-d’, ‘DisplayName’, ‘r(t)’);
xlabel(‘Time’);
ylabel(‘Population’);
title(‘Solution of the System of Fractional Differential Equations’);
legend;
grid on;
% Set plot range
xlim([0 30]);
ylim([0 100]);“`
<</matlabcentral/answers/uploaded_files/1745286/fo_M.png>>Hi. I have been trying to plot fractional order differential equations with MATLAB. I have tried to use this technique called "Predictor-Corrector Method" and got a code listing using AI. The code seems to be giving the plots, though they do not match with the expected results. I will attach the code listing below. But my question is how to actually plot such systems? Is there a standard method in-built, or a widely accepted add-on/package? Thanks. “`% Parameters
alpha = 0.9;
LAMBDA = 3;
mu = 0.4;
beta = 0.004;
gamma = 0.0005;
m = 0.03;
n = 0.006;
delta = 0.02;
rho = 0.003;
h = 0.1; % Time step
T = 300; % Total time
% Time steps
time = 0:h:T;
time_steps = length(time);
% Initial conditions
s = zeros(1, time_steps);
i = zeros(1, time_steps);
r = zeros(1, time_steps);
s(1) = 85;
i(1) = 3;
r(1) = 0;
% Predictor-Corrector Method
for k = 1:(time_steps – 1)
% Predictor step (Adams-Bashforth)
if k == 1
ds_pred = h * (LAMBDA – mu * s(k) – (beta * s(k) * i(k)) / (1 + gamma * i(k)));
di_pred = h * ((beta * s(k) * i(k)) / (1 + gamma * i(k)) – (m * i(k)) / (1 + n * i(k)) – (mu + delta + rho) * i(k));
dr_pred = h * ((m * i(k)) / (1 + n * i(k)) + delta * i(k) – mu * r(k));
else
ds_pred = h / 2 * ((LAMBDA – mu * s(k) – (beta * s(k) * i(k)) / (1 + gamma * i(k))) + …
(LAMBDA – mu * s(k-1) – (beta * s(k-1) * i(k-1)) / (1 + gamma * i(k-1))));
di_pred = h / 2 * (((beta * s(k) * i(k)) / (1 + gamma * i(k)) – (m * i(k)) / (1 + n * i(k)) – (mu + delta + rho) * i(k)) + …
((beta * s(k-1) * i(k-1)) / (1 + gamma * i(k-1)) – (m * i(k-1)) / (1 + n * i(k-1)) – (mu + delta + rho) * i(k-1)));
dr_pred = h / 2 * (((m * i(k)) / (1 + n * i(k)) + delta * i(k) – mu * r(k)) + …
((m * i(k-1)) / (1 + n * i(k-1)) + delta * i(k-1) – mu * r(k-1)));
end
% Update predicted values
s(k + 1) = s(k) + ds_pred;
i(k + 1) = i(k) + di_pred;
r(k + 1) = r(k) + dr_pred;
% Corrector step (Adams-Moulton)
ds_corr = h / 2 * ((LAMBDA – mu * s(k + 1) – (beta * s(k + 1) * i(k + 1)) / (1 + gamma * i(k + 1))) + …
(LAMBDA – mu * s(k) – (beta * s(k) * i(k)) / (1 + gamma * i(k))));
di_corr = h / 2 * (((beta * s(k + 1) * i(k + 1)) / (1 + gamma * i(k + 1)) – (m * i(k + 1)) / (1 + n * i(k + 1)) – (mu + delta + rho) * i(k + 1)) + …
((beta * s(k) * i(k)) / (1 + gamma * i(k)) – (m * i(k)) / (1 + n * i(k)) – (mu + delta + rho) * i(k)));
dr_corr = h / 2 * (((m * i(k + 1)) / (1 + n * i(k + 1)) + delta * i(k + 1) – mu * r(k + 1)) + …
((m * i(k)) / (1 + n * i(k)) + delta * i(k) – mu * r(k)));
% Update corrected values
s(k + 1) = s(k) + ds_corr;
i(k + 1) = i(k) + di_corr;
r(k + 1) = r(k) + dr_corr;
end
% Plot the results
figure;
plot(time, s, ‘-o’, ‘DisplayName’, ‘s(t)’);
hold on;
plot(time, i, ‘-s’, ‘DisplayName’, ‘i(t)’);
plot(time, r, ‘-d’, ‘DisplayName’, ‘r(t)’);
xlabel(‘Time’);
ylabel(‘Population’);
title(‘Solution of the System of Fractional Differential Equations’);
legend;
grid on;
% Set plot range
xlim([0 30]);
ylim([0 100]);“`
<</matlabcentral/answers/uploaded_files/1745286/fo_M.png>> Hi. I have been trying to plot fractional order differential equations with MATLAB. I have tried to use this technique called "Predictor-Corrector Method" and got a code listing using AI. The code seems to be giving the plots, though they do not match with the expected results. I will attach the code listing below. But my question is how to actually plot such systems? Is there a standard method in-built, or a widely accepted add-on/package? Thanks. “`% Parameters
alpha = 0.9;
LAMBDA = 3;
mu = 0.4;
beta = 0.004;
gamma = 0.0005;
m = 0.03;
n = 0.006;
delta = 0.02;
rho = 0.003;
h = 0.1; % Time step
T = 300; % Total time
% Time steps
time = 0:h:T;
time_steps = length(time);
% Initial conditions
s = zeros(1, time_steps);
i = zeros(1, time_steps);
r = zeros(1, time_steps);
s(1) = 85;
i(1) = 3;
r(1) = 0;
% Predictor-Corrector Method
for k = 1:(time_steps – 1)
% Predictor step (Adams-Bashforth)
if k == 1
ds_pred = h * (LAMBDA – mu * s(k) – (beta * s(k) * i(k)) / (1 + gamma * i(k)));
di_pred = h * ((beta * s(k) * i(k)) / (1 + gamma * i(k)) – (m * i(k)) / (1 + n * i(k)) – (mu + delta + rho) * i(k));
dr_pred = h * ((m * i(k)) / (1 + n * i(k)) + delta * i(k) – mu * r(k));
else
ds_pred = h / 2 * ((LAMBDA – mu * s(k) – (beta * s(k) * i(k)) / (1 + gamma * i(k))) + …
(LAMBDA – mu * s(k-1) – (beta * s(k-1) * i(k-1)) / (1 + gamma * i(k-1))));
di_pred = h / 2 * (((beta * s(k) * i(k)) / (1 + gamma * i(k)) – (m * i(k)) / (1 + n * i(k)) – (mu + delta + rho) * i(k)) + …
((beta * s(k-1) * i(k-1)) / (1 + gamma * i(k-1)) – (m * i(k-1)) / (1 + n * i(k-1)) – (mu + delta + rho) * i(k-1)));
dr_pred = h / 2 * (((m * i(k)) / (1 + n * i(k)) + delta * i(k) – mu * r(k)) + …
((m * i(k-1)) / (1 + n * i(k-1)) + delta * i(k-1) – mu * r(k-1)));
end
% Update predicted values
s(k + 1) = s(k) + ds_pred;
i(k + 1) = i(k) + di_pred;
r(k + 1) = r(k) + dr_pred;
% Corrector step (Adams-Moulton)
ds_corr = h / 2 * ((LAMBDA – mu * s(k + 1) – (beta * s(k + 1) * i(k + 1)) / (1 + gamma * i(k + 1))) + …
(LAMBDA – mu * s(k) – (beta * s(k) * i(k)) / (1 + gamma * i(k))));
di_corr = h / 2 * (((beta * s(k + 1) * i(k + 1)) / (1 + gamma * i(k + 1)) – (m * i(k + 1)) / (1 + n * i(k + 1)) – (mu + delta + rho) * i(k + 1)) + …
((beta * s(k) * i(k)) / (1 + gamma * i(k)) – (m * i(k)) / (1 + n * i(k)) – (mu + delta + rho) * i(k)));
dr_corr = h / 2 * (((m * i(k + 1)) / (1 + n * i(k + 1)) + delta * i(k + 1) – mu * r(k + 1)) + …
((m * i(k)) / (1 + n * i(k)) + delta * i(k) – mu * r(k)));
% Update corrected values
s(k + 1) = s(k) + ds_corr;
i(k + 1) = i(k) + di_corr;
r(k + 1) = r(k) + dr_corr;
end
% Plot the results
figure;
plot(time, s, ‘-o’, ‘DisplayName’, ‘s(t)’);
hold on;
plot(time, i, ‘-s’, ‘DisplayName’, ‘i(t)’);
plot(time, r, ‘-d’, ‘DisplayName’, ‘r(t)’);
xlabel(‘Time’);
ylabel(‘Population’);
title(‘Solution of the System of Fractional Differential Equations’);
legend;
grid on;
% Set plot range
xlim([0 30]);
ylim([0 100]);“`
<</matlabcentral/answers/uploaded_files/1745286/fo_M.png>> fde MATLAB Answers — New Questions
Three phase measurement block measuring current lower than expected
I have three controlled current sources connected as a load. The currents sources are used to simulate harmonic currents. I also have three phase filter banks used to filter our the harmonics. I have multiple three measurement blocks all set to phase-to-phase measurements. One measurement block (line) is connected to the transformer secondary. One measurement block (load) connected to the controlled current sources. One measurement block (caps) is connected to the capacitors. I would expect the following line current = load current + capacitor current (see be drawing below). Both the controlled current sources and the capacitors have a significant amount of current flow. Why doesn’t the transformer secondary current = capacitor current + controller current source load?
Here is my controlled current source configuration. The sine waves are populated from a MATLAB data variable.I have three controlled current sources connected as a load. The currents sources are used to simulate harmonic currents. I also have three phase filter banks used to filter our the harmonics. I have multiple three measurement blocks all set to phase-to-phase measurements. One measurement block (line) is connected to the transformer secondary. One measurement block (load) connected to the controlled current sources. One measurement block (caps) is connected to the capacitors. I would expect the following line current = load current + capacitor current (see be drawing below). Both the controlled current sources and the capacitors have a significant amount of current flow. Why doesn’t the transformer secondary current = capacitor current + controller current source load?
Here is my controlled current source configuration. The sine waves are populated from a MATLAB data variable. I have three controlled current sources connected as a load. The currents sources are used to simulate harmonic currents. I also have three phase filter banks used to filter our the harmonics. I have multiple three measurement blocks all set to phase-to-phase measurements. One measurement block (line) is connected to the transformer secondary. One measurement block (load) connected to the controlled current sources. One measurement block (caps) is connected to the capacitors. I would expect the following line current = load current + capacitor current (see be drawing below). Both the controlled current sources and the capacitors have a significant amount of current flow. Why doesn’t the transformer secondary current = capacitor current + controller current source load?
Here is my controlled current source configuration. The sine waves are populated from a MATLAB data variable. current measurement MATLAB Answers — New Questions
please help again
I am making a function and when I try to add the next argument the entire code goes white and the colouring on the writing to show the cell is referenced by colour coding
=IF(AND($L$5=3,$M$5=2,H5<2),4,IF(AND($L$5=3,$M$5=1,H5<2),2,IF(AND(G10=”left”,H5>0,G5=0,F5=0),0,IF(AND(G10=”left”,H5>0,G5=0,F5>0,F5<>H5,I5>0,I5<>H5),H5,IF(AND(H5>0,G5=0,F5>0,F5=H5),0,IF(AND(G10=”left”,H5>0,G5=0,F5>0,H5<>F5,I5>0,I5=H5),0,IF(AND(G10=”left”,H5>0,G5>0,F5>0,F5=G5,I5>0,I5<>H5),I5,IF(AND(G10=”left”,H5>0,G5=0,F5>0,I5>0,F5=H5),0,IF(AND(G10=”left”,H5>0,G5>0,F5>0,G5<>F5,H5=I5),H5+I5,IF(AND(G10=”right”,H5>0,I5=H5,G5>0,G5<>F5),G5,IF(AND(G10=”right”,H5>0,I5>0,I5<>H5,G5=0,F5=H5),H5+F5,IF(AND(G10=”right”,H5>0,I5>0,I5<>H5,G5=H5),G5+H5,IF(AND(G10=”right”,H5=0,I5>0,G5>0,G5=F5,G5<>I5),G5+F5,IF(AND(G10=”right”,H5=0,I5=0,G5>0,F5>0,F5<>G5),F5,IF(AND(G10=”right”,H5=0,I5=0,G5>0,G5=F5),0,IF(AND(G10=”right”,H5=0,I5>0,G5>0,F5>0,F5<>G5,I5=G5),F5,IF(AND(G10=”up”,H5>0,H6=H5),H5+H6,IF(AND(G10=”up”,H5>0,H6=0,H7=H5),H5+H7,IF(AND(G10=”up”,H5>0,H6=0,H7=0,H8=H5),H5+H8,IF(AND(G10=”up”,H5=0,H6>0,H6<>H7,H7=0,H6=H8),H6+H8,IF(AND(G10=”up”,H5=0,H6>0,H7<>H6,H7<>0),H6,IF(AND(G10=”up”,H5=0,H6>0,H6=H7),H6+H7,IF(AND(G10=”up”,H5=0,H6=0,H7>0,H7=H8),H7+H8,IF(AND(G10=”up”,H5=0,H6=0,H7>0,H7<>H8),H7,IF(AND(G10=”up”,H5=0,H6=0,H7=0,H8>0),H8,IF(AND(G10=”up”,H5=0,H6=0,H7>0,H7<>H8),H7,IF(AND(G10=”down”,H5>0,H6=0),0,IF(AND(G10=”down”,H5>0,H6>0,H6=H5),0,IF(AND(G10=”down”,H5>0,H6>0,H5<>H6,H7=0),0,IF(AND(G10=”down”,H5>0,H6>0,H7>0,H5<>H6,H7<>H8,H8=0),0,IF(AND(G10=”down”,H5>0,H6>0,H7>0,H8>0,H8=H7),0,IF(AND(H5>0,H6>0,H7>0,H8>0,H8<>H7,H7=H6),0,IF(AND(G10=”down”,H5>0,H6>0,H7>0,H8>0,H8<>H7,H7<>H6,H5=H6),0,IF(AND(G10=”right”,I5=0,H5>0,G5>0,F5<>G5,F5>0),G5,IF(AND(G10=”left”,H5>0,I5>0,G5>0,
I am making a function and when I try to add the next argument the entire code goes white and the colouring on the writing to show the cell is referenced by colour coding=IF(AND($L$5=3,$M$5=2,H5<2),4,IF(AND($L$5=3,$M$5=1,H5<2),2,IF(AND(G10=”left”,H5>0,G5=0,F5=0),0,IF(AND(G10=”left”,H5>0,G5=0,F5>0,F5<>H5,I5>0,I5<>H5),H5,IF(AND(H5>0,G5=0,F5>0,F5=H5),0,IF(AND(G10=”left”,H5>0,G5=0,F5>0,H5<>F5,I5>0,I5=H5),0,IF(AND(G10=”left”,H5>0,G5>0,F5>0,F5=G5,I5>0,I5<>H5),I5,IF(AND(G10=”left”,H5>0,G5=0,F5>0,I5>0,F5=H5),0,IF(AND(G10=”left”,H5>0,G5>0,F5>0,G5<>F5,H5=I5),H5+I5,IF(AND(G10=”right”,H5>0,I5=H5,G5>0,G5<>F5),G5,IF(AND(G10=”right”,H5>0,I5>0,I5<>H5,G5=0,F5=H5),H5+F5,IF(AND(G10=”right”,H5>0,I5>0,I5<>H5,G5=H5),G5+H5,IF(AND(G10=”right”,H5=0,I5>0,G5>0,G5=F5,G5<>I5),G5+F5,IF(AND(G10=”right”,H5=0,I5=0,G5>0,F5>0,F5<>G5),F5,IF(AND(G10=”right”,H5=0,I5=0,G5>0,G5=F5),0,IF(AND(G10=”right”,H5=0,I5>0,G5>0,F5>0,F5<>G5,I5=G5),F5,IF(AND(G10=”up”,H5>0,H6=H5),H5+H6,IF(AND(G10=”up”,H5>0,H6=0,H7=H5),H5+H7,IF(AND(G10=”up”,H5>0,H6=0,H7=0,H8=H5),H5+H8,IF(AND(G10=”up”,H5=0,H6>0,H6<>H7,H7=0,H6=H8),H6+H8,IF(AND(G10=”up”,H5=0,H6>0,H7<>H6,H7<>0),H6,IF(AND(G10=”up”,H5=0,H6>0,H6=H7),H6+H7,IF(AND(G10=”up”,H5=0,H6=0,H7>0,H7=H8),H7+H8,IF(AND(G10=”up”,H5=0,H6=0,H7>0,H7<>H8),H7,IF(AND(G10=”up”,H5=0,H6=0,H7=0,H8>0),H8,IF(AND(G10=”up”,H5=0,H6=0,H7>0,H7<>H8),H7,IF(AND(G10=”down”,H5>0,H6=0),0,IF(AND(G10=”down”,H5>0,H6>0,H6=H5),0,IF(AND(G10=”down”,H5>0,H6>0,H5<>H6,H7=0),0,IF(AND(G10=”down”,H5>0,H6>0,H7>0,H5<>H6,H7<>H8,H8=0),0,IF(AND(G10=”down”,H5>0,H6>0,H7>0,H8>0,H8=H7),0,IF(AND(H5>0,H6>0,H7>0,H8>0,H8<>H7,H7=H6),0,IF(AND(G10=”down”,H5>0,H6>0,H7>0,H8>0,H8<>H7,H7<>H6,H5=H6),0,IF(AND(G10=”right”,I5=0,H5>0,G5>0,F5<>G5,F5>0),G5,IF(AND(G10=”left”,H5>0,I5>0,G5>0, Read More
Which partner role to use making a business apps claim in Partner Center?
We have a government customer with an enterprise agreement. We’ve worked with them for a couple of years as their systems integrator deploying Dynamics 365 Customer Service, Power Apps and Power Pages.
We’re trying to make a customer claim in Partner Center.
On the Incentives | Customer claims screen, I’m confused about the partner roles:
Build intent – AdvisorPartner activitiesUsage recognition – Non-IncentivizedInfluenced Revenue recognition – Non-Incentivized
The guidance page on Learn doesn’t make any sense to me.
Can anyone explain it like I’m an 8th grader new to Microsoft partnership?
All we want is revenue recognition, usage recognition, partner points, solution designtions, incentives, awards, margin, rebates, and a healthy and happy life.
How can I figure out which role to choose to achieve these goals?
We have a government customer with an enterprise agreement. We’ve worked with them for a couple of years as their systems integrator deploying Dynamics 365 Customer Service, Power Apps and Power Pages.We’re trying to make a customer claim in Partner Center. On the Incentives | Customer claims screen, I’m confused about the partner roles:Build intent – AdvisorPartner activitiesUsage recognition – Non-IncentivizedInfluenced Revenue recognition – Non-IncentivizedThe guidance page on Learn doesn’t make any sense to me. Can anyone explain it like I’m an 8th grader new to Microsoft partnership? All we want is revenue recognition, usage recognition, partner points, solution designtions, incentives, awards, margin, rebates, and a healthy and happy life. How can I figure out which role to choose to achieve these goals? Read More
Errors in Events viewer
These errors(event id 16) keeps happening in 6 months. And every time it happens, my PC restart. Sometimes when my PC hiberate, it still happened.
These errors(event id 16) keeps happening in 6 months. And every time it happens, my PC restart. Sometimes when my PC hiberate, it still happened. Read More
How can I create this 2D waterfall plot?
The data is from a CSV file with one time column and 32 columns of data.
The curves show the Amplitude vs. Time behavior of the sensors while the sensor locations (in meters) are placed on the Y-axis.
I assume this is a waterfall plot, but I can’t reproduce it. How can I make a graph like this one?The data is from a CSV file with one time column and 32 columns of data.
The curves show the Amplitude vs. Time behavior of the sensors while the sensor locations (in meters) are placed on the Y-axis.
I assume this is a waterfall plot, but I can’t reproduce it. How can I make a graph like this one? The data is from a CSV file with one time column and 32 columns of data.
The curves show the Amplitude vs. Time behavior of the sensors while the sensor locations (in meters) are placed on the Y-axis.
I assume this is a waterfall plot, but I can’t reproduce it. How can I make a graph like this one? plotting, plot, waterfall, figure MATLAB Answers — New Questions
Summing values based on certain time?
Is it possible WITHOUT using VBA to sum values if it’s not a certain time on the clock (the live computer clock). For example, if before 6pm sum values and if after 6pm don’t. I’d assume you have to use the now() function in someway to do this.
Ex
50
50
50
If before 6pm it should be 150. If after 6pm it should be 0. The time will change/update since its based on the current time (not a value listed on a spreadsheet).
Thanks!
Is it possible WITHOUT using VBA to sum values if it’s not a certain time on the clock (the live computer clock). For example, if before 6pm sum values and if after 6pm don’t. I’d assume you have to use the now() function in someway to do this. Ex505050 If before 6pm it should be 150. If after 6pm it should be 0. The time will change/update since its based on the current time (not a value listed on a spreadsheet). Thanks! Read More
Microsoft teams developer API in Node JS
Hi I am new to Microsoft teams community.I want a little help regarding MS Account.I am using Azure Account on my personal mail (I don’t have work mail) to use for Microsoft Graph API to authenticate my app in azure portal.The Authentication is successfull using Oauth flow.But when i access other API endpoints such as to get the teams that the user has joined or channels It says that i should have office ms licence.In Microsoft Graph API does some endpoints need WORK Account(ms office account) for accessiong these Endpoints.If so do i buy the microsoft 365 license.
Hi I am new to Microsoft teams community.I want a little help regarding MS Account.I am using Azure Account on my personal mail (I don’t have work mail) to use for Microsoft Graph API to authenticate my app in azure portal.The Authentication is successfull using Oauth flow.But when i access other API endpoints such as to get the teams that the user has joined or channels It says that i should have office ms licence.In Microsoft Graph API does some endpoints need WORK Account(ms office account) for accessiong these Endpoints.If so do i buy the microsoft 365 license. Read More
Index exceeds the number of array elements. Index must not exceed 101.
Please help me fix the following error: "Index exceeds the number of array elements. Index must not exceed 101." thank you very much!
%% Phase plane
clear all
clc
%% conditions
A=[-0.8 0.1;0.15 -0.15];
A_h=[-0.4 0.2;0.1 0.04];
A_d=[0.2 0.5;-0.3 0.05];
A_u=[0.1;-0.1];
A_c=[-76.0089 387.8927;75.3589 -387.9427];
stime=1.0;
endtime=30;
h=0.01;
t=-stime:h:endtime;
N_0=stime/h;
N_1=endtime/h;
N=N_0+N_1;
%bound=110;
for i=1:N+1
if i<=N_0+1;
x1(:,i)=0.05*sin((i-N_0-1)*h);
x2(:,i)=0.05*cos((i-N_0-1)*h);
else
d_1=floor(1.5+0.5*sin(1.5*i*h));
d_2=floor(2+cos(2.5*i*h));
if i<=4
x1(:,i)=x1(:,i-1)+h*(A_c(1,1)*x1(:,i-1)+A_c(1,2)*x2(:,i-1));
x2(:,i)=x2(:,i-1)+h*(A_c(2,1)*x1(:,i-1)+A_c(2,2)*x2(:,i-1));
else
x1(:,i)=x1(:,i-1)+h*(A_c(1,1)*x1(:,i-1)+A_c(1,2)*x2(:,i-1)+A_h(1,1)*x1(:,i-d_1-1)+A_h(1,2)*x2(:,i-d_1-1)+(1/2)*(A_d(1,1)*(x1(i-1)+x1(i-d_2-1)+2*(x1(i-d_2)+x1(i-d_2+1)))+A_d(1,2)*(x2(i-1)+x2(i-d_2-1)+2*(x2(i-d_2)+x2(i-d_2+1)))));
x2(:,i)=x2(:,i-1)+h*(A_c(2,1)*x1(:,i-1)+A_c(2,2)*x2(:,i-1)+A_h(2,1)*x1(:,i-d_1-1)+A_h(2,2)*x2(:,i-d_1-1)+(1/2)*(A_d(2,1)*(x1(i-1)+x1(i-d_2-1)+2*(x1(i-2)+x1(i-3)+x1(i-4)))+A_d(2,2)*(x2(i-1)+x2(i-d_2-1)+2*(x2(i-2)+x2(i-3)+x2(i-4)))));
end
end
end
%% Plotting Graphs
figure
grid on
hold on
box on
plot(t,x1(1,:),’-g’,t,x2(1,:),’r-‘,’linewidth’,2.5)
hold on
xlabel(‘Time (t)’)
%ylabel(‘State responses’)
legend(‘x_{1}(t)’,’x_{2}(t)’);
xlim([0,30]);
ylim([-100,100]);
%Please help me fix the following error: "Index exceeds the number of array elements. Index must not exceed 101." thank you very much!
%% Phase plane
clear all
clc
%% conditions
A=[-0.8 0.1;0.15 -0.15];
A_h=[-0.4 0.2;0.1 0.04];
A_d=[0.2 0.5;-0.3 0.05];
A_u=[0.1;-0.1];
A_c=[-76.0089 387.8927;75.3589 -387.9427];
stime=1.0;
endtime=30;
h=0.01;
t=-stime:h:endtime;
N_0=stime/h;
N_1=endtime/h;
N=N_0+N_1;
%bound=110;
for i=1:N+1
if i<=N_0+1;
x1(:,i)=0.05*sin((i-N_0-1)*h);
x2(:,i)=0.05*cos((i-N_0-1)*h);
else
d_1=floor(1.5+0.5*sin(1.5*i*h));
d_2=floor(2+cos(2.5*i*h));
if i<=4
x1(:,i)=x1(:,i-1)+h*(A_c(1,1)*x1(:,i-1)+A_c(1,2)*x2(:,i-1));
x2(:,i)=x2(:,i-1)+h*(A_c(2,1)*x1(:,i-1)+A_c(2,2)*x2(:,i-1));
else
x1(:,i)=x1(:,i-1)+h*(A_c(1,1)*x1(:,i-1)+A_c(1,2)*x2(:,i-1)+A_h(1,1)*x1(:,i-d_1-1)+A_h(1,2)*x2(:,i-d_1-1)+(1/2)*(A_d(1,1)*(x1(i-1)+x1(i-d_2-1)+2*(x1(i-d_2)+x1(i-d_2+1)))+A_d(1,2)*(x2(i-1)+x2(i-d_2-1)+2*(x2(i-d_2)+x2(i-d_2+1)))));
x2(:,i)=x2(:,i-1)+h*(A_c(2,1)*x1(:,i-1)+A_c(2,2)*x2(:,i-1)+A_h(2,1)*x1(:,i-d_1-1)+A_h(2,2)*x2(:,i-d_1-1)+(1/2)*(A_d(2,1)*(x1(i-1)+x1(i-d_2-1)+2*(x1(i-2)+x1(i-3)+x1(i-4)))+A_d(2,2)*(x2(i-1)+x2(i-d_2-1)+2*(x2(i-2)+x2(i-3)+x2(i-4)))));
end
end
end
%% Plotting Graphs
figure
grid on
hold on
box on
plot(t,x1(1,:),’-g’,t,x2(1,:),’r-‘,’linewidth’,2.5)
hold on
xlabel(‘Time (t)’)
%ylabel(‘State responses’)
legend(‘x_{1}(t)’,’x_{2}(t)’);
xlim([0,30]);
ylim([-100,100]);
% Please help me fix the following error: "Index exceeds the number of array elements. Index must not exceed 101." thank you very much!
%% Phase plane
clear all
clc
%% conditions
A=[-0.8 0.1;0.15 -0.15];
A_h=[-0.4 0.2;0.1 0.04];
A_d=[0.2 0.5;-0.3 0.05];
A_u=[0.1;-0.1];
A_c=[-76.0089 387.8927;75.3589 -387.9427];
stime=1.0;
endtime=30;
h=0.01;
t=-stime:h:endtime;
N_0=stime/h;
N_1=endtime/h;
N=N_0+N_1;
%bound=110;
for i=1:N+1
if i<=N_0+1;
x1(:,i)=0.05*sin((i-N_0-1)*h);
x2(:,i)=0.05*cos((i-N_0-1)*h);
else
d_1=floor(1.5+0.5*sin(1.5*i*h));
d_2=floor(2+cos(2.5*i*h));
if i<=4
x1(:,i)=x1(:,i-1)+h*(A_c(1,1)*x1(:,i-1)+A_c(1,2)*x2(:,i-1));
x2(:,i)=x2(:,i-1)+h*(A_c(2,1)*x1(:,i-1)+A_c(2,2)*x2(:,i-1));
else
x1(:,i)=x1(:,i-1)+h*(A_c(1,1)*x1(:,i-1)+A_c(1,2)*x2(:,i-1)+A_h(1,1)*x1(:,i-d_1-1)+A_h(1,2)*x2(:,i-d_1-1)+(1/2)*(A_d(1,1)*(x1(i-1)+x1(i-d_2-1)+2*(x1(i-d_2)+x1(i-d_2+1)))+A_d(1,2)*(x2(i-1)+x2(i-d_2-1)+2*(x2(i-d_2)+x2(i-d_2+1)))));
x2(:,i)=x2(:,i-1)+h*(A_c(2,1)*x1(:,i-1)+A_c(2,2)*x2(:,i-1)+A_h(2,1)*x1(:,i-d_1-1)+A_h(2,2)*x2(:,i-d_1-1)+(1/2)*(A_d(2,1)*(x1(i-1)+x1(i-d_2-1)+2*(x1(i-2)+x1(i-3)+x1(i-4)))+A_d(2,2)*(x2(i-1)+x2(i-d_2-1)+2*(x2(i-2)+x2(i-3)+x2(i-4)))));
end
end
end
%% Plotting Graphs
figure
grid on
hold on
box on
plot(t,x1(1,:),’-g’,t,x2(1,:),’r-‘,’linewidth’,2.5)
hold on
xlabel(‘Time (t)’)
%ylabel(‘State responses’)
legend(‘x_{1}(t)’,’x_{2}(t)’);
xlim([0,30]);
ylim([-100,100]);
% indexing MATLAB Answers — New Questions
Work tracking ability
Hi,
I am curious, if its possible to track the working time and tasks with Copilot, so that it recoginezes how long I am working on a document (in general all changes are documented with time, thus this data could be extracted for this) and registeres these time in an e.g. excel sheet as working time on a day incl. stateing the document and at best even recognizes, for which customers this document was created. If I work on different documents for different customers on one day, I expect Copilot to document all these documents with the time for a customer and for the relevant day. At best, whenever I am not working on a document, it would be nice, if Copilot could ask what task I am performing and document this too – in Case of Teams Meeting, the time should be also documented and related to the customer and working day.
Contrary to usual employees, I want to controll myself with Copilot in detail with regard to the time I spend on different things/tasks and document them, to help me with the time tracking incl. detailed information, for the purpose of charging customers for the work done on basis of the measured working time. Also this would be very helpful to increase efficacy of work and maybe identify time thieves.
Unfortunately, I haven’t yet found a time tracking tool that is convenient for me and ideally records the working hours for tasks from the planner. In general you always have to manually specify the tasks done (which is actually already given in the planner, but I need to repeat it) and I find that a bit annoying. If working on several documents in a block, often the entire working time is recorded, but it can’t be broken down into the times required for the individual documents afterwards. Finally the working time recorded should be compared with the planned working time in the planner and gives me an information, how much time is left acc. to the planner to perfom a task.
I have great hopes, that Copilot could help in recording the working times and tasks as simply as possible (i.e. automatically when editing a document), but at the same time in detail. Is that a conceivable idea and can Copilot cover such task?
Thank you very much in advance for any thoughts about this.
Hi, I am curious, if its possible to track the working time and tasks with Copilot, so that it recoginezes how long I am working on a document (in general all changes are documented with time, thus this data could be extracted for this) and registeres these time in an e.g. excel sheet as working time on a day incl. stateing the document and at best even recognizes, for which customers this document was created. If I work on different documents for different customers on one day, I expect Copilot to document all these documents with the time for a customer and for the relevant day. At best, whenever I am not working on a document, it would be nice, if Copilot could ask what task I am performing and document this too – in Case of Teams Meeting, the time should be also documented and related to the customer and working day. Contrary to usual employees, I want to controll myself with Copilot in detail with regard to the time I spend on different things/tasks and document them, to help me with the time tracking incl. detailed information, for the purpose of charging customers for the work done on basis of the measured working time. Also this would be very helpful to increase efficacy of work and maybe identify time thieves. Unfortunately, I haven’t yet found a time tracking tool that is convenient for me and ideally records the working hours for tasks from the planner. In general you always have to manually specify the tasks done (which is actually already given in the planner, but I need to repeat it) and I find that a bit annoying. If working on several documents in a block, often the entire working time is recorded, but it can’t be broken down into the times required for the individual documents afterwards. Finally the working time recorded should be compared with the planned working time in the planner and gives me an information, how much time is left acc. to the planner to perfom a task. I have great hopes, that Copilot could help in recording the working times and tasks as simply as possible (i.e. automatically when editing a document), but at the same time in detail. Is that a conceivable idea and can Copilot cover such task? Thank you very much in advance for any thoughts about this. Read More
3D simulation engine interface setup timeout.
I am getting this error when i try to run the script in this example Visualize Automated Parking Valet Using Unreal Engine Simulation.
MATLAB System block ‘untitled/Simulation 3D Scene Configuration/Simulation 3D Engine’ error occurred when invoking ‘resetImpl’ method of ‘Simulation3DEngine’. The error was thrown from ‘
‘C:MATLAB2020btoolboxsharedsim3dsim3d+sim3dEngineInterface.p’ at line 0
‘C:MATLAB2020btoolboxsharedsim3dsim3d+sim3dEngine.p’ at line 0
‘C:MATLAB2020btoolboxsharedsim3dsim3d+sim3dProject.p’ at line 0
‘C:MATLAB2020btoolboxsharedsim3dblkssim3dblksSimulation3DEngine.p’ at line 0′.
Caused by:
3D simulation engine interface setup timeout.
Can anyone help me fix this ?I am getting this error when i try to run the script in this example Visualize Automated Parking Valet Using Unreal Engine Simulation.
MATLAB System block ‘untitled/Simulation 3D Scene Configuration/Simulation 3D Engine’ error occurred when invoking ‘resetImpl’ method of ‘Simulation3DEngine’. The error was thrown from ‘
‘C:MATLAB2020btoolboxsharedsim3dsim3d+sim3dEngineInterface.p’ at line 0
‘C:MATLAB2020btoolboxsharedsim3dsim3d+sim3dEngine.p’ at line 0
‘C:MATLAB2020btoolboxsharedsim3dsim3d+sim3dProject.p’ at line 0
‘C:MATLAB2020btoolboxsharedsim3dblkssim3dblksSimulation3DEngine.p’ at line 0′.
Caused by:
3D simulation engine interface setup timeout.
Can anyone help me fix this ? I am getting this error when i try to run the script in this example Visualize Automated Parking Valet Using Unreal Engine Simulation.
MATLAB System block ‘untitled/Simulation 3D Scene Configuration/Simulation 3D Engine’ error occurred when invoking ‘resetImpl’ method of ‘Simulation3DEngine’. The error was thrown from ‘
‘C:MATLAB2020btoolboxsharedsim3dsim3d+sim3dEngineInterface.p’ at line 0
‘C:MATLAB2020btoolboxsharedsim3dsim3d+sim3dEngine.p’ at line 0
‘C:MATLAB2020btoolboxsharedsim3dsim3d+sim3dProject.p’ at line 0
‘C:MATLAB2020btoolboxsharedsim3dblkssim3dblksSimulation3DEngine.p’ at line 0′.
Caused by:
3D simulation engine interface setup timeout.
Can anyone help me fix this ? simulink, automated driving toolbox MATLAB Answers — New Questions
RoadRunner plugins for Unreal 4.26
With the new version R2022a the RoadRunner Plugins should support Unreal4.26 and the .udatasmith format. On the download page it still says RoadRunner Plugins 1.1.0 and in the ReadMe it only says "support Unreal 4.25". Is there a newer version somewhere?
So the chain from RoadRunner to Unreal including co-simulation with Simulink doesn’t seem to work for me anymore.With the new version R2022a the RoadRunner Plugins should support Unreal4.26 and the .udatasmith format. On the download page it still says RoadRunner Plugins 1.1.0 and in the ReadMe it only says "support Unreal 4.25". Is there a newer version somewhere?
So the chain from RoadRunner to Unreal including co-simulation with Simulink doesn’t seem to work for me anymore. With the new version R2022a the RoadRunner Plugins should support Unreal4.26 and the .udatasmith format. On the download page it still says RoadRunner Plugins 1.1.0 and in the ReadMe it only says "support Unreal 4.25". Is there a newer version somewhere?
So the chain from RoadRunner to Unreal including co-simulation with Simulink doesn’t seem to work for me anymore. unreal export, unreal interface MATLAB Answers — New Questions