Month: August 2024
Logging cmd in multiple diary
Hi,
i’m facing an issue in logging using the matlab ‘diary’ functionality. In the below pseudo-code i have 2 tools and both use diary to log the command window output and one is calling other. The diary off for 2nd tool is terminating the diary for the 1st tool as well due to which the remaining cmd display is not getting logged anywhere.
Here is how the logs are:
Is there a way to use ‘diary’ or some other functionality that would help is logging the command window output for the beow example ?
logger1();
function logger1()
logName = fullfile(pwd, ‘log1.txt’);
diary(logName);
fprintf(‘Initialzing logger 1n’);
fprintf(‘Display Message 1n’);
logger2;
fprintf(‘Display Message 2n’);
fprintf(‘End Logn’);
diary off
end
function logger2()
logName = fullfile(pwd, ‘log2.txt’);
diary(logName);
fprintf(‘Initialzing logger 2n’);
fprintf(‘Display Message 1n’);
fprintf(‘End Logn’);
diary off
endHi,
i’m facing an issue in logging using the matlab ‘diary’ functionality. In the below pseudo-code i have 2 tools and both use diary to log the command window output and one is calling other. The diary off for 2nd tool is terminating the diary for the 1st tool as well due to which the remaining cmd display is not getting logged anywhere.
Here is how the logs are:
Is there a way to use ‘diary’ or some other functionality that would help is logging the command window output for the beow example ?
logger1();
function logger1()
logName = fullfile(pwd, ‘log1.txt’);
diary(logName);
fprintf(‘Initialzing logger 1n’);
fprintf(‘Display Message 1n’);
logger2;
fprintf(‘Display Message 2n’);
fprintf(‘End Logn’);
diary off
end
function logger2()
logName = fullfile(pwd, ‘log2.txt’);
diary(logName);
fprintf(‘Initialzing logger 2n’);
fprintf(‘Display Message 1n’);
fprintf(‘End Logn’);
diary off
end Hi,
i’m facing an issue in logging using the matlab ‘diary’ functionality. In the below pseudo-code i have 2 tools and both use diary to log the command window output and one is calling other. The diary off for 2nd tool is terminating the diary for the 1st tool as well due to which the remaining cmd display is not getting logged anywhere.
Here is how the logs are:
Is there a way to use ‘diary’ or some other functionality that would help is logging the command window output for the beow example ?
logger1();
function logger1()
logName = fullfile(pwd, ‘log1.txt’);
diary(logName);
fprintf(‘Initialzing logger 1n’);
fprintf(‘Display Message 1n’);
logger2;
fprintf(‘Display Message 2n’);
fprintf(‘End Logn’);
diary off
end
function logger2()
logName = fullfile(pwd, ‘log2.txt’);
diary(logName);
fprintf(‘Initialzing logger 2n’);
fprintf(‘Display Message 1n’);
fprintf(‘End Logn’);
diary off
end diary, logging MATLAB Answers — New Questions
Handling memory when working with very huge data (.mat) files.
I am working with two 5D arrays (A5D and B5D) saved in a big_mat_file.mat file. The size of these arrays is specified in the code below. I want to perform three simple operations on these matrices, as shown in the code. I have access to my university’s computing cluster. When I run the following code with 120 workers and 400GB of memory, I receive the following error
In distcomp/remoteparfor/handleIntervalErrorResult (line 245) In distcomp/remoteparfor/getCompleteIntervals (line 395) In parallel_function>distributed_execution (line 746) In parallel_function (line 578)
Can someone please help me understanding what is causing this error. Is it because of low memory? It there anyother way to do the following operattions?
clear; clc;
load("big_mat_file.mat");
% it has two very huge 5D arrays "A5D" and "B5D", and two small arrays "as" and "bs"
% size of both A5D and B5D is [41 16 8 80 82]
% size of "as" is [1 80] and size of "bs" is [1 82]
xs = -12:0.1:12;
NX = length(xs);
ys = 0:0.4:12;
NY = length(ys);
total_iterations = NX * NY;
results = zeros(total_iterations , 41 , 16, 8);
XXs = zeros(total_iterations, 1);
YYs = zeros(total_iterations, 1);
parfor idx = 1:total_iterations
[ix, iy] = ind2sub([NX, NY], idx);
x = xs(ix);
y = ys(iy);
term1 = 1./(exp(1/y*(A5D-x)) + 10); %operation 1
to_integrate = B5D.*term1; %operation 2
XXs(idx) = x;
YYs(idx) = y;
results(idx, :, :, 🙂 = trapz(as,trapz(bs,to_integrate,5),4); %operation 3
end
XXs = reshape(XXs, [NX, NY]);
YYs = reshape(YYs, [NX, NY]);
results = reshape(results, [NX, NY, 41, 16, 8]);
clear A5D B5D
save(‘saved_data.mat’,’-v7.3′);I am working with two 5D arrays (A5D and B5D) saved in a big_mat_file.mat file. The size of these arrays is specified in the code below. I want to perform three simple operations on these matrices, as shown in the code. I have access to my university’s computing cluster. When I run the following code with 120 workers and 400GB of memory, I receive the following error
In distcomp/remoteparfor/handleIntervalErrorResult (line 245) In distcomp/remoteparfor/getCompleteIntervals (line 395) In parallel_function>distributed_execution (line 746) In parallel_function (line 578)
Can someone please help me understanding what is causing this error. Is it because of low memory? It there anyother way to do the following operattions?
clear; clc;
load("big_mat_file.mat");
% it has two very huge 5D arrays "A5D" and "B5D", and two small arrays "as" and "bs"
% size of both A5D and B5D is [41 16 8 80 82]
% size of "as" is [1 80] and size of "bs" is [1 82]
xs = -12:0.1:12;
NX = length(xs);
ys = 0:0.4:12;
NY = length(ys);
total_iterations = NX * NY;
results = zeros(total_iterations , 41 , 16, 8);
XXs = zeros(total_iterations, 1);
YYs = zeros(total_iterations, 1);
parfor idx = 1:total_iterations
[ix, iy] = ind2sub([NX, NY], idx);
x = xs(ix);
y = ys(iy);
term1 = 1./(exp(1/y*(A5D-x)) + 10); %operation 1
to_integrate = B5D.*term1; %operation 2
XXs(idx) = x;
YYs(idx) = y;
results(idx, :, :, 🙂 = trapz(as,trapz(bs,to_integrate,5),4); %operation 3
end
XXs = reshape(XXs, [NX, NY]);
YYs = reshape(YYs, [NX, NY]);
results = reshape(results, [NX, NY, 41, 16, 8]);
clear A5D B5D
save(‘saved_data.mat’,’-v7.3′); I am working with two 5D arrays (A5D and B5D) saved in a big_mat_file.mat file. The size of these arrays is specified in the code below. I want to perform three simple operations on these matrices, as shown in the code. I have access to my university’s computing cluster. When I run the following code with 120 workers and 400GB of memory, I receive the following error
In distcomp/remoteparfor/handleIntervalErrorResult (line 245) In distcomp/remoteparfor/getCompleteIntervals (line 395) In parallel_function>distributed_execution (line 746) In parallel_function (line 578)
Can someone please help me understanding what is causing this error. Is it because of low memory? It there anyother way to do the following operattions?
clear; clc;
load("big_mat_file.mat");
% it has two very huge 5D arrays "A5D" and "B5D", and two small arrays "as" and "bs"
% size of both A5D and B5D is [41 16 8 80 82]
% size of "as" is [1 80] and size of "bs" is [1 82]
xs = -12:0.1:12;
NX = length(xs);
ys = 0:0.4:12;
NY = length(ys);
total_iterations = NX * NY;
results = zeros(total_iterations , 41 , 16, 8);
XXs = zeros(total_iterations, 1);
YYs = zeros(total_iterations, 1);
parfor idx = 1:total_iterations
[ix, iy] = ind2sub([NX, NY], idx);
x = xs(ix);
y = ys(iy);
term1 = 1./(exp(1/y*(A5D-x)) + 10); %operation 1
to_integrate = B5D.*term1; %operation 2
XXs(idx) = x;
YYs(idx) = y;
results(idx, :, :, 🙂 = trapz(as,trapz(bs,to_integrate,5),4); %operation 3
end
XXs = reshape(XXs, [NX, NY]);
YYs = reshape(YYs, [NX, NY]);
results = reshape(results, [NX, NY, 41, 16, 8]);
clear A5D B5D
save(‘saved_data.mat’,’-v7.3′); parfor, for loop, performance MATLAB Answers — New Questions
Monitor and Notify Security Changes on a Team
We have a couple of teams that are only for executive team members. Is there a way I can monitor security changes within a Team? It could be a Power Automate or use other tools.
We have a couple of teams that are only for executive team members. Is there a way I can monitor security changes within a Team? It could be a Power Automate or use other tools. Read More
Sort data in PowerPoint table – Feature Request
Sorting tabular data is available in:
ExcelWord (Layout > Data > Sort)Outlook (Layout > Data > Sort)OneNote (Table > Data > Sort)
But not in PowerPoint? Surely this can be added to PowerPoint?
Sorting tabular data is available in:ExcelWord (Layout > Data > Sort)Outlook (Layout > Data > Sort)OneNote (Table > Data > Sort)But not in PowerPoint? Surely this can be added to PowerPoint? Read More
Migration Tool Access and moving old videos
We noticed some of our videos hadn’t been moved yet and went to try and fix it via the migration tool and we don’t seem to be able to do so now.
Is the tool decommissioned already and and is there anything we can do?
We noticed some of our videos hadn’t been moved yet and went to try and fix it via the migration tool and we don’t seem to be able to do so now. Is the tool decommissioned already and and is there anything we can do? Read More
Please clarify, applies to Microsoft Defender Application Guard (MDAG)
Microsoft Defender Application Guard (MDAG) is still recommended in Microsoft Edge for web browsing protection.
Is it an outdated app or should it be discontinued for Windows11?
Microsoft Edge and Microsoft Defender Application Guard | Microsoft Learn
Why is it possible to run in the latest version of Windows11?
Microsoft Defender Application Guard (MDAG) is still recommended in Microsoft Edge for web browsing protection.Is it an outdated app or should it be discontinued for Windows11?Microsoft Edge and Microsoft Defender Application Guard | Microsoft LearnWhy is it possible to run in the latest version of Windows11? Read More
Power Query for Mac using array as data source
Its not obvious to me how to connect an array as the data source for my Power Query on Mac. I have seen some videos that show connecting to Ranges and Tables using a PC.
Its not obvious to me how to connect an array as the data source for my Power Query on Mac. I have seen some videos that show connecting to Ranges and Tables using a PC. Read More
Copilot and Mac
Before I spend the subscription fee for Copilot, will it work on the Mac Version of Office 365?
The only add-in option I see when I search for Copilot is R2 Copilot: Private ChatGPT
I am wanting to use it to help create powerpoint presentations from word documents, I have seen some really great videos on this. But they are always on a Windows Operating System.
Can I do this on a MacBook Pro running macOS 15?
thanks.
Before I spend the subscription fee for Copilot, will it work on the Mac Version of Office 365? The only add-in option I see when I search for Copilot is R2 Copilot: Private ChatGPT I am wanting to use it to help create powerpoint presentations from word documents, I have seen some really great videos on this. But they are always on a Windows Operating System. Can I do this on a MacBook Pro running macOS 15? thanks. Read More
select some staff but others are required
I would like to create bookings where customers can select certain staff, but have other staff always guaranteed to be assigned.
For example:
Operations Request Meeting
Staff:
Operations Manager
Ops staff 1
Ops staff 2
Ops staff 3
Where someone can select one of the staff members, but the Manager is always assigned to the booking
Is this possible?
I would like to create bookings where customers can select certain staff, but have other staff always guaranteed to be assigned.For example: Operations Request MeetingStaff:Operations ManagerOps staff 1Ops staff 2Ops staff 3 Where someone can select one of the staff members, but the Manager is always assigned to the booking Is this possible? Read More
public booking pages will not load for non-office users
Clients attempting to book time with me using the Bookings page are receiving this error when they click the public link:
UTC Date: 2024-08-29T14:28:44.800Z
Client Id: 2
Session Id:
BootResult: retry
Back Filled Errors: Unhandled Rejection: SyntaxError: The string did not match the expected pattern.:undefinedlUnhandled Rejec
err: Microsoft.Exchange.Clients.Owa2.Server.Core.OwaUserHasNoMailboxAndNoLicenseAssignedException
esrc: StartupData
et: ServerError
estack:
st: 500
ehk: X-OWA-Error
efe: DS7P222CA0023, SA9PR11CA0021
ebe: DM8PR01MB6933
emsg: UserHasNoMailboxAndNoLicenseAssignedError
How do I resolve this so outside users can use the link to book?
Clients attempting to book time with me using the Bookings page are receiving this error when they click the public link: UTC Date: 2024-08-29T14:28:44.800ZClient Id: 2Session Id:BootResult: retryBack Filled Errors: Unhandled Rejection: SyntaxError: The string did not match the expected pattern.:undefinedlUnhandled Rejecerr: Microsoft.Exchange.Clients.Owa2.Server.Core.OwaUserHasNoMailboxAndNoLicenseAssignedExceptionesrc: StartupDataet: ServerErrorestack:st: 500ehk: X-OWA-Errorefe: DS7P222CA0023, SA9PR11CA0021ebe: DM8PR01MB6933emsg: UserHasNoMailboxAndNoLicenseAssignedError How do I resolve this so outside users can use the link to book? Read More
Formula Help for a tally
Looking for quick help creating a formula.
What I’m working with is going to be a long table with up to 30 names that’ll be repeating often. They can also have a specific number (employee number) attached to each one, to accommodate for any misspellings. Is there a formula that can calculate how many times the name/number appears? Like, 34678 shows up 34 times in Column A, and the result is put into another table/sheet, or just displayed after setting the formula into a cell? The goal is just that, quickly identify how many times it repeats.
Thanks!
Looking for quick help creating a formula.What I’m working with is going to be a long table with up to 30 names that’ll be repeating often. They can also have a specific number (employee number) attached to each one, to accommodate for any misspellings. Is there a formula that can calculate how many times the name/number appears? Like, 34678 shows up 34 times in Column A, and the result is put into another table/sheet, or just displayed after setting the formula into a cell? The goal is just that, quickly identify how many times it repeats.Thanks! Read More
Forms in Libraries
Hi,
I hope this is the right place to post this. If not please redirect me.
I currently have a system to create customer quotes using sharepoint lists, power automate, and a sharepoint library. The user goes to the list and creates a new entry by clicking new, then fills out the form with all the information. When they click save a “Flow” starts that gets the item properties from the newly created list item, then gets a content type template (word doc with quickparts) from a sharepoint library, then populates the template with the item properties and saves a copy in the library.
My question is this: Why do I need a list and a library to do this? Could I not do this all within one library and different views? I would like to have the user go to the library and click new, then select the document type, then fill out a form, and sharepoint would create a document from the content type template with all of the form data filled out.
I have got most of the way there but am running into a few problems:
1. When you select “new document” the new document opens in Word. I want a form to open instead.
2. When I proceed with filling out the properties in Word and then try to save the document, it wants to “save as” and prompts for a new location. I want it save to the library.
Hi,I hope this is the right place to post this. If not please redirect me. I currently have a system to create customer quotes using sharepoint lists, power automate, and a sharepoint library. The user goes to the list and creates a new entry by clicking new, then fills out the form with all the information. When they click save a “Flow” starts that gets the item properties from the newly created list item, then gets a content type template (word doc with quickparts) from a sharepoint library, then populates the template with the item properties and saves a copy in the library. My question is this: Why do I need a list and a library to do this? Could I not do this all within one library and different views? I would like to have the user go to the library and click new, then select the document type, then fill out a form, and sharepoint would create a document from the content type template with all of the form data filled out.I have got most of the way there but am running into a few problems:1. When you select “new document” the new document opens in Word. I want a form to open instead.2. When I proceed with filling out the properties in Word and then try to save the document, it wants to “save as” and prompts for a new location. I want it save to the library. Read More
August V2 Title Plan now available!
Don’t forget to checkout updates made to the Title Plan, shared in its permanent location, linked above.
Please note: This is not a support forum. Only comments related to this specific blog post content are permitted and responded to.
For ILT Courseware Support, please visit: aka.ms/ILTSupport
If you have ILT questions not related to this blog post, please reach out to your program for support.
Microsoft Tech Community – Latest Blogs –Read More
Introducing granular permissions for Azure Service Bus Explorer
When working with the Service Bus Explorer in the Azure portal, you may want to grant different permissions to different users, depending on their role and responsibility. For example, you may want to allow some users to send messages to a queue, but not receive them. Or you may want to restrict access to a specific queue, topic, or subscription, but not the entire namespace.
To address this challenge, we are excited to announce granular permissions for Service Bus Explorer. To use granular permissions, you need to use Microsoft Entra authentication, and assign one of the following roles, either on the namespace level or on the entity level.
Service Bus Data Owner; Allows to execute both send and receive operations.
Service Bus Data Sender; Allows to execute send operations.
Service Bus Data Receiver; Allows to execute peek, receive, and purge operations.
In case you use a role which doesn’t have send or receive permissions, or you do not have permissions on the specific entity, the unavailable operations will be disabled. Furthermore, a notification will be shown showing which permissions are missing.
For more information on using the Service Bus Explorer, you can check our documentation.
Microsoft Tech Community – Latest Blogs –Read More
Partner Blog | Unlocking growth: leveraging Microsoft tools for growing your migration practice
By Pankaj Srivastava, General Manager, Azure Partner Sales & Strategy
In today’s dynamic digital landscape, staying relevant means continuously adapting and using the best tools available. For partners focused on building their migration practice, Microsoft offers a unique opportunity to grow their business with a robust suite of resources and offers designed to streamline migration processes, enhance operational efficiency, and drive growth. In this blog, we discuss how you can best use these assets to enhance your services and drive success.
Generate customer interest and demand
Start by accessing Microsoft CloudAscent customer propensity lists in Partner Center to identify migration and security opportunities within the SMB sector. These lists help you target the right customers for your services. For managed partners, your PDM can download additional Enterprise and SMC-C migration propensity lists, providing key information about each account where you are the incumbent. These lists include Windows Server end-of-support (EOS) opportunity flags, SQL Server EOS flags, Microsoft Defender for Cloud consumption flags, and whether an assessment has been done on the account.
Next, use the campaign in a box assets and scripted campaigns to drive demand for Azure VMware Services (AVS) and Windows Server/SQL Server migrations. These resources are crafted to help you effectively market your services and attract new clients with updated content and messaging from our marketing experts; while also helping you position your company value front and center.
Whether you need ready-to-share Digital Marketing Content OnDemand (DMC) or customizable campaigns from the Partner Marketing Center (PMC), we have assets to help you.
Digital Marketing Content OnDemand (DMC) scripted campaigns:
Migrate and Secure Windows Server and SQL Server SMB
Migrate and Secure Windows Server and SQL Server ENT
Migrate VMware Workloads to Azure
Partner Marketing Center (PMC) downloadable campaign content:
Migrate and Secure Windows Server and SQL Server SMB
Migrate and Secure Windows Server and SQL Server ENT
Migrate VMware workloads to Azure
Continue reading here
Microsoft Tech Community – Latest Blogs –Read More
MATLAB code for multi-step differential transform method (MsDTM) for solving system of differential equations
By starting from the standard DTM from this link
https://www.mathworks.com/matlabcentral/answers/2107386-how-to-solve-sir-model-with-using-dtm-differential-transform-method?s_tid=srchtitle
Can anyone help me to adapt the code to MsDTM? Thank youBy starting from the standard DTM from this link
https://www.mathworks.com/matlabcentral/answers/2107386-how-to-solve-sir-model-with-using-dtm-differential-transform-method?s_tid=srchtitle
Can anyone help me to adapt the code to MsDTM? Thank you By starting from the standard DTM from this link
https://www.mathworks.com/matlabcentral/answers/2107386-how-to-solve-sir-model-with-using-dtm-differential-transform-method?s_tid=srchtitle
Can anyone help me to adapt the code to MsDTM? Thank you dtm, differential transform method, differential equations MATLAB Answers — New Questions
Error using CosimWizardPkg.CosimWizardData/populateHdlHierarchy
I uses cosimulationConfiguration to create a HDL cosimulation block.
I get the following errors
Error using CosimWizardPkg.CosimWizardData/populateHdlHierarchy
Socket connection was closed by the other side
Error in CosimWizardPkg.CosimWizardData/autoFillAllModulesParameters
Error in CosimWizardPkg.ModuleSelection/onNext
Error in CosimWizardPkg.CosimWizardDlg/onNext
Error in cosimulationConfiguration/l_Step4
Error in cosimulationConfiguration/runWorkflow
Error in CosimCommandLineSimulink (line 56)
runWorkflow(c);
Scripts are as follows
%% CosimCommandLineSimulink.m
%% Configure Cosimulation Workflow
% Create a cosimulation configuration object.
%%
c = cosimulationConfiguration(‘Xcelium’,’Simulink’,’top’);
%%
% Set up the HDL file.
%%
c.HDLFiles = {…
‘./src/top.v’, ‘Verilog’,…
‘./src/model.v’, ‘Verilog’,…
};
%%
% Compilation Command
%%
c.HDLCompilationCommand ="xmsc -64bit ./src/model.cpp;" + …
"xmvlog -64bit ./src/top.v ./src/model.v;" + …
"g++ -m64 -o model.o -DNCSC -DCADENCE -D_GLIBCXX_USE_CXX11_ABI=1 " + …
"-DLNX86 -I -I /tools/cds/xceliummain_22.09.004_Linux//tools/systemc/include_pch/64bit " + …
"-I ${TOOL_PATH}/tools/systemc/include/ " + …
"-I ${TOOL_PATH}/tools.lnx86/include " + …
"-I ${TOOL_PATH}/tools/tbsc/include " + …
"-I ${TOOL_PATH}/tools/vic/include " + …
"-c -Wall ./src/*.cpp -fPIC;"+ …
"g++ -m64 -shared -Wl,-G "+ …
"-o systemc.so *.o "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoSim_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoroutines_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libsystemc_sh.so;"+ …
"g++ -m64 -shared -Wl,-G "+ …
"-o systemc.so *.o "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoSim_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoroutines_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libsystemc_sh.so";
%%
% Elaboration
%%
c.HDLElaborationOptions = ‘-64bit -access +wc -messages -loadsc ${PATH}/systemc’;
%%
% Set the clock to a period of 20 ns, and set the reset duration to 15 ns.
%%
specifyClock(c,’clk’,Period=20)
specifyReset(c,’reset’,Duration=15)
specifyInput(c,{‘clk_enable’,’data’,’inv’});
specifyOutput(c,{‘out’});
%%
% Display the port table. It reflects the
% settings just made for output, clock, and reset attributes. The other
% design ports will take on default attributes.
%%
portInterface(c);
%% Generate HDL Cosimulation Block
% Run the workflow to generate an HDL Cosimulation block and the
% accompanying files.
%%
runWorkflow(c);
Complete output when running CosimCommandLineSimulink.m
>> CosimCommandLineSimulink
—– Input Data Ports —–
3×1 table
Name
______________
{‘clk_enable’}
{‘data’ }
{‘inv’ }
—– Output Data Ports —–
2×5 table
Name SampleTime DataType Signed FractionLength
_____________________________ __________ ___________ ______ ______________
{‘default_output_definition’} 1 {‘Inherit’} true 0
{‘out’ } 1 {‘Inherit’} true 0
—– Clock Ports —–
2×3 table
Name Edge Period
____________________________ __________ ______
{‘default_clock_definition’} {‘Rising’} 10
{‘clk’ } {‘Rising’} 20
—– Reset Ports —–
2×3 table
Name InitialValue Duration
____________________________ ____________ ________
{‘default_reset_definition’} 1 8
{‘reset’ } 1 15
—– Unused Ports —–
0×1 empty table
——————– Step 1——————
Select the type of cosimulation you want to do. If the HDL simulator executable you want to use is not on the system path in your environment, you must specify its location.
——————– Step 2——————
Add all VHDL, Verilog, and/or script files to be used in cosimulation to the following table. If the file type cannot be automatically detected or the detection result is incorrect, specify the correct file type in the table. If possible, we will determine the compilation order automatically using HDL simulator provided functionality. Then the HDL files can be added in any order.
——————– Step 3——————
HDL Verifier has automatically generated the following HDL compilation commands. You can customize these commands with optional parameters as specified in the HDL simulator documentation but they are sufficient as shown to compile your HDL code for cosimulation. The HDL files will be compiled when you click Next.
Compiling HDL files. Please wait …
### Compiling HDL design
xmsc(64): 22.09-s004: (c) Copyright 1995-2022 Cadence Design Systems, Inc.
xmsc: [TOOL PATH]/tools/cdsgcc/gcc/9.3/bin/g++ -DNCSC -DCADENCE -DLNX86 -D_GLIBCXX_USE_CXX11_ABI=1 -I[TOOL PATH]/systemc/include_pch/64bit -I[TOOL PATH]/tools/systemc/include/tlm2 -I[TOOL PATH]/tools/systemc/include/cci -I[TOOL PATH]/tools/tbsc/include -I[TOOL PATH]/tools/vic/include -c -Wall ./src/model.cpp
xmvlog(64): 22.09-s004: (c) Copyright 1995-2022 Cadence Design Systems, Inc.
g++: warning: [TOOL PATH]/tools/systemc/include_pch/64bit: linker input file unused because linking not done
…done
——————– Step 4——————
Specify the name of the HDL module for cosimulation. The Cosimulation Wizard will launch the HDL simulator, load the specified module, and populate the port list of that HDL module before the next step. Use "Shared Memory" communication method if your firewall policy does not allow TCP/IP socket communication.
Elaborating and Loading HDL simulation image. Please wait …
### Elaborating HDL design
### Elaboration command: xmelab -64bit -access +wc -messages -loadsc [PATH]/systemc top
xmelab(64): 22.09-s004: (c) Copyright 1995-2022 Cadence Design Systems, Inc.
Elaborating the design hierarchy:
Caching library ‘worklib’ ……. Done
The SystemC(r) Code included in this Product is Copyright 1996 – 2016 by all Contributors. All rights reserved.
The SystemC Code included in this Product has been modified by Cadence Design Systems, Inc. and CoWare, Inc. All such modifications are Copyright (c) 2004-2016 Cadence Design Systems, Inc. and Copyright (c) 2004 CoWare, Inc. All Rights Reserved.
SystemC(r) is a registered trademark of Accellera Systems Initiative, Inc. in the United States and other countries and is used with permission.
Building instance overlay tables: ……………….. Done
Building instance specific data structures.
Loading native compiled code: ……………….. Done
Design hierarchy summary:
Instances Unique
Modules: 2 2
Scalar wires: 6 –
Simulation timescale: 1ns
SystemC Design Summary:
Instances
sc_modules: 1
sc_ports: 5
sc_methods: 1
Writing initial simulation snapshot: worklib.top:module
Waiting for HDL Simulator to startup …
120 seconds to time-out …
To stop this process, press Ctrl+C in MATLAB console.
Waiting for HDL Simulator to startup …
119 seconds to time-out …
To stop this process, press Ctrl+C in MATLAB console.
…done
Error using CosimWizardPkg.CosimWizardData/populateHdlHierarchy
Socket connection was closed by the other side
Error in CosimWizardPkg.CosimWizardData/autoFillAllModulesParameters
Error in CosimWizardPkg.ModuleSelection/onNext
Error in CosimWizardPkg.CosimWizardDlg/onNext
Error in cosimulationConfiguration/l_Step4
Error in cosimulationConfiguration/runWorkflow
Error in CosimCommandLineSimulink (line 56)
runWorkflow(c);
Do you have any idea what is reason?
Note: paths of tools and files are hidden in this question.I uses cosimulationConfiguration to create a HDL cosimulation block.
I get the following errors
Error using CosimWizardPkg.CosimWizardData/populateHdlHierarchy
Socket connection was closed by the other side
Error in CosimWizardPkg.CosimWizardData/autoFillAllModulesParameters
Error in CosimWizardPkg.ModuleSelection/onNext
Error in CosimWizardPkg.CosimWizardDlg/onNext
Error in cosimulationConfiguration/l_Step4
Error in cosimulationConfiguration/runWorkflow
Error in CosimCommandLineSimulink (line 56)
runWorkflow(c);
Scripts are as follows
%% CosimCommandLineSimulink.m
%% Configure Cosimulation Workflow
% Create a cosimulation configuration object.
%%
c = cosimulationConfiguration(‘Xcelium’,’Simulink’,’top’);
%%
% Set up the HDL file.
%%
c.HDLFiles = {…
‘./src/top.v’, ‘Verilog’,…
‘./src/model.v’, ‘Verilog’,…
};
%%
% Compilation Command
%%
c.HDLCompilationCommand ="xmsc -64bit ./src/model.cpp;" + …
"xmvlog -64bit ./src/top.v ./src/model.v;" + …
"g++ -m64 -o model.o -DNCSC -DCADENCE -D_GLIBCXX_USE_CXX11_ABI=1 " + …
"-DLNX86 -I -I /tools/cds/xceliummain_22.09.004_Linux//tools/systemc/include_pch/64bit " + …
"-I ${TOOL_PATH}/tools/systemc/include/ " + …
"-I ${TOOL_PATH}/tools.lnx86/include " + …
"-I ${TOOL_PATH}/tools/tbsc/include " + …
"-I ${TOOL_PATH}/tools/vic/include " + …
"-c -Wall ./src/*.cpp -fPIC;"+ …
"g++ -m64 -shared -Wl,-G "+ …
"-o systemc.so *.o "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoSim_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoroutines_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libsystemc_sh.so;"+ …
"g++ -m64 -shared -Wl,-G "+ …
"-o systemc.so *.o "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoSim_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoroutines_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libsystemc_sh.so";
%%
% Elaboration
%%
c.HDLElaborationOptions = ‘-64bit -access +wc -messages -loadsc ${PATH}/systemc’;
%%
% Set the clock to a period of 20 ns, and set the reset duration to 15 ns.
%%
specifyClock(c,’clk’,Period=20)
specifyReset(c,’reset’,Duration=15)
specifyInput(c,{‘clk_enable’,’data’,’inv’});
specifyOutput(c,{‘out’});
%%
% Display the port table. It reflects the
% settings just made for output, clock, and reset attributes. The other
% design ports will take on default attributes.
%%
portInterface(c);
%% Generate HDL Cosimulation Block
% Run the workflow to generate an HDL Cosimulation block and the
% accompanying files.
%%
runWorkflow(c);
Complete output when running CosimCommandLineSimulink.m
>> CosimCommandLineSimulink
—– Input Data Ports —–
3×1 table
Name
______________
{‘clk_enable’}
{‘data’ }
{‘inv’ }
—– Output Data Ports —–
2×5 table
Name SampleTime DataType Signed FractionLength
_____________________________ __________ ___________ ______ ______________
{‘default_output_definition’} 1 {‘Inherit’} true 0
{‘out’ } 1 {‘Inherit’} true 0
—– Clock Ports —–
2×3 table
Name Edge Period
____________________________ __________ ______
{‘default_clock_definition’} {‘Rising’} 10
{‘clk’ } {‘Rising’} 20
—– Reset Ports —–
2×3 table
Name InitialValue Duration
____________________________ ____________ ________
{‘default_reset_definition’} 1 8
{‘reset’ } 1 15
—– Unused Ports —–
0×1 empty table
——————– Step 1——————
Select the type of cosimulation you want to do. If the HDL simulator executable you want to use is not on the system path in your environment, you must specify its location.
——————– Step 2——————
Add all VHDL, Verilog, and/or script files to be used in cosimulation to the following table. If the file type cannot be automatically detected or the detection result is incorrect, specify the correct file type in the table. If possible, we will determine the compilation order automatically using HDL simulator provided functionality. Then the HDL files can be added in any order.
——————– Step 3——————
HDL Verifier has automatically generated the following HDL compilation commands. You can customize these commands with optional parameters as specified in the HDL simulator documentation but they are sufficient as shown to compile your HDL code for cosimulation. The HDL files will be compiled when you click Next.
Compiling HDL files. Please wait …
### Compiling HDL design
xmsc(64): 22.09-s004: (c) Copyright 1995-2022 Cadence Design Systems, Inc.
xmsc: [TOOL PATH]/tools/cdsgcc/gcc/9.3/bin/g++ -DNCSC -DCADENCE -DLNX86 -D_GLIBCXX_USE_CXX11_ABI=1 -I[TOOL PATH]/systemc/include_pch/64bit -I[TOOL PATH]/tools/systemc/include/tlm2 -I[TOOL PATH]/tools/systemc/include/cci -I[TOOL PATH]/tools/tbsc/include -I[TOOL PATH]/tools/vic/include -c -Wall ./src/model.cpp
xmvlog(64): 22.09-s004: (c) Copyright 1995-2022 Cadence Design Systems, Inc.
g++: warning: [TOOL PATH]/tools/systemc/include_pch/64bit: linker input file unused because linking not done
…done
——————– Step 4——————
Specify the name of the HDL module for cosimulation. The Cosimulation Wizard will launch the HDL simulator, load the specified module, and populate the port list of that HDL module before the next step. Use "Shared Memory" communication method if your firewall policy does not allow TCP/IP socket communication.
Elaborating and Loading HDL simulation image. Please wait …
### Elaborating HDL design
### Elaboration command: xmelab -64bit -access +wc -messages -loadsc [PATH]/systemc top
xmelab(64): 22.09-s004: (c) Copyright 1995-2022 Cadence Design Systems, Inc.
Elaborating the design hierarchy:
Caching library ‘worklib’ ……. Done
The SystemC(r) Code included in this Product is Copyright 1996 – 2016 by all Contributors. All rights reserved.
The SystemC Code included in this Product has been modified by Cadence Design Systems, Inc. and CoWare, Inc. All such modifications are Copyright (c) 2004-2016 Cadence Design Systems, Inc. and Copyright (c) 2004 CoWare, Inc. All Rights Reserved.
SystemC(r) is a registered trademark of Accellera Systems Initiative, Inc. in the United States and other countries and is used with permission.
Building instance overlay tables: ……………….. Done
Building instance specific data structures.
Loading native compiled code: ……………….. Done
Design hierarchy summary:
Instances Unique
Modules: 2 2
Scalar wires: 6 –
Simulation timescale: 1ns
SystemC Design Summary:
Instances
sc_modules: 1
sc_ports: 5
sc_methods: 1
Writing initial simulation snapshot: worklib.top:module
Waiting for HDL Simulator to startup …
120 seconds to time-out …
To stop this process, press Ctrl+C in MATLAB console.
Waiting for HDL Simulator to startup …
119 seconds to time-out …
To stop this process, press Ctrl+C in MATLAB console.
…done
Error using CosimWizardPkg.CosimWizardData/populateHdlHierarchy
Socket connection was closed by the other side
Error in CosimWizardPkg.CosimWizardData/autoFillAllModulesParameters
Error in CosimWizardPkg.ModuleSelection/onNext
Error in CosimWizardPkg.CosimWizardDlg/onNext
Error in cosimulationConfiguration/l_Step4
Error in cosimulationConfiguration/runWorkflow
Error in CosimCommandLineSimulink (line 56)
runWorkflow(c);
Do you have any idea what is reason?
Note: paths of tools and files are hidden in this question. I uses cosimulationConfiguration to create a HDL cosimulation block.
I get the following errors
Error using CosimWizardPkg.CosimWizardData/populateHdlHierarchy
Socket connection was closed by the other side
Error in CosimWizardPkg.CosimWizardData/autoFillAllModulesParameters
Error in CosimWizardPkg.ModuleSelection/onNext
Error in CosimWizardPkg.CosimWizardDlg/onNext
Error in cosimulationConfiguration/l_Step4
Error in cosimulationConfiguration/runWorkflow
Error in CosimCommandLineSimulink (line 56)
runWorkflow(c);
Scripts are as follows
%% CosimCommandLineSimulink.m
%% Configure Cosimulation Workflow
% Create a cosimulation configuration object.
%%
c = cosimulationConfiguration(‘Xcelium’,’Simulink’,’top’);
%%
% Set up the HDL file.
%%
c.HDLFiles = {…
‘./src/top.v’, ‘Verilog’,…
‘./src/model.v’, ‘Verilog’,…
};
%%
% Compilation Command
%%
c.HDLCompilationCommand ="xmsc -64bit ./src/model.cpp;" + …
"xmvlog -64bit ./src/top.v ./src/model.v;" + …
"g++ -m64 -o model.o -DNCSC -DCADENCE -D_GLIBCXX_USE_CXX11_ABI=1 " + …
"-DLNX86 -I -I /tools/cds/xceliummain_22.09.004_Linux//tools/systemc/include_pch/64bit " + …
"-I ${TOOL_PATH}/tools/systemc/include/ " + …
"-I ${TOOL_PATH}/tools.lnx86/include " + …
"-I ${TOOL_PATH}/tools/tbsc/include " + …
"-I ${TOOL_PATH}/tools/vic/include " + …
"-c -Wall ./src/*.cpp -fPIC;"+ …
"g++ -m64 -shared -Wl,-G "+ …
"-o systemc.so *.o "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoSim_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoroutines_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libsystemc_sh.so;"+ …
"g++ -m64 -shared -Wl,-G "+ …
"-o systemc.so *.o "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoSim_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libncscCoroutines_sh.so "+ …
"${TOOL_PATH}/tools/systemc/lib/64bit/libsystemc_sh.so";
%%
% Elaboration
%%
c.HDLElaborationOptions = ‘-64bit -access +wc -messages -loadsc ${PATH}/systemc’;
%%
% Set the clock to a period of 20 ns, and set the reset duration to 15 ns.
%%
specifyClock(c,’clk’,Period=20)
specifyReset(c,’reset’,Duration=15)
specifyInput(c,{‘clk_enable’,’data’,’inv’});
specifyOutput(c,{‘out’});
%%
% Display the port table. It reflects the
% settings just made for output, clock, and reset attributes. The other
% design ports will take on default attributes.
%%
portInterface(c);
%% Generate HDL Cosimulation Block
% Run the workflow to generate an HDL Cosimulation block and the
% accompanying files.
%%
runWorkflow(c);
Complete output when running CosimCommandLineSimulink.m
>> CosimCommandLineSimulink
—– Input Data Ports —–
3×1 table
Name
______________
{‘clk_enable’}
{‘data’ }
{‘inv’ }
—– Output Data Ports —–
2×5 table
Name SampleTime DataType Signed FractionLength
_____________________________ __________ ___________ ______ ______________
{‘default_output_definition’} 1 {‘Inherit’} true 0
{‘out’ } 1 {‘Inherit’} true 0
—– Clock Ports —–
2×3 table
Name Edge Period
____________________________ __________ ______
{‘default_clock_definition’} {‘Rising’} 10
{‘clk’ } {‘Rising’} 20
—– Reset Ports —–
2×3 table
Name InitialValue Duration
____________________________ ____________ ________
{‘default_reset_definition’} 1 8
{‘reset’ } 1 15
—– Unused Ports —–
0×1 empty table
——————– Step 1——————
Select the type of cosimulation you want to do. If the HDL simulator executable you want to use is not on the system path in your environment, you must specify its location.
——————– Step 2——————
Add all VHDL, Verilog, and/or script files to be used in cosimulation to the following table. If the file type cannot be automatically detected or the detection result is incorrect, specify the correct file type in the table. If possible, we will determine the compilation order automatically using HDL simulator provided functionality. Then the HDL files can be added in any order.
——————– Step 3——————
HDL Verifier has automatically generated the following HDL compilation commands. You can customize these commands with optional parameters as specified in the HDL simulator documentation but they are sufficient as shown to compile your HDL code for cosimulation. The HDL files will be compiled when you click Next.
Compiling HDL files. Please wait …
### Compiling HDL design
xmsc(64): 22.09-s004: (c) Copyright 1995-2022 Cadence Design Systems, Inc.
xmsc: [TOOL PATH]/tools/cdsgcc/gcc/9.3/bin/g++ -DNCSC -DCADENCE -DLNX86 -D_GLIBCXX_USE_CXX11_ABI=1 -I[TOOL PATH]/systemc/include_pch/64bit -I[TOOL PATH]/tools/systemc/include/tlm2 -I[TOOL PATH]/tools/systemc/include/cci -I[TOOL PATH]/tools/tbsc/include -I[TOOL PATH]/tools/vic/include -c -Wall ./src/model.cpp
xmvlog(64): 22.09-s004: (c) Copyright 1995-2022 Cadence Design Systems, Inc.
g++: warning: [TOOL PATH]/tools/systemc/include_pch/64bit: linker input file unused because linking not done
…done
——————– Step 4——————
Specify the name of the HDL module for cosimulation. The Cosimulation Wizard will launch the HDL simulator, load the specified module, and populate the port list of that HDL module before the next step. Use "Shared Memory" communication method if your firewall policy does not allow TCP/IP socket communication.
Elaborating and Loading HDL simulation image. Please wait …
### Elaborating HDL design
### Elaboration command: xmelab -64bit -access +wc -messages -loadsc [PATH]/systemc top
xmelab(64): 22.09-s004: (c) Copyright 1995-2022 Cadence Design Systems, Inc.
Elaborating the design hierarchy:
Caching library ‘worklib’ ……. Done
The SystemC(r) Code included in this Product is Copyright 1996 – 2016 by all Contributors. All rights reserved.
The SystemC Code included in this Product has been modified by Cadence Design Systems, Inc. and CoWare, Inc. All such modifications are Copyright (c) 2004-2016 Cadence Design Systems, Inc. and Copyright (c) 2004 CoWare, Inc. All Rights Reserved.
SystemC(r) is a registered trademark of Accellera Systems Initiative, Inc. in the United States and other countries and is used with permission.
Building instance overlay tables: ……………….. Done
Building instance specific data structures.
Loading native compiled code: ……………….. Done
Design hierarchy summary:
Instances Unique
Modules: 2 2
Scalar wires: 6 –
Simulation timescale: 1ns
SystemC Design Summary:
Instances
sc_modules: 1
sc_ports: 5
sc_methods: 1
Writing initial simulation snapshot: worklib.top:module
Waiting for HDL Simulator to startup …
120 seconds to time-out …
To stop this process, press Ctrl+C in MATLAB console.
Waiting for HDL Simulator to startup …
119 seconds to time-out …
To stop this process, press Ctrl+C in MATLAB console.
…done
Error using CosimWizardPkg.CosimWizardData/populateHdlHierarchy
Socket connection was closed by the other side
Error in CosimWizardPkg.CosimWizardData/autoFillAllModulesParameters
Error in CosimWizardPkg.ModuleSelection/onNext
Error in CosimWizardPkg.CosimWizardDlg/onNext
Error in cosimulationConfiguration/l_Step4
Error in cosimulationConfiguration/runWorkflow
Error in CosimCommandLineSimulink (line 56)
runWorkflow(c);
Do you have any idea what is reason?
Note: paths of tools and files are hidden in this question. hdlverifier, cosimulationconfiguration, simulink, cadence, xcelium MATLAB Answers — New Questions
MATLAB standalone app installation without administrator
Hi,
I am trying to make some MATLAB apps for people without MATLAB licenses at work. I compiled them as standalone apps with the runtime libraries included in the package so they don’t have to be downloaded and installed separately. However, the app requires admin privileges to install. This isn’t very pleasant since we have to request IT for each installation.
Is there a way to eliminate the need for administrator privileges? I tried moving the installation directory to the user directory instead of Program Files but that didn’t help as well.
Thanks,
AbinavHi,
I am trying to make some MATLAB apps for people without MATLAB licenses at work. I compiled them as standalone apps with the runtime libraries included in the package so they don’t have to be downloaded and installed separately. However, the app requires admin privileges to install. This isn’t very pleasant since we have to request IT for each installation.
Is there a way to eliminate the need for administrator privileges? I tried moving the installation directory to the user directory instead of Program Files but that didn’t help as well.
Thanks,
Abinav Hi,
I am trying to make some MATLAB apps for people without MATLAB licenses at work. I compiled them as standalone apps with the runtime libraries included in the package so they don’t have to be downloaded and installed separately. However, the app requires admin privileges to install. This isn’t very pleasant since we have to request IT for each installation.
Is there a way to eliminate the need for administrator privileges? I tried moving the installation directory to the user directory instead of Program Files but that didn’t help as well.
Thanks,
Abinav matlab app, matlab compiler, administrator MATLAB Answers — New Questions
Random Pool Generator excel office 365
Im trying to create a quiz generator. I have an excel file with 49 worksheets, and each worksheet covers one topic area and has a group of 20 or so related questions. Some groups have more questions, some less. I could make the worksheets into one big sheet if required, and just create a column to label each related topic area.
i want to create 30 randomly generated questions from that pool, with no more than two from any one topic area. Ive got a few ideas but nothing that seems relatively simple.
looking for formula based solution – not macro based.
TIA!
Im trying to create a quiz generator. I have an excel file with 49 worksheets, and each worksheet covers one topic area and has a group of 20 or so related questions. Some groups have more questions, some less. I could make the worksheets into one big sheet if required, and just create a column to label each related topic area.i want to create 30 randomly generated questions from that pool, with no more than two from any one topic area. Ive got a few ideas but nothing that seems relatively simple. looking for formula based solution – not macro based. TIA! Read More
Planner Premium unavailable in Power Automate
I was very happy to be able to start with Planner Premium. But … what did I experience? Power Automate doesn’t see the Planner Premium so I am unable to import activities from Monday.Com planning. There is also no import facility. How does Microsoft support customers to convert old plans to Planner Premium?
I was very happy to be able to start with Planner Premium. But … what did I experience? Power Automate doesn’t see the Planner Premium so I am unable to import activities from Monday.Com planning. There is also no import facility. How does Microsoft support customers to convert old plans to Planner Premium? Read More