Month: May 2024
Cannot find Preferences > Keyboard > Shortcuts after enabling dark mode
I am in trouble changing the keypoard shortcut preferences after enabling the dark mode in MATLAB R2023b.
I followed the procedures desribed in Try Dark Mode on Desktop MATLAB with the ‘New Desktop for MATLAB’ beta » The MATLAB Blog – MATLAB & Simulink (mathworks.com) to enable the dark mode. However, after this change, I cannot open the Keyboard Shortcuts Preferences page. According to Customize Keyboard Shortcuts – MATLAB & Simulink (mathworks.com), it can be opened by going to Home tab, clicking Preferences, then selecting MATLAB > Keyboard > Shortcuts, but I only see "Delimeter Matching" preferences and don’t see "Shortcuts" preference. Does anyone have a similar issue?I am in trouble changing the keypoard shortcut preferences after enabling the dark mode in MATLAB R2023b.
I followed the procedures desribed in Try Dark Mode on Desktop MATLAB with the ‘New Desktop for MATLAB’ beta » The MATLAB Blog – MATLAB & Simulink (mathworks.com) to enable the dark mode. However, after this change, I cannot open the Keyboard Shortcuts Preferences page. According to Customize Keyboard Shortcuts – MATLAB & Simulink (mathworks.com), it can be opened by going to Home tab, clicking Preferences, then selecting MATLAB > Keyboard > Shortcuts, but I only see "Delimeter Matching" preferences and don’t see "Shortcuts" preference. Does anyone have a similar issue? I am in trouble changing the keypoard shortcut preferences after enabling the dark mode in MATLAB R2023b.
I followed the procedures desribed in Try Dark Mode on Desktop MATLAB with the ‘New Desktop for MATLAB’ beta » The MATLAB Blog – MATLAB & Simulink (mathworks.com) to enable the dark mode. However, after this change, I cannot open the Keyboard Shortcuts Preferences page. According to Customize Keyboard Shortcuts – MATLAB & Simulink (mathworks.com), it can be opened by going to Home tab, clicking Preferences, then selecting MATLAB > Keyboard > Shortcuts, but I only see "Delimeter Matching" preferences and don’t see "Shortcuts" preference. Does anyone have a similar issue? keyboard shortcuts MATLAB Answers — New Questions
Lesson Learned #499: HikariCP Retry Policy – The connection is closed
Today, I worked on a service request that our customer got the following error message:
19:28:43.232 [main] WARN com.zaxxer.hikari.pool.PoolBase – AppExample-ConnectionPooling – Failed to validate connection ConnectionID:3 ClientConnectionId: 8351bddc-acbb-4669-xxxx-xxxxxxxxxxxx (The connection is closed.). Possibly consider using a shorter maxLifetime value.
19:28:43.234 [AppExample-ConnectionPooling connection closer] DEBUG com.zaxxer.hikari.pool.PoolBase – DotNetExample-ConnectionPooling – Closing connection ConnectionID:3 ClientConnectionId: 8351bddc-acbb–xxxx-xxxxxxxxxxxx: (connection is dead). Following I would like to share my experience with this error.
This error indicates that the connection was closed unexpectedly and cannot be reused. In this situation, HikariCP will evict the connection from the pool and open a new one according to its Retry Logic policy.
Let me explain the Retry Logic with an example. Before providing a valid connection to the application or returning it to the HikariCP pool, the software validates the connection by checking the port and running a validation query, such as SELECT 1.
As we can see below, when a dead connection is detected, a new connection is immediately opened or reused to provide a valid connection to the application. In my case, working from home and connecting to the West Europe region, establishing a connection took around 46 ms. Running the client machine from Azure would reduce this time.
19:41:34.359 [SingleThread] Connecting to Database
19:41:34.362 [main] WARN com.zaxxer.hikari.pool.PoolBase – AppExample-ConnectionPooling – Failed to validate connection ConnectionID:1 ClientConnectionId: d0f3613f-47d6 (The connection is closed.). Possibly consider using a shorter maxLifetime value.
19:41:34.365 [AppName-ConnectionPooling connection closer] DEBUG com.zaxxer.hikari.pool.PoolBase – AppNameExample-ConnectionPooling – Closing connection ConnectionID:1 ClientConnectionId: d0f3613f-47d6: (connection is dead)
19:41:34.405 [SingleThread] Connected to Database
19:41:34.412 [SingleThread] Connection Time (ms) 46
19:41:34.450 [SingleThread] Reading Data exec testconn
Other lesson learned is what happens if the connection is established but the validation query (SELECT 1) gives an error or takes more time than the validation timeout is specified, we are going to have another error like this one: [main] ERROR com.zaxxer.hikari.pool.PoolBase – AppExample-ConnectionPooling – Failed to execute connection test query (Read timed out).
Microsoft Tech Community – Latest Blogs –Read More
how to get the name of current running m script
hello, how can i get the name of the script that is running at the moment, thanks.hello, how can i get the name of the script that is running at the moment, thanks. hello, how can i get the name of the script that is running at the moment, thanks. script, name MATLAB Answers — New Questions
Pushing fonts to desktop
How can we push our brand fonts out to the desktop version of every employee account instead of having them individually installed them?
How can we push our brand fonts out to the desktop version of every employee account instead of having them individually installed them? Read More
Best practise for create sites based on template include folders/files
I have a site with lot of folders and subfolders, and some template documents.
Bases on this site I want to create project sites from a Power App.
I have created a Power App which trigger a Power Automate that trigger a Azure Automation Runbook.
It works, but:
Takes long time to run the runbook. Any optimizing that can be done?
What is the best Powershell cmdlet to create folder/subfolder/files?
And most important question….am I on the right path? In some way it feels like overengineering.
I have a site with lot of folders and subfolders, and some template documents. Bases on this site I want to create project sites from a Power App. I have created a Power App which trigger a Power Automate that trigger a Azure Automation Runbook. It works, but:Takes long time to run the runbook. Any optimizing that can be done?What is the best Powershell cmdlet to create folder/subfolder/files? And most important question….am I on the right path? In some way it feels like overengineering. Read More
Assess and improve your digital skills with the Digital Skills Compass
Do you ever wonder how well you are using technology? Do you want to learn new skills and stay updated in the digital age? Do you need guidance on what training activities to pursue and where to find them?
If you answered yes to any of these questions, then you might be interested in the Digital Skills Compass, a free and easy-to-use tool that helps you assess and improve your digital skills across seven areas: data fluency, effective communication and collaboration, content creation and management, cybersecurity, personal wellbeing, energy use and environment impact, computational thinking and continuous learning.
For anyone who wants to learn new skills, the Digital Skills Compass can help you achieve your goals. Try it today and see for yourself!
Do you ever wonder how well you are using technology? Do you want to learn new skills and stay updated in the digital age? Do you need guidance on what training activities to pursue and where to find them?
If you answered yes to any of these questions, then you might be interested in the Digital Skills Compass, a free and easy-to-use tool that helps you assess and improve your digital skills across seven areas: data fluency, effective communication and collaboration, content creation and management, cybersecurity, personal wellbeing, energy use and environment impact, computational thinking and continuous learning.
For anyone who wants to learn new skills, the Digital Skills Compass can help you achieve your goals. Try it today and see for yourself!
Read More
Rainflow Algorithm needs 3 samples
Hi,
I want to use the build-in rainflow(x,fs) algorithm to calculate the cycles a battery model has run by using it on the State of Charge (&) of the cell. When I try to use the algorithm on the SoC (see picture) I get the following error:
Input time series must have at least 3 samples.
But I set a sample rate fs and as you can see in the picture there is also enough data.
Anyone knows why?Hi,
I want to use the build-in rainflow(x,fs) algorithm to calculate the cycles a battery model has run by using it on the State of Charge (&) of the cell. When I try to use the algorithm on the SoC (see picture) I get the following error:
Input time series must have at least 3 samples.
But I set a sample rate fs and as you can see in the picture there is also enough data.
Anyone knows why? Hi,
I want to use the build-in rainflow(x,fs) algorithm to calculate the cycles a battery model has run by using it on the State of Charge (&) of the cell. When I try to use the algorithm on the SoC (see picture) I get the following error:
Input time series must have at least 3 samples.
But I set a sample rate fs and as you can see in the picture there is also enough data.
Anyone knows why? rainflow, battery MATLAB Answers — New Questions
Unable to Access Microsoft Fabric Trial for Microsoft Build Challenge
Dear Microsoft Team,
I hope this message finds you well.
I am currently participating in the Microsoft Build: Microsoft Fabric challenge collection. Unfortunately, I have been unable to access the Fabric trial version, which is essential for completing the course.
Could you please assist me in resolving this issue? Any guidance or support to help me gain access to the trial version would be greatly appreciated.
Thank you for your attention and assistance.
Best regards,
Tharra Reema
Dear Microsoft Team,I hope this message finds you well.I am currently participating in the Microsoft Build: Microsoft Fabric challenge collection. Unfortunately, I have been unable to access the Fabric trial version, which is essential for completing the course.Could you please assist me in resolving this issue? Any guidance or support to help me gain access to the trial version would be greatly appreciated.Thank you for your attention and assistance.Best regards,Tharra Reema Read More
Monitor and Tune PX4 Host Target Flight Controller with Simulink-Based Plant Model: Mismatched TCP Node
Hi, I’m following the Tutorial here and I’m getting stuck at the last step where the two MATLAB instances are failing to communicate with each other presumably due to mismatched TCP ports. I can’t determine where I may be able to set what ports to sned/receive from.
The following is the Simulink diagnostics output for the first MATLAB instance where I am running PX4Demo_FlightController_top
Updating Model Reference Code Generation Targets
### Starting serial model reference code generation build.
Building FlightController
### Checking status of model reference code generation target for model ‘FlightController’ used in ‘px4Demo_FlightController_top’.
### Model reference code generation target (FlightController.cpp) for model FlightController must be recompiled because FlightController.cpp changed since last build, or it was not compiled.
### Starting build procedure for: FlightController
### Generating code and artifacts to ‘Model specific’ folder structure
### Code for the model reference code generation target for model FlightController is up to date because no functional changes were found in referenced model.
Removing old px4_simulink_app directory: /home/USERNAME/Documents/PX4_Source/Firmware/src/modules/px4_simulink_app.
### Successful completion of build procedure for: FlightController
### Model reference code generation target for FlightController is up to date.
Top Model Build
### Starting build procedure for: px4Demo_FlightController_top
### Generating code and artifacts to ‘Model specific’ folder structure
### Generating code into build folder: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/px4Demo_FlightController_top_ert_rtw
Warning: The Simulink model contains a PX4 PWM Output block and the algorithm to be designed is set as "Design Path Follower in Simulink".
The PWM block output might conflict with the PWM values generated by the default PX4 Controllers in this case.
### Generated code for ‘px4Demo_FlightController_top’ is up to date because no structural, parameter or code replacement library changes were found.
### Saving binary information cache.
Removing old px4_simulink_app directory: /home/USERNAME/Documents/PX4_Source/Firmware/src/modules/px4_simulink_app.
Build path: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/px4Demo_FlightController_top_ert_rtw
### Successful completion of build procedure for: px4Demo_FlightController_top
Build process completed successfully
Build Summary
0 of 2 models built (2 models already up to date)
Build duration: 0h 0m 18.507s
action: EXT_INIT
Creating Target Handler (XCP on TCP/IP)…
Build directory: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/px4Demo_FlightController_top_ert_rtw
Target name: 127.0.0.1
Target port: 17725
Warning: The Simulink model contains a PX4 PWM Output block and the algorithm to be designed is set as "Design Path Follower in Simulink".
The PWM block output might conflict with the PWM values generated by the default PX4 Controllers in this case.
### Starting serial model reference code generation build.
### Checking status of model reference code generation target for model ‘FlightController’ used in ‘px4Demo_FlightController_top’.
### Model reference code generation target (FlightController.cpp) for model FlightController must be recompiled because FlightController.cpp changed since last build, or it was not compiled.
### Starting build procedure for: FlightController
### Generating code and artifacts to ‘Model specific’ folder structure
### Checking the status of code in build folder: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/slprj/ert/FlightController
### Code for the model reference code generation target for model FlightController is up to date because no functional changes were found in referenced model.
Removing old px4_simulink_app directory: /home/USERNAME/Documents/PX4_Source/Firmware/src/modules/px4_simulink_app.
### Successful completion of build procedure for: FlightController
### Model reference code generation target for FlightController is up to date.
Build Summary
0 of 1 models built (1 models already up to date)
Build duration: 0h 0m 3.612s
For referenced models, external mode simulations do not support the following:
The use of blocks to view signals from the target application.
Tuning or uploading of model parameters.
Component:Simulink | Category:Model warning
action: EXT_CONNECT
Connecting to the target…
External Mode Open Protocol Connect command failed
Caused by:
Could not connect to target application: XCP TCP/IP error: Connect failed
Component:Simulink | Category:Block diagram error
Unable to connect to the ‘PX4 Host Target’ target for ‘px4Demo_FlightController_top’.
As you might be able to tell, the code generation and compilation works just fine and I get the popup window saying that "the monitor and tune build is complete". The problematic bit I want to highlight is "Target port: 17725", which is in contrast with the port 4560 specified in Quad_Plant_top.slx. Here is the Simulink Diagnostics output from the Second MATLAB instance where I am running Quad_Plant_top:
An error occurred while running the simulation and the simulation was terminated
Caused by:
MATLAB System block ‘Quad_Plant_top/MATLAB System1’ error occurred when invoking ‘stepImpl’ method of ‘px4HostTarget_TCPIP_Write’. The error was thrown from ‘
‘/home/USERNAME/Documents/MATLAB/SupportPackages/R2022b/toolbox/target/supportpackages/px4/px4examples/exampleTCPFiles/px4HostTarget_TCPIP_Write.m’ at line 42′.
Failed to write from the server. A TCP/IP client must be connected to the server.
Am I just timing things wrong when starting one and resuming (hitting "ok") on the other? Or is there perhaps some setup step I may have forgotten? I could use some guidance.
I am on Ubuntu 18.04.6, using MATLAB/Simulink 2022b, and PX4 firmware v1.12.3.Hi, I’m following the Tutorial here and I’m getting stuck at the last step where the two MATLAB instances are failing to communicate with each other presumably due to mismatched TCP ports. I can’t determine where I may be able to set what ports to sned/receive from.
The following is the Simulink diagnostics output for the first MATLAB instance where I am running PX4Demo_FlightController_top
Updating Model Reference Code Generation Targets
### Starting serial model reference code generation build.
Building FlightController
### Checking status of model reference code generation target for model ‘FlightController’ used in ‘px4Demo_FlightController_top’.
### Model reference code generation target (FlightController.cpp) for model FlightController must be recompiled because FlightController.cpp changed since last build, or it was not compiled.
### Starting build procedure for: FlightController
### Generating code and artifacts to ‘Model specific’ folder structure
### Code for the model reference code generation target for model FlightController is up to date because no functional changes were found in referenced model.
Removing old px4_simulink_app directory: /home/USERNAME/Documents/PX4_Source/Firmware/src/modules/px4_simulink_app.
### Successful completion of build procedure for: FlightController
### Model reference code generation target for FlightController is up to date.
Top Model Build
### Starting build procedure for: px4Demo_FlightController_top
### Generating code and artifacts to ‘Model specific’ folder structure
### Generating code into build folder: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/px4Demo_FlightController_top_ert_rtw
Warning: The Simulink model contains a PX4 PWM Output block and the algorithm to be designed is set as "Design Path Follower in Simulink".
The PWM block output might conflict with the PWM values generated by the default PX4 Controllers in this case.
### Generated code for ‘px4Demo_FlightController_top’ is up to date because no structural, parameter or code replacement library changes were found.
### Saving binary information cache.
Removing old px4_simulink_app directory: /home/USERNAME/Documents/PX4_Source/Firmware/src/modules/px4_simulink_app.
Build path: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/px4Demo_FlightController_top_ert_rtw
### Successful completion of build procedure for: px4Demo_FlightController_top
Build process completed successfully
Build Summary
0 of 2 models built (2 models already up to date)
Build duration: 0h 0m 18.507s
action: EXT_INIT
Creating Target Handler (XCP on TCP/IP)…
Build directory: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/px4Demo_FlightController_top_ert_rtw
Target name: 127.0.0.1
Target port: 17725
Warning: The Simulink model contains a PX4 PWM Output block and the algorithm to be designed is set as "Design Path Follower in Simulink".
The PWM block output might conflict with the PWM values generated by the default PX4 Controllers in this case.
### Starting serial model reference code generation build.
### Checking status of model reference code generation target for model ‘FlightController’ used in ‘px4Demo_FlightController_top’.
### Model reference code generation target (FlightController.cpp) for model FlightController must be recompiled because FlightController.cpp changed since last build, or it was not compiled.
### Starting build procedure for: FlightController
### Generating code and artifacts to ‘Model specific’ folder structure
### Checking the status of code in build folder: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/slprj/ert/FlightController
### Code for the model reference code generation target for model FlightController is up to date because no functional changes were found in referenced model.
Removing old px4_simulink_app directory: /home/USERNAME/Documents/PX4_Source/Firmware/src/modules/px4_simulink_app.
### Successful completion of build procedure for: FlightController
### Model reference code generation target for FlightController is up to date.
Build Summary
0 of 1 models built (1 models already up to date)
Build duration: 0h 0m 3.612s
For referenced models, external mode simulations do not support the following:
The use of blocks to view signals from the target application.
Tuning or uploading of model parameters.
Component:Simulink | Category:Model warning
action: EXT_CONNECT
Connecting to the target…
External Mode Open Protocol Connect command failed
Caused by:
Could not connect to target application: XCP TCP/IP error: Connect failed
Component:Simulink | Category:Block diagram error
Unable to connect to the ‘PX4 Host Target’ target for ‘px4Demo_FlightController_top’.
As you might be able to tell, the code generation and compilation works just fine and I get the popup window saying that "the monitor and tune build is complete". The problematic bit I want to highlight is "Target port: 17725", which is in contrast with the port 4560 specified in Quad_Plant_top.slx. Here is the Simulink Diagnostics output from the Second MATLAB instance where I am running Quad_Plant_top:
An error occurred while running the simulation and the simulation was terminated
Caused by:
MATLAB System block ‘Quad_Plant_top/MATLAB System1’ error occurred when invoking ‘stepImpl’ method of ‘px4HostTarget_TCPIP_Write’. The error was thrown from ‘
‘/home/USERNAME/Documents/MATLAB/SupportPackages/R2022b/toolbox/target/supportpackages/px4/px4examples/exampleTCPFiles/px4HostTarget_TCPIP_Write.m’ at line 42′.
Failed to write from the server. A TCP/IP client must be connected to the server.
Am I just timing things wrong when starting one and resuming (hitting "ok") on the other? Or is there perhaps some setup step I may have forgotten? I could use some guidance.
I am on Ubuntu 18.04.6, using MATLAB/Simulink 2022b, and PX4 firmware v1.12.3. Hi, I’m following the Tutorial here and I’m getting stuck at the last step where the two MATLAB instances are failing to communicate with each other presumably due to mismatched TCP ports. I can’t determine where I may be able to set what ports to sned/receive from.
The following is the Simulink diagnostics output for the first MATLAB instance where I am running PX4Demo_FlightController_top
Updating Model Reference Code Generation Targets
### Starting serial model reference code generation build.
Building FlightController
### Checking status of model reference code generation target for model ‘FlightController’ used in ‘px4Demo_FlightController_top’.
### Model reference code generation target (FlightController.cpp) for model FlightController must be recompiled because FlightController.cpp changed since last build, or it was not compiled.
### Starting build procedure for: FlightController
### Generating code and artifacts to ‘Model specific’ folder structure
### Code for the model reference code generation target for model FlightController is up to date because no functional changes were found in referenced model.
Removing old px4_simulink_app directory: /home/USERNAME/Documents/PX4_Source/Firmware/src/modules/px4_simulink_app.
### Successful completion of build procedure for: FlightController
### Model reference code generation target for FlightController is up to date.
Top Model Build
### Starting build procedure for: px4Demo_FlightController_top
### Generating code and artifacts to ‘Model specific’ folder structure
### Generating code into build folder: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/px4Demo_FlightController_top_ert_rtw
Warning: The Simulink model contains a PX4 PWM Output block and the algorithm to be designed is set as "Design Path Follower in Simulink".
The PWM block output might conflict with the PWM values generated by the default PX4 Controllers in this case.
### Generated code for ‘px4Demo_FlightController_top’ is up to date because no structural, parameter or code replacement library changes were found.
### Saving binary information cache.
Removing old px4_simulink_app directory: /home/USERNAME/Documents/PX4_Source/Firmware/src/modules/px4_simulink_app.
Build path: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/px4Demo_FlightController_top_ert_rtw
### Successful completion of build procedure for: px4Demo_FlightController_top
Build process completed successfully
Build Summary
0 of 2 models built (2 models already up to date)
Build duration: 0h 0m 18.507s
action: EXT_INIT
Creating Target Handler (XCP on TCP/IP)…
Build directory: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/px4Demo_FlightController_top_ert_rtw
Target name: 127.0.0.1
Target port: 17725
Warning: The Simulink model contains a PX4 PWM Output block and the algorithm to be designed is set as "Design Path Follower in Simulink".
The PWM block output might conflict with the PWM values generated by the default PX4 Controllers in this case.
### Starting serial model reference code generation build.
### Checking status of model reference code generation target for model ‘FlightController’ used in ‘px4Demo_FlightController_top’.
### Model reference code generation target (FlightController.cpp) for model FlightController must be recompiled because FlightController.cpp changed since last build, or it was not compiled.
### Starting build procedure for: FlightController
### Generating code and artifacts to ‘Model specific’ folder structure
### Checking the status of code in build folder: /home/USERNAME/MATLAB/Projects/examples/Px4DemoHostTargetWithSimulinkPlant6/work/code/slprj/ert/FlightController
### Code for the model reference code generation target for model FlightController is up to date because no functional changes were found in referenced model.
Removing old px4_simulink_app directory: /home/USERNAME/Documents/PX4_Source/Firmware/src/modules/px4_simulink_app.
### Successful completion of build procedure for: FlightController
### Model reference code generation target for FlightController is up to date.
Build Summary
0 of 1 models built (1 models already up to date)
Build duration: 0h 0m 3.612s
For referenced models, external mode simulations do not support the following:
The use of blocks to view signals from the target application.
Tuning or uploading of model parameters.
Component:Simulink | Category:Model warning
action: EXT_CONNECT
Connecting to the target…
External Mode Open Protocol Connect command failed
Caused by:
Could not connect to target application: XCP TCP/IP error: Connect failed
Component:Simulink | Category:Block diagram error
Unable to connect to the ‘PX4 Host Target’ target for ‘px4Demo_FlightController_top’.
As you might be able to tell, the code generation and compilation works just fine and I get the popup window saying that "the monitor and tune build is complete". The problematic bit I want to highlight is "Target port: 17725", which is in contrast with the port 4560 specified in Quad_Plant_top.slx. Here is the Simulink Diagnostics output from the Second MATLAB instance where I am running Quad_Plant_top:
An error occurred while running the simulation and the simulation was terminated
Caused by:
MATLAB System block ‘Quad_Plant_top/MATLAB System1’ error occurred when invoking ‘stepImpl’ method of ‘px4HostTarget_TCPIP_Write’. The error was thrown from ‘
‘/home/USERNAME/Documents/MATLAB/SupportPackages/R2022b/toolbox/target/supportpackages/px4/px4examples/exampleTCPFiles/px4HostTarget_TCPIP_Write.m’ at line 42′.
Failed to write from the server. A TCP/IP client must be connected to the server.
Am I just timing things wrong when starting one and resuming (hitting "ok") on the other? Or is there perhaps some setup step I may have forgotten? I could use some guidance.
I am on Ubuntu 18.04.6, using MATLAB/Simulink 2022b, and PX4 firmware v1.12.3. px4 MATLAB Answers — New Questions
Microsoft UI Automation and Edge v125+
We are using the C++ UIA library to run Automations in Edge and we have noticed a rather large performance slowdown since updating to Edge version 125.
The major offender seems to be a call to IUIAutomationElement::FindAll, although never the speediest of requests, this was working fine with version 124 and below.
We have also tested the beta release of 126 and the Dev version of 127 and are seeing the same issue.
UIA performance when interacting with Chrome, and other desktop applications is unaffected, it is only when interacting with the latest Edge releases we are seeing a problem.
We are using the C++ UIA library to run Automations in Edge and we have noticed a rather large performance slowdown since updating to Edge version 125. The major offender seems to be a call to IUIAutomationElement::FindAll, although never the speediest of requests, this was working fine with version 124 and below. We have also tested the beta release of 126 and the Dev version of 127 and are seeing the same issue. UIA performance when interacting with Chrome, and other desktop applications is unaffected, it is only when interacting with the latest Edge releases we are seeing a problem. Read More
Use sfit object for multiobjective optimization
Hello everybody,
I want to solve an optimization problem regarding 3 objectives and 2 variables. The data that needs to be optimized may differ dependant on the users input.
My approach was to first generate arrays or vectors that hold the in- and output data. I can now generate 3 surface fit (sfit) objects for every objective that needs to be optimized. The gamultibj algorithm now suggests that I use these functions to create a fitness function, which then will be optimized. However I dont understand how I can create a useable fitness function out of the previously generated sfit objects. To me it seems the gamultiobj algorithm only wirks with a "hard coded" fitness function.
Relevant Code:
% v_n_ges / v_n_P holds all variables
% v_EW / v_T_med and v_K_med holds all objectives
% generate functions to optimize
EW_fit = fit([v_n_ges, v_n_P], v_EW, ‘poly22’);
T_med_fit = fit([v_n_ges, v_n_P], v_T_med, ‘poly22’);
K_med_fit = fit([v_n_ges, v_n_P], v_K_med, ‘poly22’);
% Multiobjective Optimization via fitness function
fitnessfcn = @Fitnessfcn;
numberOfVariables = 3;
[x, fval] = gamultiobj(fitnessfcn, numberOfVariables);
%% Generate fitness function (in progress)
function f = Fitnessfcn (x) % The fitness function would need an input row vector size 2 containing n_ges and n_P
% but also the sfit objects
% Allocate output
f = zeros(1,3);
f(1) = @EW_fit;
f(2) = @T_med_fit;
f(3) = @K_med_fit;
end
Also I was wondering if there is any way to skip the "sfit-step" and just directly work with the vectors/arrays.
Thanks in advance for your support and with best regardsHello everybody,
I want to solve an optimization problem regarding 3 objectives and 2 variables. The data that needs to be optimized may differ dependant on the users input.
My approach was to first generate arrays or vectors that hold the in- and output data. I can now generate 3 surface fit (sfit) objects for every objective that needs to be optimized. The gamultibj algorithm now suggests that I use these functions to create a fitness function, which then will be optimized. However I dont understand how I can create a useable fitness function out of the previously generated sfit objects. To me it seems the gamultiobj algorithm only wirks with a "hard coded" fitness function.
Relevant Code:
% v_n_ges / v_n_P holds all variables
% v_EW / v_T_med and v_K_med holds all objectives
% generate functions to optimize
EW_fit = fit([v_n_ges, v_n_P], v_EW, ‘poly22’);
T_med_fit = fit([v_n_ges, v_n_P], v_T_med, ‘poly22’);
K_med_fit = fit([v_n_ges, v_n_P], v_K_med, ‘poly22’);
% Multiobjective Optimization via fitness function
fitnessfcn = @Fitnessfcn;
numberOfVariables = 3;
[x, fval] = gamultiobj(fitnessfcn, numberOfVariables);
%% Generate fitness function (in progress)
function f = Fitnessfcn (x) % The fitness function would need an input row vector size 2 containing n_ges and n_P
% but also the sfit objects
% Allocate output
f = zeros(1,3);
f(1) = @EW_fit;
f(2) = @T_med_fit;
f(3) = @K_med_fit;
end
Also I was wondering if there is any way to skip the "sfit-step" and just directly work with the vectors/arrays.
Thanks in advance for your support and with best regards Hello everybody,
I want to solve an optimization problem regarding 3 objectives and 2 variables. The data that needs to be optimized may differ dependant on the users input.
My approach was to first generate arrays or vectors that hold the in- and output data. I can now generate 3 surface fit (sfit) objects for every objective that needs to be optimized. The gamultibj algorithm now suggests that I use these functions to create a fitness function, which then will be optimized. However I dont understand how I can create a useable fitness function out of the previously generated sfit objects. To me it seems the gamultiobj algorithm only wirks with a "hard coded" fitness function.
Relevant Code:
% v_n_ges / v_n_P holds all variables
% v_EW / v_T_med and v_K_med holds all objectives
% generate functions to optimize
EW_fit = fit([v_n_ges, v_n_P], v_EW, ‘poly22’);
T_med_fit = fit([v_n_ges, v_n_P], v_T_med, ‘poly22’);
K_med_fit = fit([v_n_ges, v_n_P], v_K_med, ‘poly22’);
% Multiobjective Optimization via fitness function
fitnessfcn = @Fitnessfcn;
numberOfVariables = 3;
[x, fval] = gamultiobj(fitnessfcn, numberOfVariables);
%% Generate fitness function (in progress)
function f = Fitnessfcn (x) % The fitness function would need an input row vector size 2 containing n_ges and n_P
% but also the sfit objects
% Allocate output
f = zeros(1,3);
f(1) = @EW_fit;
f(2) = @T_med_fit;
f(3) = @K_med_fit;
end
Also I was wondering if there is any way to skip the "sfit-step" and just directly work with the vectors/arrays.
Thanks in advance for your support and with best regards sfit, gamultiobj, multiobjective optimization MATLAB Answers — New Questions
How to import PST to Gmail Without Outlook?
Basically you will need to install Advik PST to Gmail Converter. This software will transfer emails from PST to Gmail account. With this application, you can import PST to Gmail without Outlook in bulk. All the emails and folders will be transfered successfuly.
Steps to import PST to Gmail without Outlook
Run Advik PST to Gmail Converter in your PC.Click Add File and Outlook.pst file.Select mailbox folders and click Next.Choose Gmail as saving option.Enter Gmail credentials and Click Convert.
Done! This is how you can import PST to Gmail without Outlook.
Basically you will need to install Advik PST to Gmail Converter. This software will transfer emails from PST to Gmail account. With this application, you can import PST to Gmail without Outlook in bulk. All the emails and folders will be transfered successfuly. Steps to import PST to Gmail without OutlookRun Advik PST to Gmail Converter in your PC.Click Add File and Outlook.pst file.Select mailbox folders and click Next.Choose Gmail as saving option.Enter Gmail credentials and Click Convert.Done! This is how you can import PST to Gmail without Outlook. Read More
My onedrive when I Google my old photos ,videos,albums ,files get lost ,which is I don’t get it why?
onedrive never backup my photos ,files anyway is failing why? Try the best as you can please Microsoft.
onedrive never backup my photos ,files anyway is failing why? Try the best as you can please Microsoft. Read More
How to Convert OST to PST in 2024?
Download the Advik OST to PST Converter software in your PC. This is the best tool to convert OST file to PST format. The software considered amoung the top leading application to export emails, contacts and calendar data from Outlook data file into PST file. You can convert multiple OST files to PST in one single attempt. Try the demo version which is completely free.
Steps to Convert OST to PST free
Launch Advik OST to PST Converter in your PC.Click Select Files and add Outlook.ost file.Select mailbox folders and click Next.Choose PST as saving option.Click Convert button.
Finished! The software will imideatly start converting OST file to PST format.
Download the Advik OST to PST Converter software in your PC. This is the best tool to convert OST file to PST format. The software considered amoung the top leading application to export emails, contacts and calendar data from Outlook data file into PST file. You can convert multiple OST files to PST in one single attempt. Try the demo version which is completely free. Steps to Convert OST to PST freeLaunch Advik OST to PST Converter in your PC.Click Select Files and add Outlook.ost file.Select mailbox folders and click Next.Choose PST as saving option.Click Convert button.Finished! The software will imideatly start converting OST file to PST format. Read More
How to Open/Import OST file in Outlook?
Microsoft doesn’t provide any option to open OST file in Outlook. However you can try the alternate solution. Actually you can import data in .pst file in Outlook. So you have to convert OST to PST format. For that you will need to download and install Advik OST to PST Converter from official website of Advik Software.
With this software you can convert OST into PST format. After that import PST file in Outlook 2016, 2019 or 2021 version.
Microsoft doesn’t provide any option to open OST file in Outlook. However you can try the alternate solution. Actually you can import data in .pst file in Outlook. So you have to convert OST to PST format. For that you will need to download and install Advik OST to PST Converter from official website of Advik Software. With this software you can convert OST into PST format. After that import PST file in Outlook 2016, 2019 or 2021 version. Read More
AUTHENTICATION IN AZURE LOAD TESTING SERIES: GENERATE AND REFRESH ACCESS TOKENS WITH JMeter
Whenever you run load tests on your endpoints in Azure Load Testing, there might be a situation where your endpoints require an access token. We have seen that before load testing these endpoints, most users generate an access token and store it in the Azure Key Vault. They then pass this token as a variable in the Header of the request as a bearer token to authenticate at the endpoint. But there might be a few problems with this approach:
Sometime has elapsed between the act of storing the token in the key vault and the start of execution of the test. There can be a case where the token might expire during the test run and the request at the endpoints start throwing errors.
Only one static token is stored in the key vault and is used for all the requests. When we are load testing with multiple Virtual Users, we want a situation where all users have a unique access token while making the requests, as it will mimic a real-life scenario. Currently scaling is there, but the authenticity is lost.
Most access tokens have a lifetime of around 60-75 minutes on an average. When we are running load tests for longer durations (E.g.- Soak Tests), it is almost certain that the access token will get expired during the execution of the test. We would like to have some sort of control where the service intelligently identifies when a token is going to get expired, and renews it, so that the test can carry on as usual.
This blog covers how you can create a JMeter Test plan, where you can implement a mechanism to generate and refresh access tokens which are unique for every user and run it at scale in Azure Load Testing.
PREREQUISITES
An Azure Load Testing Resource
Azure Key Vault for storing secrets
JMeter
Azure Load Testing Resource configured to fetch secrets during runtime
CREATING THE TEST PLAN IN THE JMETER GUI
Test Plan
Create a Test Plan in JMeter. Add your variables in the “User defined variable section.” If you are testing an Azure endpoint, you may need to use the GetSecret function to store the client_ID, client_secret, tenant_ID etc. Proceed to the config elements and add a HTTP Cookie Manager and HTTP Cache Manager. Make sure to select the option to clear cache and cookies on each iteration.
Thread Group
Create a Thread Group and provide the required inputs. Enable the “Start Next Thread Loop” Option. Set the Loop Count to infinite and set the test duration.
Token Loop
Inside the Thread Group, create a Loop Controller and set the loop count to infinite. Further, inside the loop controller, add two more controllers: The transaction controller, which will generate the token and the runtime controller, which will refresh the token.
Access Token Generation
Inside the Transaction Controller, add an HTTP Sampler and setup a POST request to the token endpoint to fetch the access token. Set “grant type” as “client credentials” and “ignore Cache” as “true”. Add a HTTP Header Manager to the sampler and add the Content-Type as “application/x-www-form-urlencoded” and set the Authorization depending upon the configuration done at the token endpoint.
Access Token Extraction
Add a JSON extractor to extract the access token and set it in a variable which will be used going forward.
Access Token Refresh
Proceed to the runtime controller. In the Runtime section, specify the time after which you want the token to be refreshed. Usually token lasts for 60 minutes. Make sure to include some buffer time before token expiry. You can also extract the expiry time of the token, store it in a variable and pass it here.
Target Endpoint
Add another HTTP Sampler, this time sending a GET request to the target endpoint. In the HTTP Header Manager, set Authorization to Bearer ${token}.
Add some listeners like View Results tree, Summary Report etc to analyse the results locally. Results should look something like this.
Now the JMeter script is complete and can be used in Azure Load Testing to run it at scale.
Creating and Running the Load Test
Upload the JMeter Script in the Test plan tab.
Configure the Secrets section under the Parameters tab. Now, we are all set to launch the test.
CONCLUSION
Now you can run your load tests for an even longer duration without having to worry about the expiry of access tokens.
Try this this out and let us know if this works for you. Please use the comments section or use our feedback forum.
HAPPY LOAD TESTING!!
Microsoft Tech Community – Latest Blogs –Read More
Changes coming to the Azure Update Delivery service tag
Azure Update Delivery service tag is being deprecated starting July 1, 2024. If your Azure Firewall is configured to receive Windows updates using this service tag, you’ll need to migrate away from the service tag and use Azure Firewall application rules instead.
In this article, let’s talk about the Azure Update Delivery service tag, what’s changing, and specific actions to take today.
What is the Azure Update Delivery service tag?
Azure Firewall service tags are collections of IP addresses and ranges associated with a named resource. They simplify the process of configuring your firewall. The tags are automatically updated to reflect changes to IP addresses. This means that you don’t need to monitor or manually adjust your firewall rules with such address changes.
Tip: Read an overview of Azure Firewall service tags.
The AzureUpdateDelivery service tag has been used to enable Windows devices to scan for Windows updates. The process of scanning connects a Windows device to Microsoft Windows Update services, checking for any necessary operating system updates, drivers, firmware, and applications.
The AzureUpdateDelivery service tag allows the Azure Firewall to recognize the specific IP addresses used by Microsoft Windows Update scanning. This helps ensure that your Windows devices are securely connecting to the correct Microsoft services with confidence.
After your Windows device completes a Windows Update scan, it identifies the needed content updates. Then, the device downloads and verifies the content using the URLs that it learned during the scan. Installation follows.
To enable Azure Firewall to authorize these downloads, you may have used the “AzureFrontDoor.FirstParty” service tag. This service tag represents a list of trusted IP addresses from which you can download update content. After download, the content is validated for security and integrity before it’s installed on your device.
What is changing?
Due to changes in the workflow, content downloads may now come from trusted third-party Content Delivery Networks (CDN) outside of the Azure network. However, these aren’t addressable through a service tag. Therefore, while scanning for updates, the secondary stage of content download might fail.
We recommend switching from using service tags (like AzureUpdateDelivery and AzureFrontDoor.FirstParty) to application firewall rules. Keep in mind that third-party CDNs can’t create Azure Firewall service tags that contain their IP addresses. When you shift to using Azure Firewall application rules with Fully Qualified Domain Name (FQDN) filtering tags, you’ll perform the same task using DNS hosts.
Continue reading to learn more about this recommended process.
How do I know if I’m using the Azure Update Delivery service tag?
The AzureUpdateDelivery and AzureFrontDoor.FirstParty service tags are not automatically applied. A network administrator, possibly you, or someone before you, must have explicitly applied them as Azure Firewall rules.
If you’re not sure whether these tags are in use, check your Azure Firewall policy network rules for these specific destination service tags. For more information on firewall rules, refer to the Azure Firewall Basic features documentation.
What should I do if I use the Azure Update Delivery service tag?
Please move away from using the AzureUpdateDelivery and AzureFrontDoor.FirstParty service tags. Instead, follow these recommendations for enterprise scenarios:
Azure Firewall application rule with the Windows Update fully qualified domain name (FQDN) tag. Set your Azure Firewall policy with an application rule configured for the Windows Update FQDN tag. This tells the firewall exactly which Windows Update-related hosts to trust when scanning and downloading content. Use this strategy for both Windows desktop and server devices.
Use published Microsoft guidance for your firewall or proxy. Microsoft publishes guidance on how you can configure your enterprise firewall and proxy services to enable proper access to Windows Update services.
Use Windows Service Update Services (WSUS). This enterprise solution provides a service inside your network permitter. That’s where your Windows devices can scan and download update content.
Creating Windows Update application firewall rules
We recommend that you use the Windows Update FQDN tag to configure your Azure Firewall to permit Windows updates for your Windows devices. Azure manages the FQDNs associated with Windows Update for both scanning and content download.
You can do this by adding an application rule to your Azure Firewall policy resource. Note that you can create these application FQDN filtering rules in any Azure Firewall (from basic to premium). See an example in Application FQDN filtering rules.
When you create the application rule, configure it with the following:
From the Destination Types options, choose FQDN Tag.
In the FQDN Tags option, select the pre-defined FQDN tag called WindowsUpdate.
For the Protocol option, enter “HTTP:80,HTTPS:443.”
Leave any TLS inspection option unselected if your firewall offers it.
After saving this application rule and allowing it to be deployed, your Windows devices will properly scan, download, and install updates.
Using Microsoft guidance for enterprise firewalls and proxies
If you use your own firewall or proxy services, then configure them per the official Microsoft guidelines:
Manage connection endpoints for Windows 11 Enterprise
Manage connection endpoints for Windows 10 Enterprise
This documentation applies to both Windows client and server devices.
Using Windows Server Update Services
Another option is to keep all Windows updates limited inside your network. That way, your devices never connect to the internet for scanning or downloading. You can achieve this using WSUS.
In this case, a Windows Server is configured with the WSUS feature, and Windows devices are configured to use this server for both scanning and content download.
Follow guidance on deploying and using WSUS here:
Deploy Windows Server Update Services
Plan deployment for updating Windows VMs in Azure
Azure Update Delivery service tags have been marked for deprecation for some time now (find it in Azure service tags overview). Deprecation isn’t just a part of a product’s lifecycle but an essential part of your larger security strategy as you keep your environment up to date. Thankfully, you have two possible solutions to choose from. Let’s get you ready for July 1st!
Continue the conversation. Find best practices. Bookmark the Windows Tech Community, then follow us @MSWindowsITPro on X/Twitter. Looking for support? Visit Windows on Microsoft Q&A.
Microsoft Tech Community – Latest Blogs –Read More
The filtfilt function is different in different versions
When I used filtfilt in version R2019b, I had to use input data in double format, but in version R2024, functions can recognize data in single format.But when I increased the order of the filter from second to third order, it became clear that the single format version produced the wrong result, and the result using the double version is still right.
I want to know why, please help me.When I used filtfilt in version R2019b, I had to use input data in double format, but in version R2024, functions can recognize data in single format.But when I increased the order of the filter from second to third order, it became clear that the single format version produced the wrong result, and the result using the double version is still right.
I want to know why, please help me. When I used filtfilt in version R2019b, I had to use input data in double format, but in version R2024, functions can recognize data in single format.But when I increased the order of the filter from second to third order, it became clear that the single format version produced the wrong result, and the result using the double version is still right.
I want to know why, please help me. filtfilt, matlab, lowpass MATLAB Answers — New Questions
How can I solve this error message? ” The generated code exceeds the available memory on the processor. It uses 12.1% of available program memory and 186.6% of available Data memory.”
We are doing the simulink with arduino and chage the fft.
Our simulink cording is this photo.
But When we start Simulink We can’t solve this error message "
The generated code exceeds the available memory on the processor. It uses 12.1% of available program memory and 186.6% of available Data memory."
Please…We are doing the simulink with arduino and chage the fft.
Our simulink cording is this photo.
But When we start Simulink We can’t solve this error message "
The generated code exceeds the available memory on the processor. It uses 12.1% of available program memory and 186.6% of available Data memory."
Please… We are doing the simulink with arduino and chage the fft.
Our simulink cording is this photo.
But When we start Simulink We can’t solve this error message "
The generated code exceeds the available memory on the processor. It uses 12.1% of available program memory and 186.6% of available Data memory."
Please… fft MATLAB Answers — New Questions
create a 3D average curve from two 3D curves
I have curves M1 and M2 composed of x nodes in space.
Is it possible to create an average curve (up to a specific height, from bottom to top – red curve) as in the figure?
load M1_and_M2.mat
figure
plot3(M1(:,1),M1(:,2),M1(:,3),’mo’,’Markersize’,4);
hold on
plot3(M2(:,1),M2(:,2),M2(:,3),’go’,’Markersize’,4);
hold off
axis equal
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z’)
grid offI have curves M1 and M2 composed of x nodes in space.
Is it possible to create an average curve (up to a specific height, from bottom to top – red curve) as in the figure?
load M1_and_M2.mat
figure
plot3(M1(:,1),M1(:,2),M1(:,3),’mo’,’Markersize’,4);
hold on
plot3(M2(:,1),M2(:,2),M2(:,3),’go’,’Markersize’,4);
hold off
axis equal
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z’)
grid off I have curves M1 and M2 composed of x nodes in space.
Is it possible to create an average curve (up to a specific height, from bottom to top – red curve) as in the figure?
load M1_and_M2.mat
figure
plot3(M1(:,1),M1(:,2),M1(:,3),’mo’,’Markersize’,4);
hold on
plot3(M2(:,1),M2(:,2),M2(:,3),’go’,’Markersize’,4);
hold off
axis equal
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z’)
grid off curve, nodes, average, mean, 3d plots, 3d, interpolation, interp MATLAB Answers — New Questions