Month: June 2024
Windows 11 not refreshing
Recently I installed Windows 11 and hence then my windows doesn’t refresh automatically. Every time I have to refresh manually to see any chances both in desktop and in folders.
Tried everything found in the net. Nothing working.
I run windows update, does some tweaks in the registry, run certain commands in the command prompt… nothing working.
Please help.
Recently I installed Windows 11 and hence then my windows doesn’t refresh automatically. Every time I have to refresh manually to see any chances both in desktop and in folders.Tried everything found in the net. Nothing working.I run windows update, does some tweaks in the registry, run certain commands in the command prompt… nothing working.Please help. Read More
Windows 11 just started to chew up RAM. ~15 GB unaccounted for.
Hey guys, possible this is a known thing, but in the last few days, I’ve noticed a huge amount of memory getting consumed by seemingly nothing or some background service. Which I only really noticed since Star Citizen complained about having less than 8 GB of free memory.
I have 64 GB of RAM here, and ~15 GB is not accounted for. The consumption got so out of hand that I had to restart my computer to keep it at bay….
I sort of wonder if this is that new Windows 11 recording feature.
not sure, any ideas?
Is there any software that can tell me what’s happening in the background?
Hey guys, possible this is a known thing, but in the last few days, I’ve noticed a huge amount of memory getting consumed by seemingly nothing or some background service. Which I only really noticed since Star Citizen complained about having less than 8 GB of free memory. I have 64 GB of RAM here, and ~15 GB is not accounted for. The consumption got so out of hand that I had to restart my computer to keep it at bay….I sort of wonder if this is that new Windows 11 recording feature.not sure, any ideas?Is there any software that can tell me what’s happening in the background? Read More
Disable “Share to Outlook” options in Microsoft teams for tenant
Hello Everyone,
I am looking for assistance in disabling the “Share to Outlook” option across our tenant, either through the Teams admin center or via PowerShell. Despite my efforts to search for a solution, I haven’t been able to find the correct approach.
If anyone could provide guidance or share a method to accomplish this, it would be greatly appreciated.
Thank you in advance for your help!
Hello Everyone, I am looking for assistance in disabling the “Share to Outlook” option across our tenant, either through the Teams admin center or via PowerShell. Despite my efforts to search for a solution, I haven’t been able to find the correct approach. If anyone could provide guidance or share a method to accomplish this, it would be greatly appreciated.Thank you in advance for your help! Read More
Azure SQL Database Contained user creation Issue
I am working on a solution to integrate the Azure FunctionApp with Azure SQL Database using Managed Identity. Resources are provisioned through terraform and the function app is now having a user assigned managed Identity. However the final step to add the managed identity as a contanied user inside the Azure SQL Database is failing/user is not created inside the Azure SQL database. Here are the steps I have tried.
Approach 1.
Got the below error
I am working on a solution to integrate the Azure FunctionApp with Azure SQL Database using Managed Identity. Resources are provisioned through terraform and the function app is now having a user assigned managed Identity. However the final step to add the managed identity as a contanied user inside the Azure SQL Database is failing/user is not created inside the Azure SQL database. Here are the steps I have tried. Approach 1. – task: AzureCLI@2 displayName: Determine SQL Server SID for managed identity created for Az Func inputs: azureSubscription: ${{variables.devServiceConnection}} scriptType: pscore scriptLocation: inlineScript failOnStandardError: false inlineScript: | # We need to have the ApplicationId of the App Registration that represents the # WebApp. The SID is calculated based on the ApplicationId $apiSp = az ad sp list –display-name mi-afsintegration-dev | ConvertFrom-Json $appId = $apiSp.appId [guid]$guid = [System.Guid]::Parse($appId) foreach ($byte in $guid.ToByteArray()) { $byteGuid += [System.String]::Format(“{0:X2}”, $byte) } $sid = “0x” + $byteGuid Write-Host “##vso[task.setvariable variable=mi-afsintegration-dev.Sid]$sid” – task: SqlAzureDacpacDeployment@1 displayName: ‘Create login for managed identity’ inputs: azureSubscription: ${{variables.devServiceConnection}} ServerName: ‘$(SQL_ServerName)’ DatabaseName: ‘$(DB_Name)’ SqlUsername: ‘$(SQL_Username)’ SqlPassword: ‘$(SQL_Password)’ deployType: ‘inlineSqlTask’ sqlInline: | IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = ‘mi-afsintegration-dev’) BEGIN CREATE USER [mi-afsintegration-dev] WITH sid = $(sid), TYPE = E ALTER ROLE db_datareader ADD MEMBER [mi-afsintegration-dev]; ALTER ROLE db_datawriter ADD MEMBER [mi-afsintegration-dev]; END IpDetectionMethod: ‘AutoDetect’ Got the below error Exception calling “Parse” with “1” argument(s): “Unrecognized Guid format.” At D:a_tempazureclitaskscript1717787636114_inlinescript.ps1:7 char:1 + [guid]$guid = [System.Guid]::Parse($appId) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : FormatException ##[error]Script failed with exit code: 1 Have no idea, why this error is coming up. Approach 2. Removing the Azure CLI task and trying to create the SQL User with the managed Identity directly. However the user is not still created in the DB, but there are no errors this time. – task: SqlAzureDacpacDeployment@1 displayName: ‘Create login for managed identity’ inputs: azureSubscription: ${{variables.devServiceConnection}} ServerName: ‘$(SQL_ServerName)’ DatabaseName: ‘$(DB_Name)’ SqlUsername: ‘$(SQL_Username)’ SqlPassword: ‘$(SQL_Password)’ deployType: ‘inlineSqlTask’ sqlInline: | IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = ‘mi-afsintegration-dev’) BEGIN CREATE USER [mi-afsintegration-dev] FROM EXTERNAL PROVIDER ALTER ROLE db_datareader ADD MEMBER [mi-afsintegration-dev]; ALTER ROLE db_datawriter ADD MEMBER [mi-afsintegration-dev]; END IpDetectionMethod: ‘AutoDetect’ Can someone please provide any guidance on how to get this done? ThanksDD Read More
Referencing items in a document
Hi all,
I seek guidance on the best and easiest practices to achieve the following.
First, let me paint the use case.
I have a template that around 50 people will use to create new and ongoing instances of this document.
In this document, they detail how a system will be set up for their client. This setup includes many details that they document in a process flow methodology. They will mention key things like reports, rules, in-product queries, screen changes, and so on that need to be done as part of the solution.
What I am looking to achieve is that a list of each of these reports, rules, in-product queries, and screen changes are captured at the end of the document, creating a succinct list of what is needed for each. For example, the user creating the document may mention ten different reports that are needed. I, therefore, need a section called Reports, which will reference every report mentioned and the page(s) on which it was mentioned. Then, I want the same for the rules, in-product queries, and screen changes.
Since the users creating this document are not Word experts, I want it to be easy for them to “mark” in the text they are typing that this is a report. Marking this will then add it to the reports section at the end of the document.
I would love to hear people’s ideas on achieving this.
Thanks,
Hi all,I seek guidance on the best and easiest practices to achieve the following. First, let me paint the use case.I have a template that around 50 people will use to create new and ongoing instances of this document.In this document, they detail how a system will be set up for their client. This setup includes many details that they document in a process flow methodology. They will mention key things like reports, rules, in-product queries, screen changes, and so on that need to be done as part of the solution. What I am looking to achieve is that a list of each of these reports, rules, in-product queries, and screen changes are captured at the end of the document, creating a succinct list of what is needed for each. For example, the user creating the document may mention ten different reports that are needed. I, therefore, need a section called Reports, which will reference every report mentioned and the page(s) on which it was mentioned. Then, I want the same for the rules, in-product queries, and screen changes. Since the users creating this document are not Word experts, I want it to be easy for them to “mark” in the text they are typing that this is a report. Marking this will then add it to the reports section at the end of the document. I would love to hear people’s ideas on achieving this. Thanks, Read More
Can I transfer files after work and school’s OneDrive account is out of service.
My university has stopped supporting OneDrive storage. I would an annual subscription to transfer those data out of Onedrive. Can I do it? I don’t want to lose all of them.
My university has stopped supporting OneDrive storage. I would an annual subscription to transfer those data out of Onedrive. Can I do it? I don’t want to lose all of them. Read More
Architecture of teams tab app?
I’m looking into a teams tab integration for a web app. The idea is this teams tab app will just be a static page for now with some buttons that redirects users. When reading the docs on getting started building I noticed they tell you to provision and deploy your app. I’m wondering if this means the app is actually deployed somewhere (running on a machine) and teams just embeds it or if teams is downloading the source code when you install an app on your client? The ultimate goal is to submit this to MS to publish to the MS store but I’m having trouble understanding what is actually being hosted and how teams accesses the content. Any information would be helpful!
I’m looking into a teams tab integration for a web app. The idea is this teams tab app will just be a static page for now with some buttons that redirects users. When reading the docs on getting started building I noticed they tell you to provision and deploy your app. I’m wondering if this means the app is actually deployed somewhere (running on a machine) and teams just embeds it or if teams is downloading the source code when you install an app on your client? The ultimate goal is to submit this to MS to publish to the MS store but I’m having trouble understanding what is actually being hosted and how teams accesses the content. Any information would be helpful! Read More
New Outlook Desktop 365 Add-ins Not Showing on Secondary Mailboxes
I’m testing the New Outlook desktop version, and I have encountered an issue with add-ins. My primary inbox is Jeff@furni*******.com, and when I create a new email from this account, the signature add-ins load fine. I am using the CodeTwo 365 Signatures add-in, but it seems that the add-ins are displayed only for the primary default inbox and not for any other mailboxes. However, when I create a new email from another inbox, such as Jeff@edro*******.com, the add-in pane doesn’t load, and the signatures are not imported.
This problem seems specific to the new Outlook desktop version. When I use the Outlook web app at https://outlook.office365.com/ or the old Outlook desktop version, the add-ins load correctly for all mailboxes.
It appears that the new Outlook desktop version only loads add-ins based on the primary mailbox. Even if I switch to another mailbox account, the add-ins do not load, unlike in the desktop and web versions where they load as expected once I choose another mailbox on the left pane and click compose email ill see the addins assigned to that mailbox on the editor pane.
Now if I actually change one of the mailboxes to “Set as Primary Account” the addins will load fine but only for that mailbox.
Version Details:
New Outlook Desktop Version:
Microsoft Outlook Version: 1.2024.529.200 (Production)Client Version: 20240531006.09WebView2 Version: 125.0.2535.85Session ID: bd1b8ccd-6d00-5b4b-bb4a-1307f365c0bf
Old Outlook Desktop Version:
Microsoft® Outlook® for Microsoft 365 MSO Version 2405 Build 16.0.17628.20006 64-bit
Is this a known issue, and are there any workarounds or solutions available?
I’m testing the New Outlook desktop version, and I have encountered an issue with add-ins. My primary inbox is Jeff@furni*******.com, and when I create a new email from this account, the signature add-ins load fine. I am using the CodeTwo 365 Signatures add-in, but it seems that the add-ins are displayed only for the primary default inbox and not for any other mailboxes. However, when I create a new email from another inbox, such as Jeff@edro*******.com, the add-in pane doesn’t load, and the signatures are not imported. This problem seems specific to the new Outlook desktop version. When I use the Outlook web app at https://outlook.office365.com/ or the old Outlook desktop version, the add-ins load correctly for all mailboxes.It appears that the new Outlook desktop version only loads add-ins based on the primary mailbox. Even if I switch to another mailbox account, the add-ins do not load, unlike in the desktop and web versions where they load as expected once I choose another mailbox on the left pane and click compose email ill see the addins assigned to that mailbox on the editor pane. Now if I actually change one of the mailboxes to “Set as Primary Account” the addins will load fine but only for that mailbox. Version Details:New Outlook Desktop Version:Microsoft Outlook Version: 1.2024.529.200 (Production)Client Version: 20240531006.09WebView2 Version: 125.0.2535.85Session ID: bd1b8ccd-6d00-5b4b-bb4a-1307f365c0bfOld Outlook Desktop Version:Microsoft® Outlook® for Microsoft 365 MSO Version 2405 Build 16.0.17628.20006 64-bitIs this a known issue, and are there any workarounds or solutions available? Read More
Request By shows by creator and not person who requested
I have created a leave request flow in PowerAutomate.
Employees fill out a form (on Microsoft Forms) and this gets sent to the department manager to approve and then to the Managing Director to finalise approval.
For some reason, in Teams, it is showing that it was requested by me (as I created the flow) and not the person requesting the leave.
Is there a way I can change this?
I have created a leave request flow in PowerAutomate. Employees fill out a form (on Microsoft Forms) and this gets sent to the department manager to approve and then to the Managing Director to finalise approval. For some reason, in Teams, it is showing that it was requested by me (as I created the flow) and not the person requesting the leave. Is there a way I can change this? Read More
How would one go about using Matlab to stop data acquisition at a certain threshold?
I’m working on a project involving taking in data, and I need to design a code which will stop the data collection once a certain threshold has been reached. I have a separate Python based program which I am using to take in the data, but I want to use Matlab in order to examine the data, while it is being acquired, and stop dats acquisition at a certain threshold. So to say, once data X reaches threshold Y, then warning Z will be displayed and data acquisition will be discontinued.I’m working on a project involving taking in data, and I need to design a code which will stop the data collection once a certain threshold has been reached. I have a separate Python based program which I am using to take in the data, but I want to use Matlab in order to examine the data, while it is being acquired, and stop dats acquisition at a certain threshold. So to say, once data X reaches threshold Y, then warning Z will be displayed and data acquisition will be discontinued. I’m working on a project involving taking in data, and I need to design a code which will stop the data collection once a certain threshold has been reached. I have a separate Python based program which I am using to take in the data, but I want to use Matlab in order to examine the data, while it is being acquired, and stop dats acquisition at a certain threshold. So to say, once data X reaches threshold Y, then warning Z will be displayed and data acquisition will be discontinued. data acquisition MATLAB Answers — New Questions
I have the wrong code. How should I modify it to accomplish the goal?
Post Content Post Content homework MATLAB Answers — New Questions
How do i extract ‘x’ and ‘y’data from ‘z’data? f(x,y)=z
I have ‘x’ data, ‘y’ data, ‘z1’ data ‘z2’ data.
It has two variable values(‘z1’, ‘z2’) at the same coordinates(x,y).
x : an integer from 1 to 13
y : an integer from 1 to 19
Z1: 13*19
I used cftool to plot the mesh. ( Interpolation)
How do I extract ‘x’ and ‘y’ data from ‘z1’ ‘z2’?
I want to estimate the coordinates by comparing the x,y data( extracted through z1)
with the x,y data (extracted through z2).
A simple example is similar to finding approximate coordinates by estimating longitude based on time and latitude based on temperature, (confined to a northern (lower hemisphere) region.)
After moving the cftool result to the workspace (name: fittedmodel_z1), in the command window, use a value with a decimal point, not an integer, within the range (~13, ~19) for x and y, such as ‘fittedmodel_z1(10.1,3.7)’ When I give the command, I can get z1 data.
How do I do it in reverse?
I want to use f(x,y)=a , but I don’t know the function f(x,y) .
Cannot use formula(fittedmodel_Z1).
>> formula(fittedmodel_Z1)
ans =
‘piecewise linear surface’
I just want to know the coordinates through the overlapping part like the red hatched part in the picture below.
How about using artificial intelligence like a classification model? Or fuzzy?
Thank you.I have ‘x’ data, ‘y’ data, ‘z1’ data ‘z2’ data.
It has two variable values(‘z1’, ‘z2’) at the same coordinates(x,y).
x : an integer from 1 to 13
y : an integer from 1 to 19
Z1: 13*19
I used cftool to plot the mesh. ( Interpolation)
How do I extract ‘x’ and ‘y’ data from ‘z1’ ‘z2’?
I want to estimate the coordinates by comparing the x,y data( extracted through z1)
with the x,y data (extracted through z2).
A simple example is similar to finding approximate coordinates by estimating longitude based on time and latitude based on temperature, (confined to a northern (lower hemisphere) region.)
After moving the cftool result to the workspace (name: fittedmodel_z1), in the command window, use a value with a decimal point, not an integer, within the range (~13, ~19) for x and y, such as ‘fittedmodel_z1(10.1,3.7)’ When I give the command, I can get z1 data.
How do I do it in reverse?
I want to use f(x,y)=a , but I don’t know the function f(x,y) .
Cannot use formula(fittedmodel_Z1).
>> formula(fittedmodel_Z1)
ans =
‘piecewise linear surface’
I just want to know the coordinates through the overlapping part like the red hatched part in the picture below.
How about using artificial intelligence like a classification model? Or fuzzy?
Thank you. I have ‘x’ data, ‘y’ data, ‘z1’ data ‘z2’ data.
It has two variable values(‘z1’, ‘z2’) at the same coordinates(x,y).
x : an integer from 1 to 13
y : an integer from 1 to 19
Z1: 13*19
I used cftool to plot the mesh. ( Interpolation)
How do I extract ‘x’ and ‘y’ data from ‘z1’ ‘z2’?
I want to estimate the coordinates by comparing the x,y data( extracted through z1)
with the x,y data (extracted through z2).
A simple example is similar to finding approximate coordinates by estimating longitude based on time and latitude based on temperature, (confined to a northern (lower hemisphere) region.)
After moving the cftool result to the workspace (name: fittedmodel_z1), in the command window, use a value with a decimal point, not an integer, within the range (~13, ~19) for x and y, such as ‘fittedmodel_z1(10.1,3.7)’ When I give the command, I can get z1 data.
How do I do it in reverse?
I want to use f(x,y)=a , but I don’t know the function f(x,y) .
Cannot use formula(fittedmodel_Z1).
>> formula(fittedmodel_Z1)
ans =
‘piecewise linear surface’
I just want to know the coordinates through the overlapping part like the red hatched part in the picture below.
How about using artificial intelligence like a classification model? Or fuzzy?
Thank you. mesh, curve fitting, cftool, f(xy)=z, fuzzy, classification, learning, data, plot, formula MATLAB Answers — New Questions
read columns on command
what he mean it here and how I write the command :what he mean it here and how I write the command : what he mean it here and how I write the command : matlab MATLAB Answers — New Questions
Different results for same equation in curve fitting
Why is custom fitting not the same as the exponential default one as shown in the picture? The data fits nicely when I use the ‘exp2’ instead.
I’m relatively new to MATLAB and this is quite baffling to me as i am unable to use a custom equation as it simply does not fit.Why is custom fitting not the same as the exponential default one as shown in the picture? The data fits nicely when I use the ‘exp2’ instead.
I’m relatively new to MATLAB and this is quite baffling to me as i am unable to use a custom equation as it simply does not fit. Why is custom fitting not the same as the exponential default one as shown in the picture? The data fits nicely when I use the ‘exp2’ instead.
I’m relatively new to MATLAB and this is quite baffling to me as i am unable to use a custom equation as it simply does not fit. curve fitting MATLAB Answers — New Questions
server 2022 suddenly shutdown
I have a Windows server 2022 standard that suddenly shutdown and I can’t find the reason why. I have the two events that have numbers saying why, but I can’t find a definition of what they mean. What do the two following events say about why a server just shutdown.
Information
6/7/2024 11:07:19 AM
Microsoft-Windows-Kernel-Power
566
-268
The system session has transitioned from 181 to 183. Reason: 21
Information
6/7/2024 11:07:19 AM
User32
1074
None
The process C:Windowssystem32winlogon.exe (MYSERVER) has initiated the power off of computer MYSERVER on behalf of user NT AUTHORITYSYSTEM
for the following reason: No title for this reason could be found
Reason Code: 0x500ff
Shutdown Type: power off
Comment:
Thanks.
I have a Windows server 2022 standard that suddenly shutdown and I can’t find the reason why. I have the two events that have numbers saying why, but I can’t find a definition of what they mean. What do the two following events say about why a server just shutdown. Information6/7/2024 11:07:19 AMMicrosoft-Windows-Kernel-Power566-268The system session has transitioned from 181 to 183. Reason: 21 Information6/7/2024 11:07:19 AMUser321074NoneThe process C:Windowssystem32winlogon.exe (MYSERVER) has initiated the power off of computer MYSERVER on behalf of user NT AUTHORITYSYSTEMfor the following reason: No title for this reason could be foundReason Code: 0x500ffShutdown Type: power offComment: Thanks. Read More
GUI Matlab real time data storage using DataAcquisition Interface
Hope you all well, i have GUI app which is getting data from national instrument and give back live plot after trun switch on and when switch is off the recorded data wil stop and real time data will stop, however i am trying to intesert another button to clear the previous or delete them from store array however it won’t happened i tried clear func and clf to remove plot and delete the array nothing working i will place the code blow and screen shot of the app design if you could help me to solve this i would be supre greatfull to you what i want is that the previouse data from block 1 and 2 get deleted after clear data button is clicked
classdef app2 < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
UIFigure matlab.ui.Figure
TabGroup matlab.ui.container.TabGroup
Tab matlab.ui.container.Tab
CleardataButton matlab.ui.control.Button
DistancemmEditField matlab.ui.control.NumericEditField
DistancemmEditFieldLabel matlab.ui.control.Label
VoltageLEditField matlab.ui.control.NumericEditField
VoltageLEditFieldLabel matlab.ui.control.Label
LoadNEditField matlab.ui.control.NumericEditField
LoadNEditFieldLabel matlab.ui.control.Label
VoltageEditField matlab.ui.control.NumericEditField
VoltageEditFieldLabel matlab.ui.control.Label
SAVEDATAButton matlab.ui.control.Button
Lamp matlab.ui.control.Lamp
LampLabel matlab.ui.control.Label
Switch matlab.ui.control.Switch
SwitchLabel matlab.ui.control.Label
UIAxes matlab.ui.control.UIAxes
end
properties (Access = private)
dq = daq("ni"); % Create a DataAcquisition object.
R = 5000;% Description
% % Arrays to store data for plotting
% timeData = [];
% loadData = [];
% distanceData = [];
end
properties (Access = public)
voltage
distance
load
f1
f2
timeData = [];
loadData = [];
distanceData = [];
end
methods (Access = public)
%
function getdat(app,src,~)
[d, ~] = read(src,src.ScansAvailableFcnCount,"OutputFormat","Matrix");
voltage = mean(d(:,1));
app.VoltageEditField.Value = voltage;
app.LoadNEditField.Value = voltage * 4.19; %* 10497;
load =app.LoadNEditField.Value ;
app.VoltageLEditField.Value = mean(d(:,2));
distance = (app.VoltageLEditField.Value – 0.7966) * 4.51;
app.DistancemmEditField.Value = distance;
% Append data to arrays
app.timeData = [app.timeData; datetime(‘now’)];
app.loadData = [app.loadData; load];
app.distanceData = [app.distanceData; distance];
% Plot all data
yyaxis(app.UIAxes, ‘left’);
app.f1= plot(app.UIAxes, app.timeData, app.loadData);
ylabel(app.UIAxes, ‘Load (N)’);
yyaxis(app.UIAxes, ‘right’);
app.f2= plot(app.UIAxes, app.timeData, app.distanceData, ‘r’);
ylabel(app.UIAxes, ‘Displacement (mm)’);
xlabel(app.UIAxes, ‘Time’);
app.UIAxes.XGrid = ‘on’;
app.UIAxes.YGrid = ‘on’;
%{
plot(app.UIAxes, app.timeData, app.loadData, ‘b’, app.timeData, app.distanceData, ‘r’);
xlabel(app.UIAxes, ‘Time’);
ylabel(app.UIAxes, ‘Load (N) / Distance (mm)’);
legend(app.UIAxes, ‘Load’, ‘Distance’);
%}
end
end
% Callbacks that handle component events
methods (Access = private)
% Value changed function: Switch
function SwitchValueChanged(app, event)
value = app.Switch.Value;
if strcmp(value,"On")
app.Lamp.Color = ‘g’;
app.dq = daq("ni");
app.dq.ScansAvailableFcn = @(src,event) getdat(app, src, event);
ch1 = addinput(app.dq, ‘Dev1’, ‘ai0′,’Voltage’);
ch2 = addinput(app.dq, ‘Dev1’, ‘ai1′,’Voltage’);
app.dq.Rate = app.R;
app.dq.UserData = [0 0];
start(app.dq,"Continuous");
else
% app.dq.ScansAvailableFcn = @(src,event) getdat(app, src, event);
stop(app.dq);
app.Lamp.Color = ‘r’;
% delete(app.f1);
%
% delete(app.f2);
removechannel(app.dq,1:length(app.dq))
% start(app.dq,"Continuous");
% removechannel(app.dq,2)
% daqreset
end
end
% Button pushed function: SAVEDATAButton
function SAVEDATAButtonPushed(app, event)
% Prompt the user to choose a filename and location for saving the data
[filename, filepath] = uiputfile(‘*.csv’, ‘Save Data As’);
if isequal(filename,0) || isequal(filepath,0)
% User canceled the operation
return;
end
% Combine the filename and path
fullpath = fullfile(filepath, filename);
% Open or create the CSV file
fid = fopen(fullpath, ‘w’);
% Write headers to the CSV file
fprintf(fid, ‘Time,Load (N),Displacement (mm)n’);
% Write data to the CSV file
for i = 1:numel(app.timeData)
fprintf(fid, ‘%s,%f,%fn’, …
datestr(app.timeData(i)), …
app.loadData(i), …
app.distanceData(i));
end
% Close the file
fclose(fid);
end
% Callback function
function SystemLogSizeChanged(app, event)
% position = app.SystemLog.Position;
% if strcmp(app.Lamp.Color,’g’)
%
end
% Button pushed function: CleardataButton
function CleardataButtonPushed(app, event)
% app.dq.ScansAvailableFcn = @(src,event) getdat(app, src, event);
stop(app.dq);
% Clear the session and channels.
% app.timeData = [app.timeData; datetime(‘now’)];
% app.loadData = [app.loadData; app.load];
% app.distanceData = [app.distanceData; app.distance];
delete(app.f1);
delete (‘app.timeData’)
delete (‘app.distanceData’)
delete (‘app.loadData’)
delete(app.f2);
% daqreset
% start(app.dq);
% app.dq
% stop(app.dq);
% cla(app.load,"reset");
% delete (app.load);
% cla(app.distance,"reset");
% delete(app.distance);
% cla(app.UIAxes);
% cla()
% delete(app.dq);
% delete(app.distance);
% delete(app.UIAxes)
% cla(app.UIAxes,"reset");
% app.dq.release(‘ni’);
end
end
% Component initialization
methods (Access = private)
% Create UIFigure and components
function createComponents(app)
% Create UIFigure and hide until all components are created
app.UIFigure = uifigure(‘Visible’, ‘off’);
app.UIFigure.Position = [100 100 1051 699];
app.UIFigure.Name = ‘MATLAB App’;
% Create TabGroup
app.TabGroup = uitabgroup(app.UIFigure);
app.TabGroup.Position = [1 0 1051 699];
% Create Tab
app.Tab = uitab(app.TabGroup);
app.Tab.Title = ‘Tab’;
% Create UIAxes
app.UIAxes = uiaxes(app.Tab);
xlabel(app.UIAxes, ‘Displacement (mm)’)
ylabel(app.UIAxes, ‘Force (N)’)
zlabel(app.UIAxes, ‘Z’)
app.UIAxes.YGrid = ‘on’;
app.UIAxes.Position = [15 26 828 505];
% Create SwitchLabel
app.SwitchLabel = uilabel(app.Tab);
app.SwitchLabel.HorizontalAlignment = ‘center’;
app.SwitchLabel.Position = [40 599 40 22];
app.SwitchLabel.Text = ‘Switch’;
% Create Switch
app.Switch = uiswitch(app.Tab, ‘slider’);
app.Switch.ValueChangedFcn = createCallbackFcn(app, @SwitchValueChanged, true);
app.Switch.Position = [37 636 45 20];
% Create LampLabel
app.LampLabel = uilabel(app.Tab);
app.LampLabel.HorizontalAlignment = ‘right’;
app.LampLabel.Position = [25 562 35 22];
app.LampLabel.Text = ‘Lamp’;
% Create Lamp
app.Lamp = uilamp(app.Tab);
app.Lamp.Position = [75 562 20 20];
app.Lamp.Color = [1 0 0];
% Create SAVEDATAButton
app.SAVEDATAButton = uibutton(app.Tab, ‘push’);
app.SAVEDATAButton.ButtonPushedFcn = createCallbackFcn(app, @SAVEDATAButtonPushed, true);
app.SAVEDATAButton.Position = [940 25 100 23];
app.SAVEDATAButton.Text = ‘SAVE DATA’;
% Create VoltageEditFieldLabel
app.VoltageEditFieldLabel = uilabel(app.Tab);
app.VoltageEditFieldLabel.HorizontalAlignment = ‘right’;
app.VoltageEditFieldLabel.Position = [878 226 46 22];
app.VoltageEditFieldLabel.Text = ‘Voltage’;
% Create VoltageEditField
app.VoltageEditField = uieditfield(app.Tab, ‘numeric’);
app.VoltageEditField.Position = [939 226 100 22];
% Create LoadNEditFieldLabel
app.LoadNEditFieldLabel = uilabel(app.Tab);
app.LoadNEditFieldLabel.HorizontalAlignment = ‘right’;
app.LoadNEditFieldLabel.Position = [872 133 52 22];
app.LoadNEditFieldLabel.Text = ‘Load (N)’;
% Create LoadNEditField
app.LoadNEditField = uieditfield(app.Tab, ‘numeric’);
app.LoadNEditField.Position = [939 133 100 22];
% Create VoltageLEditFieldLabel
app.VoltageLEditFieldLabel = uilabel(app.Tab);
app.VoltageLEditFieldLabel.HorizontalAlignment = ‘right’;
app.VoltageLEditFieldLabel.Position = [861 188 63 22];
app.VoltageLEditFieldLabel.Text = ‘Voltage (L)’;
% Create VoltageLEditField
app.VoltageLEditField = uieditfield(app.Tab, ‘numeric’);
app.VoltageLEditField.Position = [939 188 100 22];
% Create DistancemmEditFieldLabel
app.DistancemmEditFieldLabel = uilabel(app.Tab);
app.DistancemmEditFieldLabel.HorizontalAlignment = ‘right’;
app.DistancemmEditFieldLabel.Position = [841 82 83 22];
app.DistancemmEditFieldLabel.Text = ‘Distance (mm)’;
% Create DistancemmEditField
app.DistancemmEditField = uieditfield(app.Tab, ‘numeric’);
app.DistancemmEditField.Position = [939 82 100 22];
% Create CleardataButton
app.CleardataButton = uibutton(app.Tab, ‘push’);
app.CleardataButton.ButtonPushedFcn = createCallbackFcn(app, @CleardataButtonPushed, true);
app.CleardataButton.Position = [938 280 100 23];
app.CleardataButton.Text = ‘Clear data’;
% Show the figure after all components are created
app.UIFigure.Visible = ‘on’;
end
end
% App creation and deletion
methods (Access = public)
% Construct app
function app = app2
% Create UIFigure and components
createComponents(app)
% Register the app with App Designer
registerApp(app, app.UIFigure)
if nargout == 0
clear app
end
end
% Code that executes before app deletion
function delete(app)
% Delete UIFigure when app is deleted
delete(app.UIFigure)
end
end
endHope you all well, i have GUI app which is getting data from national instrument and give back live plot after trun switch on and when switch is off the recorded data wil stop and real time data will stop, however i am trying to intesert another button to clear the previous or delete them from store array however it won’t happened i tried clear func and clf to remove plot and delete the array nothing working i will place the code blow and screen shot of the app design if you could help me to solve this i would be supre greatfull to you what i want is that the previouse data from block 1 and 2 get deleted after clear data button is clicked
classdef app2 < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
UIFigure matlab.ui.Figure
TabGroup matlab.ui.container.TabGroup
Tab matlab.ui.container.Tab
CleardataButton matlab.ui.control.Button
DistancemmEditField matlab.ui.control.NumericEditField
DistancemmEditFieldLabel matlab.ui.control.Label
VoltageLEditField matlab.ui.control.NumericEditField
VoltageLEditFieldLabel matlab.ui.control.Label
LoadNEditField matlab.ui.control.NumericEditField
LoadNEditFieldLabel matlab.ui.control.Label
VoltageEditField matlab.ui.control.NumericEditField
VoltageEditFieldLabel matlab.ui.control.Label
SAVEDATAButton matlab.ui.control.Button
Lamp matlab.ui.control.Lamp
LampLabel matlab.ui.control.Label
Switch matlab.ui.control.Switch
SwitchLabel matlab.ui.control.Label
UIAxes matlab.ui.control.UIAxes
end
properties (Access = private)
dq = daq("ni"); % Create a DataAcquisition object.
R = 5000;% Description
% % Arrays to store data for plotting
% timeData = [];
% loadData = [];
% distanceData = [];
end
properties (Access = public)
voltage
distance
load
f1
f2
timeData = [];
loadData = [];
distanceData = [];
end
methods (Access = public)
%
function getdat(app,src,~)
[d, ~] = read(src,src.ScansAvailableFcnCount,"OutputFormat","Matrix");
voltage = mean(d(:,1));
app.VoltageEditField.Value = voltage;
app.LoadNEditField.Value = voltage * 4.19; %* 10497;
load =app.LoadNEditField.Value ;
app.VoltageLEditField.Value = mean(d(:,2));
distance = (app.VoltageLEditField.Value – 0.7966) * 4.51;
app.DistancemmEditField.Value = distance;
% Append data to arrays
app.timeData = [app.timeData; datetime(‘now’)];
app.loadData = [app.loadData; load];
app.distanceData = [app.distanceData; distance];
% Plot all data
yyaxis(app.UIAxes, ‘left’);
app.f1= plot(app.UIAxes, app.timeData, app.loadData);
ylabel(app.UIAxes, ‘Load (N)’);
yyaxis(app.UIAxes, ‘right’);
app.f2= plot(app.UIAxes, app.timeData, app.distanceData, ‘r’);
ylabel(app.UIAxes, ‘Displacement (mm)’);
xlabel(app.UIAxes, ‘Time’);
app.UIAxes.XGrid = ‘on’;
app.UIAxes.YGrid = ‘on’;
%{
plot(app.UIAxes, app.timeData, app.loadData, ‘b’, app.timeData, app.distanceData, ‘r’);
xlabel(app.UIAxes, ‘Time’);
ylabel(app.UIAxes, ‘Load (N) / Distance (mm)’);
legend(app.UIAxes, ‘Load’, ‘Distance’);
%}
end
end
% Callbacks that handle component events
methods (Access = private)
% Value changed function: Switch
function SwitchValueChanged(app, event)
value = app.Switch.Value;
if strcmp(value,"On")
app.Lamp.Color = ‘g’;
app.dq = daq("ni");
app.dq.ScansAvailableFcn = @(src,event) getdat(app, src, event);
ch1 = addinput(app.dq, ‘Dev1’, ‘ai0′,’Voltage’);
ch2 = addinput(app.dq, ‘Dev1’, ‘ai1′,’Voltage’);
app.dq.Rate = app.R;
app.dq.UserData = [0 0];
start(app.dq,"Continuous");
else
% app.dq.ScansAvailableFcn = @(src,event) getdat(app, src, event);
stop(app.dq);
app.Lamp.Color = ‘r’;
% delete(app.f1);
%
% delete(app.f2);
removechannel(app.dq,1:length(app.dq))
% start(app.dq,"Continuous");
% removechannel(app.dq,2)
% daqreset
end
end
% Button pushed function: SAVEDATAButton
function SAVEDATAButtonPushed(app, event)
% Prompt the user to choose a filename and location for saving the data
[filename, filepath] = uiputfile(‘*.csv’, ‘Save Data As’);
if isequal(filename,0) || isequal(filepath,0)
% User canceled the operation
return;
end
% Combine the filename and path
fullpath = fullfile(filepath, filename);
% Open or create the CSV file
fid = fopen(fullpath, ‘w’);
% Write headers to the CSV file
fprintf(fid, ‘Time,Load (N),Displacement (mm)n’);
% Write data to the CSV file
for i = 1:numel(app.timeData)
fprintf(fid, ‘%s,%f,%fn’, …
datestr(app.timeData(i)), …
app.loadData(i), …
app.distanceData(i));
end
% Close the file
fclose(fid);
end
% Callback function
function SystemLogSizeChanged(app, event)
% position = app.SystemLog.Position;
% if strcmp(app.Lamp.Color,’g’)
%
end
% Button pushed function: CleardataButton
function CleardataButtonPushed(app, event)
% app.dq.ScansAvailableFcn = @(src,event) getdat(app, src, event);
stop(app.dq);
% Clear the session and channels.
% app.timeData = [app.timeData; datetime(‘now’)];
% app.loadData = [app.loadData; app.load];
% app.distanceData = [app.distanceData; app.distance];
delete(app.f1);
delete (‘app.timeData’)
delete (‘app.distanceData’)
delete (‘app.loadData’)
delete(app.f2);
% daqreset
% start(app.dq);
% app.dq
% stop(app.dq);
% cla(app.load,"reset");
% delete (app.load);
% cla(app.distance,"reset");
% delete(app.distance);
% cla(app.UIAxes);
% cla()
% delete(app.dq);
% delete(app.distance);
% delete(app.UIAxes)
% cla(app.UIAxes,"reset");
% app.dq.release(‘ni’);
end
end
% Component initialization
methods (Access = private)
% Create UIFigure and components
function createComponents(app)
% Create UIFigure and hide until all components are created
app.UIFigure = uifigure(‘Visible’, ‘off’);
app.UIFigure.Position = [100 100 1051 699];
app.UIFigure.Name = ‘MATLAB App’;
% Create TabGroup
app.TabGroup = uitabgroup(app.UIFigure);
app.TabGroup.Position = [1 0 1051 699];
% Create Tab
app.Tab = uitab(app.TabGroup);
app.Tab.Title = ‘Tab’;
% Create UIAxes
app.UIAxes = uiaxes(app.Tab);
xlabel(app.UIAxes, ‘Displacement (mm)’)
ylabel(app.UIAxes, ‘Force (N)’)
zlabel(app.UIAxes, ‘Z’)
app.UIAxes.YGrid = ‘on’;
app.UIAxes.Position = [15 26 828 505];
% Create SwitchLabel
app.SwitchLabel = uilabel(app.Tab);
app.SwitchLabel.HorizontalAlignment = ‘center’;
app.SwitchLabel.Position = [40 599 40 22];
app.SwitchLabel.Text = ‘Switch’;
% Create Switch
app.Switch = uiswitch(app.Tab, ‘slider’);
app.Switch.ValueChangedFcn = createCallbackFcn(app, @SwitchValueChanged, true);
app.Switch.Position = [37 636 45 20];
% Create LampLabel
app.LampLabel = uilabel(app.Tab);
app.LampLabel.HorizontalAlignment = ‘right’;
app.LampLabel.Position = [25 562 35 22];
app.LampLabel.Text = ‘Lamp’;
% Create Lamp
app.Lamp = uilamp(app.Tab);
app.Lamp.Position = [75 562 20 20];
app.Lamp.Color = [1 0 0];
% Create SAVEDATAButton
app.SAVEDATAButton = uibutton(app.Tab, ‘push’);
app.SAVEDATAButton.ButtonPushedFcn = createCallbackFcn(app, @SAVEDATAButtonPushed, true);
app.SAVEDATAButton.Position = [940 25 100 23];
app.SAVEDATAButton.Text = ‘SAVE DATA’;
% Create VoltageEditFieldLabel
app.VoltageEditFieldLabel = uilabel(app.Tab);
app.VoltageEditFieldLabel.HorizontalAlignment = ‘right’;
app.VoltageEditFieldLabel.Position = [878 226 46 22];
app.VoltageEditFieldLabel.Text = ‘Voltage’;
% Create VoltageEditField
app.VoltageEditField = uieditfield(app.Tab, ‘numeric’);
app.VoltageEditField.Position = [939 226 100 22];
% Create LoadNEditFieldLabel
app.LoadNEditFieldLabel = uilabel(app.Tab);
app.LoadNEditFieldLabel.HorizontalAlignment = ‘right’;
app.LoadNEditFieldLabel.Position = [872 133 52 22];
app.LoadNEditFieldLabel.Text = ‘Load (N)’;
% Create LoadNEditField
app.LoadNEditField = uieditfield(app.Tab, ‘numeric’);
app.LoadNEditField.Position = [939 133 100 22];
% Create VoltageLEditFieldLabel
app.VoltageLEditFieldLabel = uilabel(app.Tab);
app.VoltageLEditFieldLabel.HorizontalAlignment = ‘right’;
app.VoltageLEditFieldLabel.Position = [861 188 63 22];
app.VoltageLEditFieldLabel.Text = ‘Voltage (L)’;
% Create VoltageLEditField
app.VoltageLEditField = uieditfield(app.Tab, ‘numeric’);
app.VoltageLEditField.Position = [939 188 100 22];
% Create DistancemmEditFieldLabel
app.DistancemmEditFieldLabel = uilabel(app.Tab);
app.DistancemmEditFieldLabel.HorizontalAlignment = ‘right’;
app.DistancemmEditFieldLabel.Position = [841 82 83 22];
app.DistancemmEditFieldLabel.Text = ‘Distance (mm)’;
% Create DistancemmEditField
app.DistancemmEditField = uieditfield(app.Tab, ‘numeric’);
app.DistancemmEditField.Position = [939 82 100 22];
% Create CleardataButton
app.CleardataButton = uibutton(app.Tab, ‘push’);
app.CleardataButton.ButtonPushedFcn = createCallbackFcn(app, @CleardataButtonPushed, true);
app.CleardataButton.Position = [938 280 100 23];
app.CleardataButton.Text = ‘Clear data’;
% Show the figure after all components are created
app.UIFigure.Visible = ‘on’;
end
end
% App creation and deletion
methods (Access = public)
% Construct app
function app = app2
% Create UIFigure and components
createComponents(app)
% Register the app with App Designer
registerApp(app, app.UIFigure)
if nargout == 0
clear app
end
end
% Code that executes before app deletion
function delete(app)
% Delete UIFigure when app is deleted
delete(app.UIFigure)
end
end
end Hope you all well, i have GUI app which is getting data from national instrument and give back live plot after trun switch on and when switch is off the recorded data wil stop and real time data will stop, however i am trying to intesert another button to clear the previous or delete them from store array however it won’t happened i tried clear func and clf to remove plot and delete the array nothing working i will place the code blow and screen shot of the app design if you could help me to solve this i would be supre greatfull to you what i want is that the previouse data from block 1 and 2 get deleted after clear data button is clicked
classdef app2 < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
UIFigure matlab.ui.Figure
TabGroup matlab.ui.container.TabGroup
Tab matlab.ui.container.Tab
CleardataButton matlab.ui.control.Button
DistancemmEditField matlab.ui.control.NumericEditField
DistancemmEditFieldLabel matlab.ui.control.Label
VoltageLEditField matlab.ui.control.NumericEditField
VoltageLEditFieldLabel matlab.ui.control.Label
LoadNEditField matlab.ui.control.NumericEditField
LoadNEditFieldLabel matlab.ui.control.Label
VoltageEditField matlab.ui.control.NumericEditField
VoltageEditFieldLabel matlab.ui.control.Label
SAVEDATAButton matlab.ui.control.Button
Lamp matlab.ui.control.Lamp
LampLabel matlab.ui.control.Label
Switch matlab.ui.control.Switch
SwitchLabel matlab.ui.control.Label
UIAxes matlab.ui.control.UIAxes
end
properties (Access = private)
dq = daq("ni"); % Create a DataAcquisition object.
R = 5000;% Description
% % Arrays to store data for plotting
% timeData = [];
% loadData = [];
% distanceData = [];
end
properties (Access = public)
voltage
distance
load
f1
f2
timeData = [];
loadData = [];
distanceData = [];
end
methods (Access = public)
%
function getdat(app,src,~)
[d, ~] = read(src,src.ScansAvailableFcnCount,"OutputFormat","Matrix");
voltage = mean(d(:,1));
app.VoltageEditField.Value = voltage;
app.LoadNEditField.Value = voltage * 4.19; %* 10497;
load =app.LoadNEditField.Value ;
app.VoltageLEditField.Value = mean(d(:,2));
distance = (app.VoltageLEditField.Value – 0.7966) * 4.51;
app.DistancemmEditField.Value = distance;
% Append data to arrays
app.timeData = [app.timeData; datetime(‘now’)];
app.loadData = [app.loadData; load];
app.distanceData = [app.distanceData; distance];
% Plot all data
yyaxis(app.UIAxes, ‘left’);
app.f1= plot(app.UIAxes, app.timeData, app.loadData);
ylabel(app.UIAxes, ‘Load (N)’);
yyaxis(app.UIAxes, ‘right’);
app.f2= plot(app.UIAxes, app.timeData, app.distanceData, ‘r’);
ylabel(app.UIAxes, ‘Displacement (mm)’);
xlabel(app.UIAxes, ‘Time’);
app.UIAxes.XGrid = ‘on’;
app.UIAxes.YGrid = ‘on’;
%{
plot(app.UIAxes, app.timeData, app.loadData, ‘b’, app.timeData, app.distanceData, ‘r’);
xlabel(app.UIAxes, ‘Time’);
ylabel(app.UIAxes, ‘Load (N) / Distance (mm)’);
legend(app.UIAxes, ‘Load’, ‘Distance’);
%}
end
end
% Callbacks that handle component events
methods (Access = private)
% Value changed function: Switch
function SwitchValueChanged(app, event)
value = app.Switch.Value;
if strcmp(value,"On")
app.Lamp.Color = ‘g’;
app.dq = daq("ni");
app.dq.ScansAvailableFcn = @(src,event) getdat(app, src, event);
ch1 = addinput(app.dq, ‘Dev1’, ‘ai0′,’Voltage’);
ch2 = addinput(app.dq, ‘Dev1’, ‘ai1′,’Voltage’);
app.dq.Rate = app.R;
app.dq.UserData = [0 0];
start(app.dq,"Continuous");
else
% app.dq.ScansAvailableFcn = @(src,event) getdat(app, src, event);
stop(app.dq);
app.Lamp.Color = ‘r’;
% delete(app.f1);
%
% delete(app.f2);
removechannel(app.dq,1:length(app.dq))
% start(app.dq,"Continuous");
% removechannel(app.dq,2)
% daqreset
end
end
% Button pushed function: SAVEDATAButton
function SAVEDATAButtonPushed(app, event)
% Prompt the user to choose a filename and location for saving the data
[filename, filepath] = uiputfile(‘*.csv’, ‘Save Data As’);
if isequal(filename,0) || isequal(filepath,0)
% User canceled the operation
return;
end
% Combine the filename and path
fullpath = fullfile(filepath, filename);
% Open or create the CSV file
fid = fopen(fullpath, ‘w’);
% Write headers to the CSV file
fprintf(fid, ‘Time,Load (N),Displacement (mm)n’);
% Write data to the CSV file
for i = 1:numel(app.timeData)
fprintf(fid, ‘%s,%f,%fn’, …
datestr(app.timeData(i)), …
app.loadData(i), …
app.distanceData(i));
end
% Close the file
fclose(fid);
end
% Callback function
function SystemLogSizeChanged(app, event)
% position = app.SystemLog.Position;
% if strcmp(app.Lamp.Color,’g’)
%
end
% Button pushed function: CleardataButton
function CleardataButtonPushed(app, event)
% app.dq.ScansAvailableFcn = @(src,event) getdat(app, src, event);
stop(app.dq);
% Clear the session and channels.
% app.timeData = [app.timeData; datetime(‘now’)];
% app.loadData = [app.loadData; app.load];
% app.distanceData = [app.distanceData; app.distance];
delete(app.f1);
delete (‘app.timeData’)
delete (‘app.distanceData’)
delete (‘app.loadData’)
delete(app.f2);
% daqreset
% start(app.dq);
% app.dq
% stop(app.dq);
% cla(app.load,"reset");
% delete (app.load);
% cla(app.distance,"reset");
% delete(app.distance);
% cla(app.UIAxes);
% cla()
% delete(app.dq);
% delete(app.distance);
% delete(app.UIAxes)
% cla(app.UIAxes,"reset");
% app.dq.release(‘ni’);
end
end
% Component initialization
methods (Access = private)
% Create UIFigure and components
function createComponents(app)
% Create UIFigure and hide until all components are created
app.UIFigure = uifigure(‘Visible’, ‘off’);
app.UIFigure.Position = [100 100 1051 699];
app.UIFigure.Name = ‘MATLAB App’;
% Create TabGroup
app.TabGroup = uitabgroup(app.UIFigure);
app.TabGroup.Position = [1 0 1051 699];
% Create Tab
app.Tab = uitab(app.TabGroup);
app.Tab.Title = ‘Tab’;
% Create UIAxes
app.UIAxes = uiaxes(app.Tab);
xlabel(app.UIAxes, ‘Displacement (mm)’)
ylabel(app.UIAxes, ‘Force (N)’)
zlabel(app.UIAxes, ‘Z’)
app.UIAxes.YGrid = ‘on’;
app.UIAxes.Position = [15 26 828 505];
% Create SwitchLabel
app.SwitchLabel = uilabel(app.Tab);
app.SwitchLabel.HorizontalAlignment = ‘center’;
app.SwitchLabel.Position = [40 599 40 22];
app.SwitchLabel.Text = ‘Switch’;
% Create Switch
app.Switch = uiswitch(app.Tab, ‘slider’);
app.Switch.ValueChangedFcn = createCallbackFcn(app, @SwitchValueChanged, true);
app.Switch.Position = [37 636 45 20];
% Create LampLabel
app.LampLabel = uilabel(app.Tab);
app.LampLabel.HorizontalAlignment = ‘right’;
app.LampLabel.Position = [25 562 35 22];
app.LampLabel.Text = ‘Lamp’;
% Create Lamp
app.Lamp = uilamp(app.Tab);
app.Lamp.Position = [75 562 20 20];
app.Lamp.Color = [1 0 0];
% Create SAVEDATAButton
app.SAVEDATAButton = uibutton(app.Tab, ‘push’);
app.SAVEDATAButton.ButtonPushedFcn = createCallbackFcn(app, @SAVEDATAButtonPushed, true);
app.SAVEDATAButton.Position = [940 25 100 23];
app.SAVEDATAButton.Text = ‘SAVE DATA’;
% Create VoltageEditFieldLabel
app.VoltageEditFieldLabel = uilabel(app.Tab);
app.VoltageEditFieldLabel.HorizontalAlignment = ‘right’;
app.VoltageEditFieldLabel.Position = [878 226 46 22];
app.VoltageEditFieldLabel.Text = ‘Voltage’;
% Create VoltageEditField
app.VoltageEditField = uieditfield(app.Tab, ‘numeric’);
app.VoltageEditField.Position = [939 226 100 22];
% Create LoadNEditFieldLabel
app.LoadNEditFieldLabel = uilabel(app.Tab);
app.LoadNEditFieldLabel.HorizontalAlignment = ‘right’;
app.LoadNEditFieldLabel.Position = [872 133 52 22];
app.LoadNEditFieldLabel.Text = ‘Load (N)’;
% Create LoadNEditField
app.LoadNEditField = uieditfield(app.Tab, ‘numeric’);
app.LoadNEditField.Position = [939 133 100 22];
% Create VoltageLEditFieldLabel
app.VoltageLEditFieldLabel = uilabel(app.Tab);
app.VoltageLEditFieldLabel.HorizontalAlignment = ‘right’;
app.VoltageLEditFieldLabel.Position = [861 188 63 22];
app.VoltageLEditFieldLabel.Text = ‘Voltage (L)’;
% Create VoltageLEditField
app.VoltageLEditField = uieditfield(app.Tab, ‘numeric’);
app.VoltageLEditField.Position = [939 188 100 22];
% Create DistancemmEditFieldLabel
app.DistancemmEditFieldLabel = uilabel(app.Tab);
app.DistancemmEditFieldLabel.HorizontalAlignment = ‘right’;
app.DistancemmEditFieldLabel.Position = [841 82 83 22];
app.DistancemmEditFieldLabel.Text = ‘Distance (mm)’;
% Create DistancemmEditField
app.DistancemmEditField = uieditfield(app.Tab, ‘numeric’);
app.DistancemmEditField.Position = [939 82 100 22];
% Create CleardataButton
app.CleardataButton = uibutton(app.Tab, ‘push’);
app.CleardataButton.ButtonPushedFcn = createCallbackFcn(app, @CleardataButtonPushed, true);
app.CleardataButton.Position = [938 280 100 23];
app.CleardataButton.Text = ‘Clear data’;
% Show the figure after all components are created
app.UIFigure.Visible = ‘on’;
end
end
% App creation and deletion
methods (Access = public)
% Construct app
function app = app2
% Create UIFigure and components
createComponents(app)
% Register the app with App Designer
registerApp(app, app.UIFigure)
if nargout == 0
clear app
end
end
% Code that executes before app deletion
function delete(app)
% Delete UIFigure when app is deleted
delete(app.UIFigure)
end
end
end matrix array, replacement, real time, gui, clear data, matrix, data MATLAB Answers — New Questions
Why does my matlab code cannot detect the number of periods in a specific time range
I have developed a matlab code which imports pNRF Files that contain a measurement signal of light distance of a wheel surface in order to detect the number of cracks on that surface. There are in the file 3 signals, 2 rotary encoder signals and one light distance signal.
The Code does mostly what I want it to do:
It can import the Data accurately and successfully.
It can plot all the 3 signals
It can detect the cracks automatically using a threshold
One thing thats important and that the code is doing wrong, is that it detects the wrong number of the periods in the time range where a crack is being detected. (See the following picture, the back rectangles are the Cracks detected).
Now what I would like to do is to calculate the number of the Periods on the Signal Ch B1 (increment Encoder A) in the time where a crack is being detected. In this example the number of the periods is about 5,2 Periods of the first Crack and about nearly 1 Period of the second crack.
This is a substract of the 200line Code that i have to determine how many cracks I have:
% Zusammenfassung der Risse anzeigen
disp(‘Anzahl der detektierten Risse:’);
disp(numCracks);
disp(‘Breite der detektierten Risse in Inkrementen und Mikrometern:’);
for i = 1:numCracks
rissIndizes = risseGruppen.PixelIdxList{i};
Crackstart = min(rissIndizes);
Crackstart = max(rissIndizes);
Periods_Yellow_Signal = locs_gelb(locs_gelb >= Crackstart & locs_gelb <= Crackend);
CracksthicknessinPeriods = length(Periods_Yellow_Signal);
rissBreiteMicrometer = CracksthicknessinPeriods * INC_TO_MICROMETER;
fprintf(‘Crack %d: Thickness = %d Periods, %.2f Micrometer (Signal: Ch B1_A)n’, i, rissBreiteInkrement, rissBreiteMicrometer);
fprintf(‘Number of Periods: %dn’, rissBreiteInkrement);
end
What am I doing wrong here?
I would so thankful for any help! Thanks a lot in advance.I have developed a matlab code which imports pNRF Files that contain a measurement signal of light distance of a wheel surface in order to detect the number of cracks on that surface. There are in the file 3 signals, 2 rotary encoder signals and one light distance signal.
The Code does mostly what I want it to do:
It can import the Data accurately and successfully.
It can plot all the 3 signals
It can detect the cracks automatically using a threshold
One thing thats important and that the code is doing wrong, is that it detects the wrong number of the periods in the time range where a crack is being detected. (See the following picture, the back rectangles are the Cracks detected).
Now what I would like to do is to calculate the number of the Periods on the Signal Ch B1 (increment Encoder A) in the time where a crack is being detected. In this example the number of the periods is about 5,2 Periods of the first Crack and about nearly 1 Period of the second crack.
This is a substract of the 200line Code that i have to determine how many cracks I have:
% Zusammenfassung der Risse anzeigen
disp(‘Anzahl der detektierten Risse:’);
disp(numCracks);
disp(‘Breite der detektierten Risse in Inkrementen und Mikrometern:’);
for i = 1:numCracks
rissIndizes = risseGruppen.PixelIdxList{i};
Crackstart = min(rissIndizes);
Crackstart = max(rissIndizes);
Periods_Yellow_Signal = locs_gelb(locs_gelb >= Crackstart & locs_gelb <= Crackend);
CracksthicknessinPeriods = length(Periods_Yellow_Signal);
rissBreiteMicrometer = CracksthicknessinPeriods * INC_TO_MICROMETER;
fprintf(‘Crack %d: Thickness = %d Periods, %.2f Micrometer (Signal: Ch B1_A)n’, i, rissBreiteInkrement, rissBreiteMicrometer);
fprintf(‘Number of Periods: %dn’, rissBreiteInkrement);
end
What am I doing wrong here?
I would so thankful for any help! Thanks a lot in advance. I have developed a matlab code which imports pNRF Files that contain a measurement signal of light distance of a wheel surface in order to detect the number of cracks on that surface. There are in the file 3 signals, 2 rotary encoder signals and one light distance signal.
The Code does mostly what I want it to do:
It can import the Data accurately and successfully.
It can plot all the 3 signals
It can detect the cracks automatically using a threshold
One thing thats important and that the code is doing wrong, is that it detects the wrong number of the periods in the time range where a crack is being detected. (See the following picture, the back rectangles are the Cracks detected).
Now what I would like to do is to calculate the number of the Periods on the Signal Ch B1 (increment Encoder A) in the time where a crack is being detected. In this example the number of the periods is about 5,2 Periods of the first Crack and about nearly 1 Period of the second crack.
This is a substract of the 200line Code that i have to determine how many cracks I have:
% Zusammenfassung der Risse anzeigen
disp(‘Anzahl der detektierten Risse:’);
disp(numCracks);
disp(‘Breite der detektierten Risse in Inkrementen und Mikrometern:’);
for i = 1:numCracks
rissIndizes = risseGruppen.PixelIdxList{i};
Crackstart = min(rissIndizes);
Crackstart = max(rissIndizes);
Periods_Yellow_Signal = locs_gelb(locs_gelb >= Crackstart & locs_gelb <= Crackend);
CracksthicknessinPeriods = length(Periods_Yellow_Signal);
rissBreiteMicrometer = CracksthicknessinPeriods * INC_TO_MICROMETER;
fprintf(‘Crack %d: Thickness = %d Periods, %.2f Micrometer (Signal: Ch B1_A)n’, i, rissBreiteInkrement, rissBreiteMicrometer);
fprintf(‘Number of Periods: %dn’, rissBreiteInkrement);
end
What am I doing wrong here?
I would so thankful for any help! Thanks a lot in advance. periods, frequency, signal, signal processing, cracks, thickness MATLAB Answers — New Questions
Entra Cloud Sync Not Applying Assigned OU Filters
I am working to setup Entra Cloud Sync to sync a single OU from my on-premises AD to Entra AD. I have installed the latest Entra Cloud Sync agent on my single DC and setup the necessary configuration in the Entra Cloud Sync portal area. I have applied a scoping filter for the single OU that I need to sync for two AD security groups. This all saves properly. However, when I go to enable the configuration, I get an overview of what changes will occur and the scoping filters section at the bottom shows clearly “All Users” even though my configuration has defined scoping filters setup. I cannot proceed with all users as I have some areas and users that I cannot modify AD permissions. I have deleted and re-setup my configuration multiple times but the same continues.
Any input and suggestions are appreciated.
Scoping filters
Object scope filters
All users
I am working to setup Entra Cloud Sync to sync a single OU from my on-premises AD to Entra AD. I have installed the latest Entra Cloud Sync agent on my single DC and setup the necessary configuration in the Entra Cloud Sync portal area. I have applied a scoping filter for the single OU that I need to sync for two AD security groups. This all saves properly. However, when I go to enable the configuration, I get an overview of what changes will occur and the scoping filters section at the bottom shows clearly “All Users” even though my configuration has defined scoping filters setup. I cannot proceed with all users as I have some areas and users that I cannot modify AD permissions. I have deleted and re-setup my configuration multiple times but the same continues. Any input and suggestions are appreciated.Scoping filtersObject scope filtersAll users Read More
Info about account recovery form
Long story short, it’s been three whole weeks since I’ve been locked out of my email. Microsoft detected suspicious activity into my account cause I’ve switched broadband provider and this error started occuring the day I was done with the migration.
I’ve tried to compile the recovery form several times now but the response I got is that there weren’t enough informations to work with.
Now, I’ve managed to recover a Skype account tied with my blocked email, the only thing is this account was created before the live and outlook domains were even merged, so I’m wondering if it’s still okay if I provide information relevant to that account?
Also, am I supposed to write down my contact’s skype name or usernames?
Thanks in advance.
Long story short, it’s been three whole weeks since I’ve been locked out of my email. Microsoft detected suspicious activity into my account cause I’ve switched broadband provider and this error started occuring the day I was done with the migration.I’ve tried to compile the recovery form several times now but the response I got is that there weren’t enough informations to work with. Now, I’ve managed to recover a Skype account tied with my blocked email, the only thing is this account was created before the live and outlook domains were even merged, so I’m wondering if it’s still okay if I provide information relevant to that account? Also, am I supposed to write down my contact’s skype name or usernames? Thanks in advance. Read More
Worker crashed while executing code
Warning: 1 worker(s) crashed while executing code in the current parallel pool. MATLAB may attempt to run the code again on the remaining workers of the pool, unless an spmd block has run. View the crash dump files to determine what caused the workers to crash.
As I have the home licenses I’m not sure what to do with the error above. The script is training a Trebagger model with parallel turned on. It does use a lot of memory but still fits within the 32GB I have. The log is :-
——————————————————————————–
abort() detected at 2024-06-09 14:55:26 +0100
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : Uninitialized hardware
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce RTX 3060 Ti Version 32.0.15.5599 (2024-6-1)
Graphics card 2 : Intel Corporation ( 0x8086 ) Intel(R) UHD Graphics 770 Version 31.0.101.4577 (2023-7-24)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 5834768
MATLAB Root : C:Program FilesMATLABR2024a
MATLAB Version : 24.1.0.2603908 (R2024a) Update 3
OpenGL : hardware
Operating System : Microsoft Windows 11 Home
Process ID : 24484
Processor ID : x86 Family 6 Model 151 Stepping 2, GenuineIntel
Session Key : 21d9c0b4-6172-4c58-b200-f26395bd30e7
Window System : Version 10.0 (Build 22631)
Fault Count: 1
Abnormal termination:
abort()
Current Thread: ” id 15936
Register State (captured):
RAX = 00007ffc736e7208 RBX = 00007ffc736e7208
RCX = 0000000b268f8790 RDX = 00007ffc736918f0
RSP = 0000000b268f86d0 RBP = 0000000b268f9460
RSI = 0000000000000000 RDI = 00007ffc736e7208
R8 = 0000000000000003 R9 = 0000000b268f8648
R10 = 0000000000000014 R11 = 0000000000000000
R12 = 0000000b268f9368 R13 = 0000000000000000
R14 = 00007ffc736d7138 R15 = 0000000b268f8da0
RIP = 00007ffc735d1c8a EFL = 00000202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (captured):
[ 0] 0x00007ffc735cb093 C:Program FilesMATLABR2024abinwin64libmwfl.dll+00045203 foundation::core::diag::thread_context::unspecified_bool+00000051
[ 1] 0x00007ffc735c94c8 C:Program FilesMATLABR2024abinwin64libmwfl.dll+00038088 foundation::core::diag::stacktrace_base::capture+00000024
[ 2] 0x00007ffc735cd90f C:Program FilesMATLABR2024abinwin64libmwfl.dll+00055567 foundation::core::diag::symbols::getSymbolAddress+00009855
[ 3] 0x00007ffc735d07d7 C:Program FilesMATLABR2024abinwin64libmwfl.dll+00067543 foundation::core::diag::is_terminate_message_enabled+00000503
[ 4] 0x00007ffbf21c1868 C:Program FilesMATLABR2024abinwin64mcr.dll+00792680 mnFullExitFcn+00034808
[ 5] 0x00007ffbf21c10cd C:Program FilesMATLABR2024abinwin64mcr.dll+00790733 mnFullExitFcn+00032861
[ 6] 0x00007ffbf21bd315 C:Program FilesMATLABR2024abinwin64mcr.dll+00774933 mnFullExitFcn+00017061
[ 7] 0x00007ffbf21bed5f C:Program FilesMATLABR2024abinwin64mcr.dll+00781663 mnFullExitFcn+00023791
[ 8] 0x00007ffcb8f7e6d5 C:WINDOWSSystem32ucrtbase.dll+00517845 raise+00000485
[ 9] 0x00007ffcb8f7f6e1 C:WINDOWSSystem32ucrtbase.dll+00521953 abort+00000049
[ 10] 0x00007ffcb8f7ee19 C:WINDOWSSystem32ucrtbase.dll+00519705 terminate+00000041
[ 11] 0x00007ffcb3ea1aab C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00006827 _NLG_Return2+00002395
[ 12] 0x00007ffcb3ea2317 C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00008983 _NLG_Return2+00004551
[ 13] 0x00007ffcb3ea237a C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00009082 _NLG_Return2+00004650
[ 14] 0x00007ffcb3ea4159 C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00016729 _CxxFrameHandler4+00000169
[ 15] 0x00007ffcbb9549ff C:WINDOWSSYSTEM32ntdll.dll+00674303 _chkstk+00000303
[ 16] 0x00007ffcbb8ce466 C:WINDOWSSYSTEM32ntdll.dll+00124006 RtlFindCharInUnicodeString+00002710
[ 17] 0x00007ffcbb904465 C:WINDOWSSYSTEM32ntdll.dll+00345189 RtlRaiseException+00000405
[ 18] 0x00007ffcb90f543c C:WINDOWSSystem32KERNELBASE.dll+00414780 RaiseException+00000108
[ 19] 0x00007ffcb3ea2793 C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00010131 _NLG_Return2+00005699
[ 20] 0x00007ffcbb954246 C:WINDOWSSYSTEM32ntdll.dll+00672326 RtlCaptureContext2+00001190
[ 21] 0x00007ffbeadd968a C:Program FilesMATLABR2024abinwin64libmwparallelplrlicensing.dll+00104074 mwboost::serialization::singleton_module::lock+00009098
[ 22] 0x00007ffbeadc4d6f C:Program FilesMATLABR2024abinwin64libmwparallelplrlicensing.dll+00019823
[ 23] 0x00007ffcb8f29333 C:WINDOWSSystem32ucrtbase.dll+00168755 recalloc+00000163
[ 24] 0x00007ffcb9f0257d C:WINDOWSSystem32KERNEL32.DLL+00075133 BaseThreadInitThunk+00000029
[ 25] 0x00007ffcbb90aa48 C:WINDOWSSYSTEM32ntdll.dll+00371272 RtlUserThreadStart+00000040
It doesn’t always happen but I’d like to know if anyone has an idea why this might be happening and if it affects the training or not.Warning: 1 worker(s) crashed while executing code in the current parallel pool. MATLAB may attempt to run the code again on the remaining workers of the pool, unless an spmd block has run. View the crash dump files to determine what caused the workers to crash.
As I have the home licenses I’m not sure what to do with the error above. The script is training a Trebagger model with parallel turned on. It does use a lot of memory but still fits within the 32GB I have. The log is :-
——————————————————————————–
abort() detected at 2024-06-09 14:55:26 +0100
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : Uninitialized hardware
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce RTX 3060 Ti Version 32.0.15.5599 (2024-6-1)
Graphics card 2 : Intel Corporation ( 0x8086 ) Intel(R) UHD Graphics 770 Version 31.0.101.4577 (2023-7-24)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 5834768
MATLAB Root : C:Program FilesMATLABR2024a
MATLAB Version : 24.1.0.2603908 (R2024a) Update 3
OpenGL : hardware
Operating System : Microsoft Windows 11 Home
Process ID : 24484
Processor ID : x86 Family 6 Model 151 Stepping 2, GenuineIntel
Session Key : 21d9c0b4-6172-4c58-b200-f26395bd30e7
Window System : Version 10.0 (Build 22631)
Fault Count: 1
Abnormal termination:
abort()
Current Thread: ” id 15936
Register State (captured):
RAX = 00007ffc736e7208 RBX = 00007ffc736e7208
RCX = 0000000b268f8790 RDX = 00007ffc736918f0
RSP = 0000000b268f86d0 RBP = 0000000b268f9460
RSI = 0000000000000000 RDI = 00007ffc736e7208
R8 = 0000000000000003 R9 = 0000000b268f8648
R10 = 0000000000000014 R11 = 0000000000000000
R12 = 0000000b268f9368 R13 = 0000000000000000
R14 = 00007ffc736d7138 R15 = 0000000b268f8da0
RIP = 00007ffc735d1c8a EFL = 00000202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (captured):
[ 0] 0x00007ffc735cb093 C:Program FilesMATLABR2024abinwin64libmwfl.dll+00045203 foundation::core::diag::thread_context::unspecified_bool+00000051
[ 1] 0x00007ffc735c94c8 C:Program FilesMATLABR2024abinwin64libmwfl.dll+00038088 foundation::core::diag::stacktrace_base::capture+00000024
[ 2] 0x00007ffc735cd90f C:Program FilesMATLABR2024abinwin64libmwfl.dll+00055567 foundation::core::diag::symbols::getSymbolAddress+00009855
[ 3] 0x00007ffc735d07d7 C:Program FilesMATLABR2024abinwin64libmwfl.dll+00067543 foundation::core::diag::is_terminate_message_enabled+00000503
[ 4] 0x00007ffbf21c1868 C:Program FilesMATLABR2024abinwin64mcr.dll+00792680 mnFullExitFcn+00034808
[ 5] 0x00007ffbf21c10cd C:Program FilesMATLABR2024abinwin64mcr.dll+00790733 mnFullExitFcn+00032861
[ 6] 0x00007ffbf21bd315 C:Program FilesMATLABR2024abinwin64mcr.dll+00774933 mnFullExitFcn+00017061
[ 7] 0x00007ffbf21bed5f C:Program FilesMATLABR2024abinwin64mcr.dll+00781663 mnFullExitFcn+00023791
[ 8] 0x00007ffcb8f7e6d5 C:WINDOWSSystem32ucrtbase.dll+00517845 raise+00000485
[ 9] 0x00007ffcb8f7f6e1 C:WINDOWSSystem32ucrtbase.dll+00521953 abort+00000049
[ 10] 0x00007ffcb8f7ee19 C:WINDOWSSystem32ucrtbase.dll+00519705 terminate+00000041
[ 11] 0x00007ffcb3ea1aab C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00006827 _NLG_Return2+00002395
[ 12] 0x00007ffcb3ea2317 C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00008983 _NLG_Return2+00004551
[ 13] 0x00007ffcb3ea237a C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00009082 _NLG_Return2+00004650
[ 14] 0x00007ffcb3ea4159 C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00016729 _CxxFrameHandler4+00000169
[ 15] 0x00007ffcbb9549ff C:WINDOWSSYSTEM32ntdll.dll+00674303 _chkstk+00000303
[ 16] 0x00007ffcbb8ce466 C:WINDOWSSYSTEM32ntdll.dll+00124006 RtlFindCharInUnicodeString+00002710
[ 17] 0x00007ffcbb904465 C:WINDOWSSYSTEM32ntdll.dll+00345189 RtlRaiseException+00000405
[ 18] 0x00007ffcb90f543c C:WINDOWSSystem32KERNELBASE.dll+00414780 RaiseException+00000108
[ 19] 0x00007ffcb3ea2793 C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00010131 _NLG_Return2+00005699
[ 20] 0x00007ffcbb954246 C:WINDOWSSYSTEM32ntdll.dll+00672326 RtlCaptureContext2+00001190
[ 21] 0x00007ffbeadd968a C:Program FilesMATLABR2024abinwin64libmwparallelplrlicensing.dll+00104074 mwboost::serialization::singleton_module::lock+00009098
[ 22] 0x00007ffbeadc4d6f C:Program FilesMATLABR2024abinwin64libmwparallelplrlicensing.dll+00019823
[ 23] 0x00007ffcb8f29333 C:WINDOWSSystem32ucrtbase.dll+00168755 recalloc+00000163
[ 24] 0x00007ffcb9f0257d C:WINDOWSSystem32KERNEL32.DLL+00075133 BaseThreadInitThunk+00000029
[ 25] 0x00007ffcbb90aa48 C:WINDOWSSYSTEM32ntdll.dll+00371272 RtlUserThreadStart+00000040
It doesn’t always happen but I’d like to know if anyone has an idea why this might be happening and if it affects the training or not. Warning: 1 worker(s) crashed while executing code in the current parallel pool. MATLAB may attempt to run the code again on the remaining workers of the pool, unless an spmd block has run. View the crash dump files to determine what caused the workers to crash.
As I have the home licenses I’m not sure what to do with the error above. The script is training a Trebagger model with parallel turned on. It does use a lot of memory but still fits within the 32GB I have. The log is :-
——————————————————————————–
abort() detected at 2024-06-09 14:55:26 +0100
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : Uninitialized hardware
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce RTX 3060 Ti Version 32.0.15.5599 (2024-6-1)
Graphics card 2 : Intel Corporation ( 0x8086 ) Intel(R) UHD Graphics 770 Version 31.0.101.4577 (2023-7-24)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 5834768
MATLAB Root : C:Program FilesMATLABR2024a
MATLAB Version : 24.1.0.2603908 (R2024a) Update 3
OpenGL : hardware
Operating System : Microsoft Windows 11 Home
Process ID : 24484
Processor ID : x86 Family 6 Model 151 Stepping 2, GenuineIntel
Session Key : 21d9c0b4-6172-4c58-b200-f26395bd30e7
Window System : Version 10.0 (Build 22631)
Fault Count: 1
Abnormal termination:
abort()
Current Thread: ” id 15936
Register State (captured):
RAX = 00007ffc736e7208 RBX = 00007ffc736e7208
RCX = 0000000b268f8790 RDX = 00007ffc736918f0
RSP = 0000000b268f86d0 RBP = 0000000b268f9460
RSI = 0000000000000000 RDI = 00007ffc736e7208
R8 = 0000000000000003 R9 = 0000000b268f8648
R10 = 0000000000000014 R11 = 0000000000000000
R12 = 0000000b268f9368 R13 = 0000000000000000
R14 = 00007ffc736d7138 R15 = 0000000b268f8da0
RIP = 00007ffc735d1c8a EFL = 00000202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (captured):
[ 0] 0x00007ffc735cb093 C:Program FilesMATLABR2024abinwin64libmwfl.dll+00045203 foundation::core::diag::thread_context::unspecified_bool+00000051
[ 1] 0x00007ffc735c94c8 C:Program FilesMATLABR2024abinwin64libmwfl.dll+00038088 foundation::core::diag::stacktrace_base::capture+00000024
[ 2] 0x00007ffc735cd90f C:Program FilesMATLABR2024abinwin64libmwfl.dll+00055567 foundation::core::diag::symbols::getSymbolAddress+00009855
[ 3] 0x00007ffc735d07d7 C:Program FilesMATLABR2024abinwin64libmwfl.dll+00067543 foundation::core::diag::is_terminate_message_enabled+00000503
[ 4] 0x00007ffbf21c1868 C:Program FilesMATLABR2024abinwin64mcr.dll+00792680 mnFullExitFcn+00034808
[ 5] 0x00007ffbf21c10cd C:Program FilesMATLABR2024abinwin64mcr.dll+00790733 mnFullExitFcn+00032861
[ 6] 0x00007ffbf21bd315 C:Program FilesMATLABR2024abinwin64mcr.dll+00774933 mnFullExitFcn+00017061
[ 7] 0x00007ffbf21bed5f C:Program FilesMATLABR2024abinwin64mcr.dll+00781663 mnFullExitFcn+00023791
[ 8] 0x00007ffcb8f7e6d5 C:WINDOWSSystem32ucrtbase.dll+00517845 raise+00000485
[ 9] 0x00007ffcb8f7f6e1 C:WINDOWSSystem32ucrtbase.dll+00521953 abort+00000049
[ 10] 0x00007ffcb8f7ee19 C:WINDOWSSystem32ucrtbase.dll+00519705 terminate+00000041
[ 11] 0x00007ffcb3ea1aab C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00006827 _NLG_Return2+00002395
[ 12] 0x00007ffcb3ea2317 C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00008983 _NLG_Return2+00004551
[ 13] 0x00007ffcb3ea237a C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00009082 _NLG_Return2+00004650
[ 14] 0x00007ffcb3ea4159 C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00016729 _CxxFrameHandler4+00000169
[ 15] 0x00007ffcbb9549ff C:WINDOWSSYSTEM32ntdll.dll+00674303 _chkstk+00000303
[ 16] 0x00007ffcbb8ce466 C:WINDOWSSYSTEM32ntdll.dll+00124006 RtlFindCharInUnicodeString+00002710
[ 17] 0x00007ffcbb904465 C:WINDOWSSYSTEM32ntdll.dll+00345189 RtlRaiseException+00000405
[ 18] 0x00007ffcb90f543c C:WINDOWSSystem32KERNELBASE.dll+00414780 RaiseException+00000108
[ 19] 0x00007ffcb3ea2793 C:Program FilesMATLABR2024abinwin64VCRUNTIME140_1.dll+00010131 _NLG_Return2+00005699
[ 20] 0x00007ffcbb954246 C:WINDOWSSYSTEM32ntdll.dll+00672326 RtlCaptureContext2+00001190
[ 21] 0x00007ffbeadd968a C:Program FilesMATLABR2024abinwin64libmwparallelplrlicensing.dll+00104074 mwboost::serialization::singleton_module::lock+00009098
[ 22] 0x00007ffbeadc4d6f C:Program FilesMATLABR2024abinwin64libmwparallelplrlicensing.dll+00019823
[ 23] 0x00007ffcb8f29333 C:WINDOWSSystem32ucrtbase.dll+00168755 recalloc+00000163
[ 24] 0x00007ffcb9f0257d C:WINDOWSSystem32KERNEL32.DLL+00075133 BaseThreadInitThunk+00000029
[ 25] 0x00007ffcbb90aa48 C:WINDOWSSYSTEM32ntdll.dll+00371272 RtlUserThreadStart+00000040
It doesn’t always happen but I’d like to know if anyone has an idea why this might be happening and if it affects the training or not. worker crash MATLAB Answers — New Questions