Category: News
Web development
Hi I am interested in learning how to make websites. What should I do in college?
Hi I am interested in learning how to make websites. What should I do in college? Read More
Step by Step: Integrate Advanced RAG Service with Your Own Data into Copilot Studio
This post is going to explain how to use Advanced RAG Service easily verify proper RAG tech performance for your own data, and integrate it as a service endpoint into Copilot Studio.
This time we use CSV as a sample. CSV is text structure data, when we use basic RAG to process a multiple pages CSV file as Vector Index and perform similarity search using Nature Language on it, the grounded data is always chunked and hardly make LLM to understand the whole data picture.
For example, if we have 10,000 rows in a CSV file, when we ask “how many rows does the data contain and what’s the mean value of the visits column”, usually general semantic search service cannot give exact right answers if it just handles the data as unstructured. We need to use different advanced RAG method to handle the CSV data here.
Thanks to LLamaIndex Pandas Query Engine, which provides a good idea of understanding data frame data through natural language way. However to verify its performance among others and integrate to existing Enterprise environment, such as Copilot Studio or other user facing services, it definitely needs AI service developing experience and takes certain learning curve and time efforts from POC to Production.
Advanced RAG Service supports 6 latest advanced indexing techs including CSV Query Eninge, with it developers can leverage it to shorten development POC stage, and achieve Production purpose. Here is detail step to step guideline:
text-embedding-3-small
a. In Docker environment, run this command to clone the dockerfile and related config sample:
b. In the AdvancedRAG folder, rename .env.sample to .env
mv .env.sample .env
c. In the .env file, configure necessary environment variables. In this tutorial, let’s configure:
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_Deployment=gpt-4o-mini
AZURE_OPENAI_EMBEDDING_Deployment=text-embedding-3-small
AZURE_OPENAI_ENDPOINT=https://[name].openai.azure.com/
# Azure Document Intellenigence
DOC_AI_BASE=https://[name].cognitiveservices.azure.com/
DOC_AI_KEY=
NOTE:
d. Build your own docker image:
e. Run this docker:
f. Access http://localhost:8000/
a. Click the CSV Query Engine tab, upload a test CSV file, click Submit
b. Click the Chat Mode tab, now we can use Natural Language to test how good the CSV Query Engine at understanding CSV content:
The Advanced RAG Service is built with Gradio and FAST API. It opens necessary API Endpoints by default. We can turn off any of them in the .env settings.
The Chat endpoint can be used for different index types query/search. Since we are using “CSV Query Engine”, now it is:
content-type: application/json
{
“data”: [
“how many records does it have”,
“”,
“CSV Query Engine”,
“/tmp/gradio/86262b8036b56db1a2ed40087bbc772f619d0df4/titanic_train.csv”,
“You are a friendly AI Assistant” ,
false
]
}
The response is:
“data”: [
“The dataset contains a total of 891 records. If you have any more questions about the data, feel free to ask!”,
null
],
“is_generating”: true,
“duration”: 3.148253917694092,
“average_duration”: 3.148253917694092,
“render_config”: null,
“changed_state_ids”: []
}
Using this method, we can easily integrate the specific RAG capability to our own service, such as Copilot Studio. Before that, let’s publish the service first.
We have different methods to release docker as an app service. Here are the generate steps when we use Azure Contain Registry and Azure Container App.
a. Create Azure Container Registry resource [ACRNAME], upload your tested docker image to it. The command is:
az account set -s [your subscription]
az acr login -n [ACRNAME]
docker push [ACRNAME].azurecr.io/dockerimage:tag
b. Create an Azure Container App, deploy this docker image, and deploy it. Don’t forget enable Session Affinity for the Container App.
To automate the Azure Container App deployment, I provided deploy_acr_app.sh in the repo.
set -e
if [ $# -eq 0 ]
then
echo “No SUF_FIX supplied, it should be an integer or a short string”
docker image list
exit 1
fi
SUF_FIX=$1
RESOURCE_GROUP=”rg-demo-${SUF_FIX}”
LOCATION=”eastus”
ENVIRONMENT=”env-demo-containerapps”
API_NAME=”advrag-demo-${SUF_FIX}”
FRONTEND_NAME=”advrag-ui-${SUF_FIX}”
TARGET_PORT=8000
ACR_NAME=”advragdemo${SUF_FIX}”
az group create –name $RESOURCE_GROUP –location “$LOCATION”
az acr create –resource-group $RESOURCE_GROUP –name $ACR_NAME –sku Basic –admin-enabled true
az acr build –registry $ACR_NAME –image $API_NAME .
az containerapp env create –name $ENVIRONMENT –resource-group $RESOURCE_GROUP –location “$LOCATION”
az containerapp create –name $API_NAME –resource-group $RESOURCE_GROUP –environment $ENVIRONMENT –image $ACR_NAME.azurecr.io/$API_NAME –target-port $TARGET_PORT –ingress external –registry-server $ACR_NAME.azurecr.io –query properties.configuration.ingress.fqdn
az containerapp ingress sticky-sessions set -n $API_NAME -g $RESOURCE_GROUP –affinity sticky
To use it:
./deploy_acr_azure.sh [suffix number]
Note: for more details about this sh, can refer to this guideline.
After around 7~8 minutes, the Azure Container App will be ready. You can check the output and access it directly:
To protect your container app, can follow this guide to enable authentication on it.
Enable authentication and authorization in Azure Container Apps with Microsoft Entra ID
By default, we need to upload a CSV to the AdvRAG service before analysis. The service always saves the uploaded file to its local temp folder on server side. And then we can use temp file path to start the analysis query.
To skip this step, we can save common files in subfolder rules of the AdvancedRAG folder, and then build your docker image. The files will be copy to the docker itself. As a demo, I can put a CSV file in AdvancedRAG/rules/files, and then pubish the docker to Azure.
a. Open Copilot Studio, create a new Topic, use “CSV Query” to trigger it.
b. For demo purpose, I upload a test CSV file and got its path, then put it into a variable:
c. Now let’s add a Question step to ask what question the user want to ask:
d. Click “+”, “Add an Action”, “Create a flow”. We will use this new flow to call AdvancedRAG service endpoint.
e. We need Query, File_Path, System_Message as input variables.
e. In the flow Editor, let’s add an HTTP step. In the step, post the request to the AdvancedRAG endpoint as below:
Save the flow as ADVRAGSVC_CSV, and publish it.
f. Back to Copilot Studio topic, we will add the action as below, and set input variables as need:
g. Publish and open this Custom Copilot in Teams Channel based on this guide.
h. Now we can test this topic lit this, as we see, even I used gpt-4o-mini here, the response accuracy is very good:
From above, it shows how to quickly verify potential useful RAG techs (Pandas Query Engine) in the AdvancedRAG service studio, expose and publish it as REST API endpoint which can be used by other service, such as Copilot Studio.
The AdvancedRAG service focuses on key logic and stability of different important index types, the efficiency to be landed into M365 AI use cases. For any feature improvement ideas, feel free to visit below repos to create issues, fork projects and create PRs.
Docker Deploy Repo: https://github.com/freistli/AdvancedRAG
Source Code Repo: https://github.com/freistli/AdvancedRAG_SVC
Exploring the Advanced RAG (Retrieval Augmented Generation) Service
Microsoft Tech Community – Latest Blogs –Read More
Sharing a Teams URL
Hi all,
I am hoping you can help.
We are using a Tap IP and Huddle Bar for online meetings. Normally we would receive a meeting invite from an external party and then forward it to the meeting room, and then launch the meeting from there.
Recently we are receiving meeting requests from third parties who are sending a just a copy-paste of the Teams link URL only (i.e., it is not a typical teams meeting invite email with the teams logo etc…).
We have not been able to successfully forward the URL to the Tap IP/Huddle Bar to launch the meeting. Is this a limitation of this setup or is there a specific way these invites should be handled?
Hi all, I am hoping you can help. We are using a Tap IP and Huddle Bar for online meetings. Normally we would receive a meeting invite from an external party and then forward it to the meeting room, and then launch the meeting from there. Recently we are receiving meeting requests from third parties who are sending a just a copy-paste of the Teams link URL only (i.e., it is not a typical teams meeting invite email with the teams logo etc…). We have not been able to successfully forward the URL to the Tap IP/Huddle Bar to launch the meeting. Is this a limitation of this setup or is there a specific way these invites should be handled? Read More
Super user AIP
Hi All,
I have question relate to AIP user.
Few of our users have assigned MIPP protection on excel files and send it over to internal users via an email (not saved on sharepoint nor file share). Users are no more working for the organisation. I would like to know if i would save the file to local PC and open the file as super user (as per the below article) to view the content or reassign protection settings?
https://learn.microsoft.com/en-us/azure/information-protection/configure-super-users
Hi All, I have question relate to AIP user. Few of our users have assigned MIPP protection on excel files and send it over to internal users via an email (not saved on sharepoint nor file share). Users are no more working for the organisation. I would like to know if i would save the file to local PC and open the file as super user (as per the below article) to view the content or reassign protection settings? https://learn.microsoft.com/en-us/azure/information-protection/configure-super-users Read More
Remote Desktop on Win11 Pro toggle unable to turn on
Hello all,
I noticed that the feature of “Remote Desktop” in Settings on Windows 11 Pro edition (version 23H2), is not staying in the “ON” position after trying to toggle it. It displays a message I can confirm it and it switches back to the “OFF” position.
Troubleshooting steps done:
Reset the NIC (which is not the issue)
Taken the workstation off the domain to confirm if it was a domain restriction but will not turn on even as a local admin account (which is not the issue)
I have disabled third-party AV (which is not the issue)
I have disabled the Windows firewall (which is not the issue)
I have allowed the port 3389 (which is not the issue)
And last, there is no GPO policy
It was working before and three days ago unable to RDP to my workstation.
Anybody has run into this issue before and fixed it?
Thanks
Hello all,I noticed that the feature of “Remote Desktop” in Settings on Windows 11 Pro edition (version 23H2), is not staying in the “ON” position after trying to toggle it. It displays a message I can confirm it and it switches back to the “OFF” position.Troubleshooting steps done:Reset the NIC (which is not the issue)Taken the workstation off the domain to confirm if it was a domain restriction but will not turn on even as a local admin account (which is not the issue)I have disabled third-party AV (which is not the issue)I have disabled the Windows firewall (which is not the issue)I have allowed the port 3389 (which is not the issue)And last, there is no GPO policyIt was working before and three days ago unable to RDP to my workstation.Anybody has run into this issue before and fixed it?Thanks Read More
App designer Locks me out of editing things I need to change
I should be able to edit comments or add a comment at the top of an app created
% Button pushed function: SavingFolderButton
function SavingFolderButtonPushed(app, event)
% Set up the folder and files for output
% Have user browse for a file, from a specified "starting folder."
This is just ugly
2. I accidently got a ‘state’ button when I dragged the push button icon to my design view I have no idea how or when that happened:
% Create RandomizeTrialsButton
app.RandomizeTrialsButton = uibutton(app.TrialsListInput, ‘state’);
Now I can’t change it back to ‘push’ by editing the Creator. Is there some other magic place I can do that?
Thanks,I should be able to edit comments or add a comment at the top of an app created
% Button pushed function: SavingFolderButton
function SavingFolderButtonPushed(app, event)
% Set up the folder and files for output
% Have user browse for a file, from a specified "starting folder."
This is just ugly
2. I accidently got a ‘state’ button when I dragged the push button icon to my design view I have no idea how or when that happened:
% Create RandomizeTrialsButton
app.RandomizeTrialsButton = uibutton(app.TrialsListInput, ‘state’);
Now I can’t change it back to ‘push’ by editing the Creator. Is there some other magic place I can do that?
Thanks, I should be able to edit comments or add a comment at the top of an app created
% Button pushed function: SavingFolderButton
function SavingFolderButtonPushed(app, event)
% Set up the folder and files for output
% Have user browse for a file, from a specified "starting folder."
This is just ugly
2. I accidently got a ‘state’ button when I dragged the push button icon to my design view I have no idea how or when that happened:
% Create RandomizeTrialsButton
app.RandomizeTrialsButton = uibutton(app.TrialsListInput, ‘state’);
Now I can’t change it back to ‘push’ by editing the Creator. Is there some other magic place I can do that?
Thanks, state to push MATLAB Answers — New Questions
uigetfile() goes behind main figure
Hi,
uigetfile(), I think, creates a new figure; it has no parent argument. A number of people complained that its dialog window has unexpeced bahaviour in terms of appearance and focus.
I’m calling it from my main figure (created programmatically with uifigure). The uigetfile() dialog opens as a child of MATLAB window, and NOT as a child of my GUI app which is actually calling it. I.e. it opens behind the main app (problem #1); you need to click on Matlab icon to see this dialog, then, once you select file(s) the focus remains with Matlab window, then, to come back to your app (problem #2), again, manually click on your app to give it the focus.
I found one workaround which seems failing in 2021b on Mac–the dialog still opens behind the main calling app:
f2 = figure(‘Visible’,’off’); % create a dummy figure
drawnow; % give it a focus
[file, path] = uigetfile(…); % call this stubborn thing
delete(f2); % delete dummy
% the above does not work on Mac
% then the 2nd workaround, to give focus back to the calling main fig
% it works fine
drawnow;
figure(f); % f is a handle of the main fig, created with uifigure()
Anybody can help to open this dialog on top of the main app?
I’m on MacOS Monterey. It could be OS dependant, I’m afraid.
The thing is: the new figure is spawned inside uigetfile(), and currently uigetfile() has no way to explicitly mention the parent, therefore, I believe it is Java/OS who decides on the ancestor. And at least on Mac it decides to open it in the main Matlab window. Maybe the dummy figure workaround works on Win (or there is no problem #1 on Win in the first place). One can work with Java window manager to change the focus, but this needs to be done right after the appearance of the dialog, i.e. inside the uigetfile(), not before or after its call.
Eventually, I want to compile the app to a standalone. Thus, there will be no Matlab main window. Maybe then it will behave better. What I’m hearing from others is that this appearance/focus behavior is not consitent between App-Design-created vs programmatical, compiled vs in-Matlab, and diff versions.
ThanksHi,
uigetfile(), I think, creates a new figure; it has no parent argument. A number of people complained that its dialog window has unexpeced bahaviour in terms of appearance and focus.
I’m calling it from my main figure (created programmatically with uifigure). The uigetfile() dialog opens as a child of MATLAB window, and NOT as a child of my GUI app which is actually calling it. I.e. it opens behind the main app (problem #1); you need to click on Matlab icon to see this dialog, then, once you select file(s) the focus remains with Matlab window, then, to come back to your app (problem #2), again, manually click on your app to give it the focus.
I found one workaround which seems failing in 2021b on Mac–the dialog still opens behind the main calling app:
f2 = figure(‘Visible’,’off’); % create a dummy figure
drawnow; % give it a focus
[file, path] = uigetfile(…); % call this stubborn thing
delete(f2); % delete dummy
% the above does not work on Mac
% then the 2nd workaround, to give focus back to the calling main fig
% it works fine
drawnow;
figure(f); % f is a handle of the main fig, created with uifigure()
Anybody can help to open this dialog on top of the main app?
I’m on MacOS Monterey. It could be OS dependant, I’m afraid.
The thing is: the new figure is spawned inside uigetfile(), and currently uigetfile() has no way to explicitly mention the parent, therefore, I believe it is Java/OS who decides on the ancestor. And at least on Mac it decides to open it in the main Matlab window. Maybe the dummy figure workaround works on Win (or there is no problem #1 on Win in the first place). One can work with Java window manager to change the focus, but this needs to be done right after the appearance of the dialog, i.e. inside the uigetfile(), not before or after its call.
Eventually, I want to compile the app to a standalone. Thus, there will be no Matlab main window. Maybe then it will behave better. What I’m hearing from others is that this appearance/focus behavior is not consitent between App-Design-created vs programmatical, compiled vs in-Matlab, and diff versions.
Thanks Hi,
uigetfile(), I think, creates a new figure; it has no parent argument. A number of people complained that its dialog window has unexpeced bahaviour in terms of appearance and focus.
I’m calling it from my main figure (created programmatically with uifigure). The uigetfile() dialog opens as a child of MATLAB window, and NOT as a child of my GUI app which is actually calling it. I.e. it opens behind the main app (problem #1); you need to click on Matlab icon to see this dialog, then, once you select file(s) the focus remains with Matlab window, then, to come back to your app (problem #2), again, manually click on your app to give it the focus.
I found one workaround which seems failing in 2021b on Mac–the dialog still opens behind the main calling app:
f2 = figure(‘Visible’,’off’); % create a dummy figure
drawnow; % give it a focus
[file, path] = uigetfile(…); % call this stubborn thing
delete(f2); % delete dummy
% the above does not work on Mac
% then the 2nd workaround, to give focus back to the calling main fig
% it works fine
drawnow;
figure(f); % f is a handle of the main fig, created with uifigure()
Anybody can help to open this dialog on top of the main app?
I’m on MacOS Monterey. It could be OS dependant, I’m afraid.
The thing is: the new figure is spawned inside uigetfile(), and currently uigetfile() has no way to explicitly mention the parent, therefore, I believe it is Java/OS who decides on the ancestor. And at least on Mac it decides to open it in the main Matlab window. Maybe the dummy figure workaround works on Win (or there is no problem #1 on Win in the first place). One can work with Java window manager to change the focus, but this needs to be done right after the appearance of the dialog, i.e. inside the uigetfile(), not before or after its call.
Eventually, I want to compile the app to a standalone. Thus, there will be no Matlab main window. Maybe then it will behave better. What I’m hearing from others is that this appearance/focus behavior is not consitent between App-Design-created vs programmatical, compiled vs in-Matlab, and diff versions.
Thanks uigetfile, uifigure, focus MATLAB Answers — New Questions
VLOOKUP Issue
Hi,
My apologies as this is a very basic VLOOKUP question but I can’t figure it out. I have data where every person has a research partner. I’m trying to create a Partner_ID variable that contains the ID of the person the participant is partnered with. I’m pretty sure VLOOKUP is the best way to do this but it isn’t working for me. I have put an example with fake data in the screenshot below. Essentially, I want VLOOKUP to search for the name “Cox” in the Table and find the name under the LastName column, then print the ID that is next to it (in this case, cell D2 should print a 3, indicating that Perry’s Partner is ID#3). As you can see, however, Excel is returning error messages that it can’t find the expected value. I’ve looked at various tutorials and I can’t figure out what I’m doing wrong. Thank you!
The formula I’m using is =VLOOKUP(C2,$A$2:$B$7,1,FALSE)
Hi, My apologies as this is a very basic VLOOKUP question but I can’t figure it out. I have data where every person has a research partner. I’m trying to create a Partner_ID variable that contains the ID of the person the participant is partnered with. I’m pretty sure VLOOKUP is the best way to do this but it isn’t working for me. I have put an example with fake data in the screenshot below. Essentially, I want VLOOKUP to search for the name “Cox” in the Table and find the name under the LastName column, then print the ID that is next to it (in this case, cell D2 should print a 3, indicating that Perry’s Partner is ID#3). As you can see, however, Excel is returning error messages that it can’t find the expected value. I’ve looked at various tutorials and I can’t figure out what I’m doing wrong. Thank you! The formula I’m using is =VLOOKUP(C2,$A$2:$B$7,1,FALSE) Read More
Why do I have to have AI?
I want the latest speed and memory of the latest surface pro, but I don’t want anything to do with AI. can I purchase a surface pro without AI?
I want the latest speed and memory of the latest surface pro, but I don’t want anything to do with AI. can I purchase a surface pro without AI? Read More
matlab compiled application crashes after macos signing
I am trying to compile the mac os (ARM) application and get it signed using instructions from this.
My application works fine before signing, but after signing, it crashes during the start.
Stack Trace (from fault):
[ 0] 0x0000000101746ca0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00011424 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000064
[ 1] 0x0000000101749b68 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00023400 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00002144
[ 2] 0x0000000101749028 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00020520 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000140
[ 3] 0x0000000104661de0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00482784 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00011892
[ 4] 0x000000010465fc80 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00474240 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003348
[ 5] 0x000000010465d720 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00464672 mnFatalSignalHandler+00000140
[ 6] 0x000000019eb57584 /usr/lib/system/libsystem_platform.dylib+00017796 _sigtramp+00000056
[ 7] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 8] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 9] 0x00000001256406d4 /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+03737300 JNI_CreateJavaVM+00000120
[ 10] 0x000000010e780814 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00395284 _Z9InitSunVMRKN7mwboost8optionalINSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEEE+00001392
[ 11] 0x000000010e783b8c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00408460 _Z16InitJavaExtendedbRKN8services6config14JmiInitOptionsE+00000372
[ 12] 0x000000010e74bfe4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00180196 _Z15mljInitExtendedRKN8services6config14JmiInitOptionsE+00000044
[ 13] 0x0000000123398054 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/matlab_startup_plugins/jmi/mwjmiloader.dylib+00016468 _ZN9jmiloader15createJmiLoaderEN16cppmicroservices13BundleContextE+00006044
[ 14] 0x000000010462fd30 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00277808 _ZN3mcr7runtime9jmi_proxy7mljInitEv+00000244
[ 15] 0x0000000104625f24 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00237348 _Z15mcr_initialize0PKDsPS0_RKN7mwboost10shared_ptrIN10foundation7msg_svc8eventmgr8EventMgrEEEN6mlutil10contextmgr5MvmIDE+00002952
[ 16] 0x0000000104641cc4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00351428 _ZN3tbb10interface519concurrent_hash_mapIlP11mcrInstanceNS_16tbb_hash_compareIlEENS_13tbb_allocatorINSt3__14pairIKlS3_EEEEE28allocate_node_move_constructERNS6_INSC_4nodeEEERS9_PKS3_+00002452
[ 17] 0x000000010461a03c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00188476 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00000348
[ 18] 0x000000010461b908 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00194824 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00006696
[ 19] 0x0000000100abe868 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwboost_thread.dylib+00010344 _ZN7mwboost6thread21start_thread_noexceptEv+00000444
[ 20] 0x000000019eb26f94 /usr/lib/system/libsystem_pthread.dylib+00028564 _pthread_start+00000136
[ 21] 0x000000019eb21d34 /usr/lib/system/libsystem_pthread.dylib+00007476 thread_start+00000008
I tried reinstalling Amazon Corretto and updating Matlab to the latest version, but nothing worked.
I tried using the most basic applications with no code, even if it was crashing.
Attached is the code, compiled unsigned application, logs, crash dump, and entitlements file.I am trying to compile the mac os (ARM) application and get it signed using instructions from this.
My application works fine before signing, but after signing, it crashes during the start.
Stack Trace (from fault):
[ 0] 0x0000000101746ca0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00011424 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000064
[ 1] 0x0000000101749b68 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00023400 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00002144
[ 2] 0x0000000101749028 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00020520 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000140
[ 3] 0x0000000104661de0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00482784 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00011892
[ 4] 0x000000010465fc80 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00474240 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003348
[ 5] 0x000000010465d720 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00464672 mnFatalSignalHandler+00000140
[ 6] 0x000000019eb57584 /usr/lib/system/libsystem_platform.dylib+00017796 _sigtramp+00000056
[ 7] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 8] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 9] 0x00000001256406d4 /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+03737300 JNI_CreateJavaVM+00000120
[ 10] 0x000000010e780814 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00395284 _Z9InitSunVMRKN7mwboost8optionalINSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEEE+00001392
[ 11] 0x000000010e783b8c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00408460 _Z16InitJavaExtendedbRKN8services6config14JmiInitOptionsE+00000372
[ 12] 0x000000010e74bfe4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00180196 _Z15mljInitExtendedRKN8services6config14JmiInitOptionsE+00000044
[ 13] 0x0000000123398054 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/matlab_startup_plugins/jmi/mwjmiloader.dylib+00016468 _ZN9jmiloader15createJmiLoaderEN16cppmicroservices13BundleContextE+00006044
[ 14] 0x000000010462fd30 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00277808 _ZN3mcr7runtime9jmi_proxy7mljInitEv+00000244
[ 15] 0x0000000104625f24 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00237348 _Z15mcr_initialize0PKDsPS0_RKN7mwboost10shared_ptrIN10foundation7msg_svc8eventmgr8EventMgrEEEN6mlutil10contextmgr5MvmIDE+00002952
[ 16] 0x0000000104641cc4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00351428 _ZN3tbb10interface519concurrent_hash_mapIlP11mcrInstanceNS_16tbb_hash_compareIlEENS_13tbb_allocatorINSt3__14pairIKlS3_EEEEE28allocate_node_move_constructERNS6_INSC_4nodeEEERS9_PKS3_+00002452
[ 17] 0x000000010461a03c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00188476 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00000348
[ 18] 0x000000010461b908 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00194824 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00006696
[ 19] 0x0000000100abe868 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwboost_thread.dylib+00010344 _ZN7mwboost6thread21start_thread_noexceptEv+00000444
[ 20] 0x000000019eb26f94 /usr/lib/system/libsystem_pthread.dylib+00028564 _pthread_start+00000136
[ 21] 0x000000019eb21d34 /usr/lib/system/libsystem_pthread.dylib+00007476 thread_start+00000008
I tried reinstalling Amazon Corretto and updating Matlab to the latest version, but nothing worked.
I tried using the most basic applications with no code, even if it was crashing.
Attached is the code, compiled unsigned application, logs, crash dump, and entitlements file. I am trying to compile the mac os (ARM) application and get it signed using instructions from this.
My application works fine before signing, but after signing, it crashes during the start.
Stack Trace (from fault):
[ 0] 0x0000000101746ca0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00011424 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000064
[ 1] 0x0000000101749b68 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00023400 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00002144
[ 2] 0x0000000101749028 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwfl.dylib+00020520 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000140
[ 3] 0x0000000104661de0 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00482784 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00011892
[ 4] 0x000000010465fc80 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00474240 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003348
[ 5] 0x000000010465d720 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00464672 mnFatalSignalHandler+00000140
[ 6] 0x000000019eb57584 /usr/lib/system/libsystem_platform.dylib+00017796 _sigtramp+00000056
[ 7] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 8] 0x000000012599351c /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+07222556 _ZN7Threads9create_vmEP14JavaVMInitArgsPb+00000096
[ 9] 0x00000001256406d4 /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home/lib/server/libjvm.dylib+03737300 JNI_CreateJavaVM+00000120
[ 10] 0x000000010e780814 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00395284 _Z9InitSunVMRKN7mwboost8optionalINSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEEEE+00001392
[ 11] 0x000000010e783b8c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00408460 _Z16InitJavaExtendedbRKN8services6config14JmiInitOptionsE+00000372
[ 12] 0x000000010e74bfe4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwjmi.dylib+00180196 _Z15mljInitExtendedRKN8services6config14JmiInitOptionsE+00000044
[ 13] 0x0000000123398054 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/matlab_startup_plugins/jmi/mwjmiloader.dylib+00016468 _ZN9jmiloader15createJmiLoaderEN16cppmicroservices13BundleContextE+00006044
[ 14] 0x000000010462fd30 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00277808 _ZN3mcr7runtime9jmi_proxy7mljInitEv+00000244
[ 15] 0x0000000104625f24 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00237348 _Z15mcr_initialize0PKDsPS0_RKN7mwboost10shared_ptrIN10foundation7msg_svc8eventmgr8EventMgrEEEN6mlutil10contextmgr5MvmIDE+00002952
[ 16] 0x0000000104641cc4 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00351428 _ZN3tbb10interface519concurrent_hash_mapIlP11mcrInstanceNS_16tbb_hash_compareIlEENS_13tbb_allocatorINSt3__14pairIKlS3_EEEEE28allocate_node_move_constructERNS6_INSC_4nodeEEERS9_PKS3_+00002452
[ 17] 0x000000010461a03c /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00188476 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00000348
[ 18] 0x000000010461b908 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwmcr.dylib+00194824 _ZN3mcr7runtime22InterpreterThreadMulti10threadMainENSt3__18functionIFvvEEENS2_7promiseIvEE+00006696
[ 19] 0x0000000100abe868 /Applications/MATLAB/MATLAB_Runtime/R2024a/bin/maca64/libmwboost_thread.dylib+00010344 _ZN7mwboost6thread21start_thread_noexceptEv+00000444
[ 20] 0x000000019eb26f94 /usr/lib/system/libsystem_pthread.dylib+00028564 _pthread_start+00000136
[ 21] 0x000000019eb21d34 /usr/lib/system/libsystem_pthread.dylib+00007476 thread_start+00000008
I tried reinstalling Amazon Corretto and updating Matlab to the latest version, but nothing worked.
I tried using the most basic applications with no code, even if it was crashing.
Attached is the code, compiled unsigned application, logs, crash dump, and entitlements file. matlab compiler, mac, arm, signing, apple, application MATLAB Answers — New Questions
Cannot add a gmail account as a POP account to Outlook Pro Plus 2021
I am trying to get my 6 email accounts into one inbox by having them all be POP accounts. One of my oldest gmail accounts will not recognize my gmail password. I’ve gone into my Gmail and enabled POP, saved it to no avail. It will only add the account as an IMAP account which separates the inbox and defeats my purpose. TIA for your assistance!
I am trying to get my 6 email accounts into one inbox by having them all be POP accounts. One of my oldest gmail accounts will not recognize my gmail password. I’ve gone into my Gmail and enabled POP, saved it to no avail. It will only add the account as an IMAP account which separates the inbox and defeats my purpose. TIA for your assistance! Read More
Sharing with unlicensed members of my team
I’m a new MS Project user. I’m attempting to share a roadmap with other members of my team, who do not have access to MS Projects. How do I do this?
I’m a new MS Project user. I’m attempting to share a roadmap with other members of my team, who do not have access to MS Projects. How do I do this? Read More
we couldnot save your tab settings.
Hi All
i am using M365 E5 license. I am unable to add the “Planner” app as a new tab in a channel. i am the owner of the teams. i am getting error we couldn’t save your tab settings. please try again.
Hi Alli am using M365 E5 license. I am unable to add the “Planner” app as a new tab in a channel. i am the owner of the teams. i am getting error we couldn’t save your tab settings. please try again. Read More
I lost all my documents and images stored on my one drive account
Hello,
I lost all my documents and images stored on my one drive account at email address removed for privacy reasons.
It is a school alumni account.
I would hereby appreciate your help in retrieving this as quickly as possible, as many of these documents have professional use and personal value. You can contact me by email.
Kind regards,
Hong Ducruet
Hello, I lost all my documents and images stored on my one drive account at email address removed for privacy reasons. It is a school alumni account. I would hereby appreciate your help in retrieving this as quickly as possible, as many of these documents have professional use and personal value. You can contact me by email. Kind regards, Hong Ducruet Read More
Chapter page formatting for novel
I’m formatting a manuscript (my novel) in Word V 16.8 and need to have each new chapter start in the middle of the page without using the enter key or returns. I’m ignorant about most of Word. I only enough to start typing. Can you help?
I’m formatting a manuscript (my novel) in Word V 16.8 and need to have each new chapter start in the middle of the page without using the enter key or returns. I’m ignorant about most of Word. I only enough to start typing. Can you help? Read More
About the solution type in OOPs OnRamp course in Matlab
There is one particular course in Matlab called OOPs OnRamp which is really hard to solve even with the help of the solutions nearby. I feel that it is because of the file format. In that course, we are to type our solutions in different files and run them seperately and finally solve them which is really difficult for me and many of my friends. Is there any explanation for the course to solve? All the lessons in that course is hard to do.There is one particular course in Matlab called OOPs OnRamp which is really hard to solve even with the help of the solutions nearby. I feel that it is because of the file format. In that course, we are to type our solutions in different files and run them seperately and finally solve them which is really difficult for me and many of my friends. Is there any explanation for the course to solve? All the lessons in that course is hard to do. There is one particular course in Matlab called OOPs OnRamp which is really hard to solve even with the help of the solutions nearby. I feel that it is because of the file format. In that course, we are to type our solutions in different files and run them seperately and finally solve them which is really difficult for me and many of my friends. Is there any explanation for the course to solve? All the lessons in that course is hard to do. oops onramp, object-oriented programming onramp MATLAB Answers — New Questions
tally scores over several sheets
I am trying to create a summary score sheet to find a High point winner. The program has an Entries sheet where names are entered and marked as to which ‘classes’ they are participating in. (there are 12 classes) Each class has it’s own sheet. The competitors receive a set of scores for each class which is totaled and sorted High to Low. Of a total of 30 competitors maybe 10 are in one class, they can enter several classes.
I want to create a summary of their scores. A summary page uses this formula (=IF(Entries!$A4<>””,Entries!B4,””) to copy their names to the summary. The problem is for ‘Class A’ when the scores are tallied and sorted, the total does not match the competitor input line anymore. I can total a score if I chose a specific cell (=’#1 (Saturday)’!T6) but it does not relate to that competitor… Is there a way to sort that out?
I am trying to create a summary score sheet to find a High point winner. The program has an Entries sheet where names are entered and marked as to which ‘classes’ they are participating in. (there are 12 classes) Each class has it’s own sheet. The competitors receive a set of scores for each class which is totaled and sorted High to Low. Of a total of 30 competitors maybe 10 are in one class, they can enter several classes. I want to create a summary of their scores. A summary page uses this formula (=IF(Entries!$A4<>””,Entries!B4,””) to copy their names to the summary. The problem is for ‘Class A’ when the scores are tallied and sorted, the total does not match the competitor input line anymore. I can total a score if I chose a specific cell (=’#1 (Saturday)’!T6) but it does not relate to that competitor… Is there a way to sort that out? Read More
Why do not the Select part table display in the Block Parameterization Manager: Battery?
I want to select the Panasonic NCA593446 battery for Battery (Table-Based) block in my model and the Select part table don’t display anything in the Block Parameterization Manager: Battery. Please tell me how to fix this problem.I want to select the Panasonic NCA593446 battery for Battery (Table-Based) block in my model and the Select part table don’t display anything in the Block Parameterization Manager: Battery. Please tell me how to fix this problem. I want to select the Panasonic NCA593446 battery for Battery (Table-Based) block in my model and the Select part table don’t display anything in the Block Parameterization Manager: Battery. Please tell me how to fix this problem. battery, block parameterization manager MATLAB Answers — New Questions
Error encountered in the Deep Signal Anomaly detector while running the official SIMULINK example
Hi all,
I am runnining this official Simulink example here: fault_localization in 3-phase power line.
I had a somewhat different circuit and thus I trained a new model following this guideline. However, after training my deep anamoly detector and while trying to apply this trained model to my detection model, I keep getting this error as shown in this screenshot:
Any suggestions on how to fix this? I’m pretty sure I used the
saveModel
command to save the parameters of my trained model. It looks like the model parameters file in the provided example works here, but mine wouldn’t work. I spent quite some time on this but still haven’t figured out a solution.Hi all,
I am runnining this official Simulink example here: fault_localization in 3-phase power line.
I had a somewhat different circuit and thus I trained a new model following this guideline. However, after training my deep anamoly detector and while trying to apply this trained model to my detection model, I keep getting this error as shown in this screenshot:
Any suggestions on how to fix this? I’m pretty sure I used the
saveModel
command to save the parameters of my trained model. It looks like the model parameters file in the provided example works here, but mine wouldn’t work. I spent quite some time on this but still haven’t figured out a solution. Hi all,
I am runnining this official Simulink example here: fault_localization in 3-phase power line.
I had a somewhat different circuit and thus I trained a new model following this guideline. However, after training my deep anamoly detector and while trying to apply this trained model to my detection model, I keep getting this error as shown in this screenshot:
Any suggestions on how to fix this? I’m pretty sure I used the
saveModel
command to save the parameters of my trained model. It looks like the model parameters file in the provided example works here, but mine wouldn’t work. I spent quite some time on this but still haven’t figured out a solution. deep learning, simulink MATLAB Answers — New Questions
Unexpected behavior resulting from the Three-Phase-Fault block in my simulated circuit (Simulink)
Hi all,
I am simulating a circuit with a 3-phase fault inserted as shown here:
My goal is to simulate the fault at different locations by varying the length of the Distributed Parameters Line blocks many many times, and then collect the 3-phase voltage + current data for training a deep neural network for fault localization. Thus, I used an external control signal to somewhat randomly switch on and off the three-phase-fault block as shown here:
Where SysModel is the one I just showed earlier.
However, the weird thing happens. The external control signal to the 3-phase-fault occurs at around 0.01 second (determined by the pulse generator and delay), and lasts for 0.01 seconds. But the resulting 3-phase voltage and currents in the Time Scope look like this:
this does not make sense because:
There is no transient resposne in the currents at all
The transient response in the voltages should die out shortly after 0.02, but somehow it automatically turns up again toward the end of the simulation.
Here is the time scope for the external control signal that’s going into the 3-phase-fault block (From "Composite Signal 1" in the previous screenshot):
In addition, I am using the following settings for the Distributed Parameters Line blocks:
I’d greatly appreciate any help!Hi all,
I am simulating a circuit with a 3-phase fault inserted as shown here:
My goal is to simulate the fault at different locations by varying the length of the Distributed Parameters Line blocks many many times, and then collect the 3-phase voltage + current data for training a deep neural network for fault localization. Thus, I used an external control signal to somewhat randomly switch on and off the three-phase-fault block as shown here:
Where SysModel is the one I just showed earlier.
However, the weird thing happens. The external control signal to the 3-phase-fault occurs at around 0.01 second (determined by the pulse generator and delay), and lasts for 0.01 seconds. But the resulting 3-phase voltage and currents in the Time Scope look like this:
this does not make sense because:
There is no transient resposne in the currents at all
The transient response in the voltages should die out shortly after 0.02, but somehow it automatically turns up again toward the end of the simulation.
Here is the time scope for the external control signal that’s going into the 3-phase-fault block (From "Composite Signal 1" in the previous screenshot):
In addition, I am using the following settings for the Distributed Parameters Line blocks:
I’d greatly appreciate any help! Hi all,
I am simulating a circuit with a 3-phase fault inserted as shown here:
My goal is to simulate the fault at different locations by varying the length of the Distributed Parameters Line blocks many many times, and then collect the 3-phase voltage + current data for training a deep neural network for fault localization. Thus, I used an external control signal to somewhat randomly switch on and off the three-phase-fault block as shown here:
Where SysModel is the one I just showed earlier.
However, the weird thing happens. The external control signal to the 3-phase-fault occurs at around 0.01 second (determined by the pulse generator and delay), and lasts for 0.01 seconds. But the resulting 3-phase voltage and currents in the Time Scope look like this:
this does not make sense because:
There is no transient resposne in the currents at all
The transient response in the voltages should die out shortly after 0.02, but somehow it automatically turns up again toward the end of the simulation.
Here is the time scope for the external control signal that’s going into the 3-phase-fault block (From "Composite Signal 1" in the previous screenshot):
In addition, I am using the following settings for the Distributed Parameters Line blocks:
I’d greatly appreciate any help! simulink, simscape, circuits MATLAB Answers — New Questions