Month: June 2024
Connecting AIS (Logic Apps) to On-Prem resources
Hi,
We’re currently using an on-prem BizTalk ESB to leverage our integrations and I’m tasked with scoping the transition over to AIS.
I’ve figured out the appropriate tooling required and what services we’re likely to leverage within AIS, but there will be a strong dependency on on-prem connections (most of our services are maintained within internal SQL DB’s and Network shares).
I’ve done some further reading on the Azure Data Gateway, and can see that we connect our local SQL DB’s to Logic Apps through it, but is it possible for the data gateway to poll/listen out for SQL data changes?
Thanks
Chris
Hi, We’re currently using an on-prem BizTalk ESB to leverage our integrations and I’m tasked with scoping the transition over to AIS.I’ve figured out the appropriate tooling required and what services we’re likely to leverage within AIS, but there will be a strong dependency on on-prem connections (most of our services are maintained within internal SQL DB’s and Network shares). I’ve done some further reading on the Azure Data Gateway, and can see that we connect our local SQL DB’s to Logic Apps through it, but is it possible for the data gateway to poll/listen out for SQL data changes? ThanksChris Read More
Exploring Immutable Vortex: Advanced Technology
In the fast-paced realm of cryptocurrency trading, Immutable Vortex emerges as a beacon of technological progress, embodying the transformative potential of automated trading systems. In this comprehensive review, we delve deep into Immutable Vortex, exploring its features and operational intricacies to unveil its significance in the ever-evolving landscape of digital asset trading.
Understanding Immutable Vortex
Immutable Vortex stands as an automated trading system engineered to streamline and optimize cryptocurrency trading for users. Functioning as a digital assistant, this trading bot harnesses cutting-edge technologies like Artificial Intelligence (AI) and blockchain to analyze market data, identify trends, and execute trades. Its primary objective is to furnish users, spanning from novices to seasoned traders, with a tool capable of navigating the complexities of cryptocurrency markets efficiently.
In the fast-paced realm of cryptocurrency trading, Immutable Vortex emerges as a beacon of technological progress, embodying the transformative potential of automated trading systems. In this comprehensive review, we delve deep into Immutable Vortex, exploring its features and operational intricacies to unveil its significance in the ever-evolving landscape of digital asset trading. Understanding Immutable VortexImmutable Vortex stands as an automated trading system engineered to streamline and optimize cryptocurrency trading for users. Functioning as a digital assistant, this trading bot harnesses cutting-edge technologies like Artificial Intelligence (AI) and blockchain to analyze market data, identify trends, and execute trades. Its primary objective is to furnish users, spanning from novices to seasoned traders, with a tool capable of navigating the complexities of cryptocurrency markets efficiently. Start Now Read More
Unstable updates
Since I’ve been testing new features and updates, With the recent updates. I’ve noticed that my system has become unstable and slow performance. I’m finding it difficult to work on my computer because of these issues. I’ve tried to troubleshoot the problem, but nothing seems to be working.
I’m worried that the updates are causing more harm than good and am looking for suggestions on how to resolve the issue. Has anyone else experienced similar problems with the Windows Insider Program?
Since I’ve been testing new features and updates, With the recent updates. I’ve noticed that my system has become unstable and slow performance. I’m finding it difficult to work on my computer because of these issues. I’ve tried to troubleshoot the problem, but nothing seems to be working.I’m worried that the updates are causing more harm than good and am looking for suggestions on how to resolve the issue. Has anyone else experienced similar problems with the Windows Insider Program? Read More
Is it worth joining Windows Insider Program?
I’m considering joining the Windows Insider Program, but I’m not sure if it’s worth the potential hassle. On one hand, I’m excited about the prospect of trying out new features and getting early access to updates. On the other hand, I’ve heard that the program can be unstable and cause more problems than it solves.
I’m wondering if anyone has any experiences with the Windows Insider Program that can help me make a decision. Are there any specific pros and cons that I should know about?
I’m considering joining the Windows Insider Program, but I’m not sure if it’s worth the potential hassle. On one hand, I’m excited about the prospect of trying out new features and getting early access to updates. On the other hand, I’ve heard that the program can be unstable and cause more problems than it solves. I’m wondering if anyone has any experiences with the Windows Insider Program that can help me make a decision. Are there any specific pros and cons that I should know about? Read More
How to Install Insider builds on my unsupported laptop?
I’m trying to install the Windows Insider builds on my laptop, but it’s not officially supported by Microsoft. I’ve heard that the program is only available for certain devices, and I’m worried that my laptop might not be compatible. Despite this, I’m interested in trying out the new features and updates, but I’m not sure if it’s possible to install the Insider builds on my machine.
I’ve tried searching for answers online, but I haven’t found any clear guidance on how to do this. I’ve also checked the system requirements for the Windows Insider Program, but they don’t seem to mention anything about supported hardware. How can I install Insider builds on my unsupported laptop?
I’m trying to install the Windows Insider builds on my laptop, but it’s not officially supported by Microsoft. I’ve heard that the program is only available for certain devices, and I’m worried that my laptop might not be compatible. Despite this, I’m interested in trying out the new features and updates, but I’m not sure if it’s possible to install the Insider builds on my machine. I’ve tried searching for answers online, but I haven’t found any clear guidance on how to do this. I’ve also checked the system requirements for the Windows Insider Program, but they don’t seem to mention anything about supported hardware. How can I install Insider builds on my unsupported laptop? Read More
Unable to download Support Package
Hello, Does anyone of you could share the offline files of the support packages for Texas Instruments C2000 and/or Arduino DUE under Matlab r2015b (win32). I ve tried all techniques to solve this issue but end up with no solutions. It seems that Mathworks’ servers reject every download from this release (cf. Picture)!
<</matlabcentral/answers/uploaded_files/1708621/w2.jpg>>Hello, Does anyone of you could share the offline files of the support packages for Texas Instruments C2000 and/or Arduino DUE under Matlab r2015b (win32). I ve tried all techniques to solve this issue but end up with no solutions. It seems that Mathworks’ servers reject every download from this release (cf. Picture)!
<</matlabcentral/answers/uploaded_files/1708621/w2.jpg>> Hello, Does anyone of you could share the offline files of the support packages for Texas Instruments C2000 and/or Arduino DUE under Matlab r2015b (win32). I ve tried all techniques to solve this issue but end up with no solutions. It seems that Mathworks’ servers reject every download from this release (cf. Picture)!
<</matlabcentral/answers/uploaded_files/1708621/w2.jpg>> support-package, tic2000, arduino MATLAB Answers — New Questions
Flexible Body Model Builder – What causes unexpected error?
Hello everyone,
I’m working with a relatively complex goemetry in the FlexibleBodyModelBuilder tool. It’s a thin-walled structure with the thinnest walls being 1mm thick. I set the min element size to 0,5mm. I’ve tried both ROM generators and run into unexpected errors
Any idea what could be wrong? Is my geometry just too complex? Any insights are much apprecieated!
Best regards,
AtliHello everyone,
I’m working with a relatively complex goemetry in the FlexibleBodyModelBuilder tool. It’s a thin-walled structure with the thinnest walls being 1mm thick. I set the min element size to 0,5mm. I’ve tried both ROM generators and run into unexpected errors
Any idea what could be wrong? Is my geometry just too complex? Any insights are much apprecieated!
Best regards,
Atli Hello everyone,
I’m working with a relatively complex goemetry in the FlexibleBodyModelBuilder tool. It’s a thin-walled structure with the thinnest walls being 1mm thick. I set the min element size to 0,5mm. I’ve tried both ROM generators and run into unexpected errors
Any idea what could be wrong? Is my geometry just too complex? Any insights are much apprecieated!
Best regards,
Atli flexiblebodymodelbuilder, unexpected error, rom generator, complex geometry MATLAB Answers — New Questions
xline issue with adding a number to the line through the labels option
Is there a reason why the xline (or yline) functions won’t accept a number converted to a string
c=b(3); %Breakpoint
cs=num2str(c)
class(cs)
xline(ax3,c,cs);
cs =
‘125.7048’
ans =
‘char’
Error using xline
Invalid parameter/value pair arguments.Is there a reason why the xline (or yline) functions won’t accept a number converted to a string
c=b(3); %Breakpoint
cs=num2str(c)
class(cs)
xline(ax3,c,cs);
cs =
‘125.7048’
ans =
‘char’
Error using xline
Invalid parameter/value pair arguments. Is there a reason why the xline (or yline) functions won’t accept a number converted to a string
c=b(3); %Breakpoint
cs=num2str(c)
class(cs)
xline(ax3,c,cs);
cs =
‘125.7048’
ans =
‘char’
Error using xline
Invalid parameter/value pair arguments. xline, yline MATLAB Answers — New Questions
User Account Control prompts for Windows 10 are too frequent
I’ve been experiencing a frustrating issue with User Account Control (UAC) prompts on my Windows 10 device. It seems like every time I try to perform a simple task, such as installing a new program or updating software, I’m prompted to elevate my privileges. This is happening excessively, and it’s becoming a major annoyance.
So far, I haven’t found anything that seems to work. I’ve also noticed that some apps and programs are able to bypass the UAC prompts altogether, which makes me wonder if this is a problem with the app itself or if there’s something wrong with my system configuration.
I’d love to hear from anyone who has experience with this issue and can offer some advice on how to minimize or eliminate these pesky UAC prompts.
I’ve been experiencing a frustrating issue with User Account Control (UAC) prompts on my Windows 10 device. It seems like every time I try to perform a simple task, such as installing a new program or updating software, I’m prompted to elevate my privileges. This is happening excessively, and it’s becoming a major annoyance. So far, I haven’t found anything that seems to work. I’ve also noticed that some apps and programs are able to bypass the UAC prompts altogether, which makes me wonder if this is a problem with the app itself or if there’s something wrong with my system configuration. I’d love to hear from anyone who has experience with this issue and can offer some advice on how to minimize or eliminate these pesky UAC prompts. Read More
Hey community, I have used custom authentication for viewing SSRS reports by using the UAA login….
But after logging into the UAA, I am not able to redirect the user back to the SSRS reports URL…..What changes needed to be done so that the user will be able to see the reports after authenticating him the UAA login
But after logging into the UAA, I am not able to redirect the user back to the SSRS reports URL…..What changes needed to be done so that the user will be able to see the reports after authenticating him the UAA login Read More
can we take two different plan Microsoft defender for endpoint
Can we take two different plans(Microsoft Defender for endpoints) for workstation and servers (like for workstation will take our existing plan 1 and servers will manage by plan 2) in a same enviorment.
If this is possible then what are the challenges will face before and after migration.
Can we take two different plans(Microsoft Defender for endpoints) for workstation and servers (like for workstation will take our existing plan 1 and servers will manage by plan 2) in a same enviorment. If this is possible then what are the challenges will face before and after migration. Read More
Teams Custom Emojis Arrive in June 2024
The latest technology initiative from Microsoft comes in the form of Teams custom emojis, designed to bring light and happiness to Microsoft 365 tenants. Of course, the light and happiness will only happen if tenants don’t disable the settings in Teams messaging poilicies that allow users to upload custom emojis. A tenant can support up to 5,000 Teams custom emojis. That’s a lot of room for people to get inventive.
https://office365itpros.com/2024/06/04/teams-custom-emojis/
The latest technology initiative from Microsoft comes in the form of Teams custom emojis, designed to bring light and happiness to Microsoft 365 tenants. Of course, the light and happiness will only happen if tenants don’t disable the settings in Teams messaging poilicies that allow users to upload custom emojis. A tenant can support up to 5,000 Teams custom emojis. That’s a lot of room for people to get inventive.
https://office365itpros.com/2024/06/04/teams-custom-emojis/ Read More
My computer has crashed multiple times
My computer (Windows Insider program) has crashed multiple times, and I’ve lost count of how many times I’ve had to restart it. The crashes seem to occur randomly, and I’ve noticed that they often happen when I’m in the middle of using certain applications or browsing the web. Sometimes, the device will freeze and become unresponsive, and other times, it will simply shut down without warning.
I’m hoping someone can help me identify the cause of the issue and provide a solution.
My computer (Windows Insider program) has crashed multiple times, and I’ve lost count of how many times I’ve had to restart it. The crashes seem to occur randomly, and I’ve noticed that they often happen when I’m in the middle of using certain applications or browsing the web. Sometimes, the device will freeze and become unresponsive, and other times, it will simply shut down without warning.I’m hoping someone can help me identify the cause of the issue and provide a solution. Read More
Architecture of Azure Database Migration Service
Azure Database Migration Service (DMS) is a fully managed service designed to enable seamless migrations from multiple database sources to Azure data platforms with minimal downtime. It powers the “Azure SQL Migration” extension for Azure Data Studio, can be used via Azure portal, PowerShell and Azure CLI.
This article explains architecture diagram of Azure Database Migration Service and how the DMS perform migration for different scenarios.
How does a normal migration work?
There are two ways to perform migration for a database from source to Azure SQL Targets as mentioned below:
Physical migration: In Physical migration, Backups from the source databases are used to perform restore on the Azure SQL Target databases. DMS uses Physical migration for migrating to Target Azure SQL VM and Azure SQL MI.
Logical migration: In logical migration, data rows are read from the source database tables and then inserted into the Target Azure SQL’s database tables. DMS uses Logical migration for migrating to Azure SQL DB.
Note:
In case of logical migration, example for Target Azure SQL DB, Schema migration is a prerequisite before proceeding with data migration.
How does DMS architecture work?
Overview
Azure Database Migration Service (DMS) is an Azure service that orchestrates migration pipelines to do data movement activities from an on-premises environment to Azure. When a customer creates a Database Migration Service instance (in customer’s subscription), it associates itself with the Azure Data Factory pipeline (in Microsoft’s subscription).
Using this DMS instance customers can start, monitor, and complete / cancel the migration. While DMS functions as an orchestrator, it uses the Azure Data Factory’s Self-hosted Integration Runtime (Migration agent) in case backup files are placed on local SMB file share to copy them to Azure blob container or to perform logical migration to Azure SQL DB (bulk reading data from source and writing on Target). Customer can install the SHIR on a local machine (near to source), then register it using DMS provided authentication keys and associate SHIR with DMS.
Once backups are copied to or let’s say are already present on Azure blob storage container, DMS communicate with Target (Azure SQL VM or Azure SQL MI) resource provider’s restore service to restore these backups from Azure blob storage to respective Target.
Architecture components:
The following list describes the various components of DMS architecture:
Source SQL Server: An on-premises instance of SQL Server that is in a private cloud or an instance of SQL Server on a virtual machine in a public cloud. SQL Server 2008 and later versions on Windows or Linux are supported.
Target Azure SQL: Supported Azure SQL targets are Azure SQL Managed Instance, SQL Server on Azure Virtual Machines (registered with the SQL infrastructure as a service extension in full management mode), and Azure SQL Database.
SMB (backup) file share: A Server Message Block (SMB) network file share where backup files are stored for the databases to be migrated. Azure storage blob containers and Azure storage file share also are supported.
Client Tools: Azure DMS can be used by different client tools like “Azure SQL Migration” extension for Azure Data Studio, Azure portal, PowerShell and Azure CLI.
Azure Storage Account: The blob storage account in customer’s subscription is used to write the backup files from the source and to read from this blob storage container for restoring it on Target.
Azure Data factory: Database Migration Service is associated with the Azure Data Factory’s pipeline. ADF pipeline acts as a placeholder of activities trigger by the DMS’s migration workflow and provides the capability to register and monitor the self-hosted integration runtime.
Self-hosted integration runtime (SHIR): Install a Self-hosted integration runtime on a computer that can connect to the source SQL Server instance and the location of the backup file along with connectivity to Azure blob storage / resources. Database Migration Service provides the authentication keys and registers the self-hosted integration runtime. SHIR act as a compute of the DMS migration’s data movement and can be scaled upto 4 nodes maximum.
Note:
If customers have backup files on local SMB file share or want to perform logical migration to Azure SQL DB, then only Self-hosted integration runtime is needed.
Target resource providers and Restore Service: Target resource provider is a collection of REST operations that enables functionality for an Azure service like restore service on the Target Azure SQL VM or MI. This restore service is responsible for scanning the backups in the Azure blob container, validate, creating a restoration plan, and then performing the restore of these backups on the Target. In case of Azure SQL VM, it is part of the SQL Server IaaS Agent extension and for Azure SQL MI, it is the Log replay service (LRS).
Architecture of Azure Database Migration Service
The following diagram illustrates the DMS architecture workflow:
The number labels against the workflow defines the migration sequence w.r.t a given scenario (as stated in the key on right side bottom).
And below is the detailed description of architecture workflows based upon the migration scenarios:
A. Migration to Azure SQL VM or SQL MI from Azure blob storage:
1. Customer can use different client tools like – “Azure SQL Migration” extension for Azure Data Studio, Azure portal, PowerShell and Azure CLI to create and migrate using Azure Database migration Service. They can also perform Pre-migration activities like Assessment and SKU recommendations using Azure SQL Migration extension, PowerShell and Azure CLI.
2. Once a customer creates the DMS instance in their subscription, they can use it to perform Azure DB migrations. DMS also creates an ADF instance in the background which runs in Microsoft’s subscription.
3a. Since in this scenario, the customer has already placed the database backups (Full, differential and Tlog) in the Azure blob storage, DMS communication these details to the Target Resource provider’s restore service.
4a. Restore service scans the Azure blob storage container, validate, and creates a restore plan based upon the available backups files.
Note:
It is recommended not to delete any backup from blob container until migration completes as it impacts the restore plan.
It is required to keep the single database backup in a folder and the folder should be in the root directory of the blob container. Alternatively, if the backups are stored in the root directory, they should also correspond to one database only.
5a. Once it creates the restore plan, the Target’s restore service only takes the required backup files and skips the backup files which are not relevant. Example if there are two full backups of same database, restore service skip the older full backup.
6a. After that, backups are restored to the Target with NORECOVERY option. In case of online migration, once customer initiates the cutover, restore service looks for any remaining backup, restore those last backup with RECOVERY and bring the Target DB online. In case of offline migration, as soon as it finds the “last restore file” mentioned by customer (during configuration of DMS migration), it performs restore with RECOVERY and bring the Target DB online.
B. Migration to Azure SQL VM or SQL MI from local SMB backup file share:
1. Customer can use different client tools like – “Azure SQL Migration” extension for Azure Data Studio, Azure portal, PowerShell and Azure CLI to create and migrate using Azure Database migration Service. They can also perform Pre-migration activities like Assessment and SKU recommendations using Azure SQL Migration extension, PowerShell and Azure CLI.
2. Once a customer creates the DMS instance in their subscription, they can use it to perform migrations. DMS also creates an ADF instance in the background which runs in Microsoft’s subscription.
3b. To copy the backup files from local SMB backup file share to Azure blob storage container, DMS inform the ADF factory pipeline and request for a copy activity.
4b. This copy activity request is carried out by SHIR, which acts as a Migration agent, running on a nearby computer w.r.t to the source. To do so, SHIR node should be able to communicate with source and Azure resources.
Note:
The connectivity required for SHIR to function is mentioned here.
For SHIR related best practices, refer here.
5b. SHIR then read the meta data of backup files from the local SMB backup file share, ensuring the backup files should belong to the mentioned database. After copying the backup files, SHIR keeps on scanning the file share for new backup files after every 1 min interval.
6b. These backup files are then transferred to an Azure blob storage container.
7b. Restore service scans the Azure blob storage container, validate, and creates a retore plan based upon the available backup files.
Note:
It is recommended not to delete any backup from blob container until migration completes as it impacts the restore plan.
It is required to keep the single database backup in a folder and the folder should be in the root directory of the blob container. Alternatively, if the backups are stored in the root directory, they should also correspond to one database only.
8b. DMS informs the Target resource provider’s restore service after copying finishes. As per the restore plan, Target’s restore service only restores the required backup files and skips the backup files which are not relevant. Example if there are two full backups of same database, restore service skip the older full backup.
9b. After that, backups restored to the Target with NORECOVERY option. In case of online migration, once customer initiates the cutover, restore service looks for any remaining backup, then restore those last backup with RECOVERY and bring the Target DB online. In case of offline migration, as soon as it finds the “last restore file” mentioned by customer (during configuration of DMS migration), it performs restore with RECOVERY and bring the Target DB online.
C. Migration to Azure SQL DB:
1. Customer can use different client tools like – “Azure SQL Migration” extension for Azure Data Studio, Azure portal, PowerShell and Azure CLI to create and migrate using Azure Database migration Service. They can also perform Pre-migration activities like Assessment and SKU recommendations using Azure SQL Migration extension, PowerShell and Azure CLI.
2. Once a customer creates the DMS instance in their subscription, they can use it to perform migrations. DMS also creates an ADF instance in the background which runs in Microsoft’s subscription.
3c. Since it is a logical migration, DMS inform the ADF pipeline to initiate migrate schema and/or copy data rows activity from the selected tables based upon the configuration provided by the customer.
4c. This activity request is executed by the SHIR, acting as a Migration agent and running on a local computer near to source. To do so, SHIR node should be able to communicate with source and Azure resources.
Note:
The connectivity required for SHIR to function is mentioned here.
For SHIR related best practices, refer here.
5c. SHIR reads the schema / data rows from the selected tables. It performs SQL bulk copy to read the data.
Note:
To improve the Azure SQL DB migration performance, refer here.
6c. It is also responsible to write this data on the Target Azure SQL DB using bulk insert. On Target Azure SQL DB, first schema migration is performed (if configured by customer) and then the data row movement starts. Once all the data rows are inserted on the Target, DMS perform post copying activities like creation of indexes etc. before finishing the migration.
Note:
In case of Target Azure SQL DB, Schema migration is a prerequisite before proceeding with data migration.
In case of any error while migrating schema, if error does not belong to the selected table, then schema migration continues later followed by data row migration.
Supported migration mode
Below are the supported migration modes – Offline and Online migration based upon the Azure SQL Targets.
Azure SQL Targets
Offline migration
Online migration
Azure SQL Database
Yes
No
Azure SQL Managed Instance
Yes
Yes
SQL Server on Azure VM
Yes
Yes
Supported SQL server sources
Azure Database Migration service supports below listed SQL server sources and with version of SQL server 2008 or onwards.
SQL Sources
Supported
On-prem SQL Server instance
Yes
SQL Server on Private cloud
Yes
SQL Server on VM in Public cloud
Yes
AWS RDS SQL Server
Yes
Resources
For more information about the extension and Azure Database Migration Service, see the following resources.
Azure Database Migration Service documentation
Migrate databases using the Azure SQL Migration extension
One-click SQL Migration PoC environment
Ports and Firewall considerations for SHIR
Microsoft Tech Community – Latest Blogs –Read More
Baseband IQ to RF Signal Generation
Body:
I’m working on the IQmod example in MATLAB and attempting to generate a 4FSK signal for transmission at 150 MHz. However, I’m unclear about how to control the center frequency of the transmitted signal.
Current Approach:
I’ve tried using the center frequency option in the inport block, but it doesn’t seem to affect the transmission frequency.
The iqmodulator block offers a local Oscillator option, but its purpose in setting the center frequency isn’t entirely clear.
My Question:
How can I properly set the center frequency to 150 MHz for transmitting the 4FSK signal using the IQmod example? Should I be modulating the baseband signal with a carrier at 150 MHz before feeding it to iqmodulator? Or is there another approach within the existing structure?
Additional Information:
I’m using a sampling rate of 1 MHz for the IQ data.Body:
I’m working on the IQmod example in MATLAB and attempting to generate a 4FSK signal for transmission at 150 MHz. However, I’m unclear about how to control the center frequency of the transmitted signal.
Current Approach:
I’ve tried using the center frequency option in the inport block, but it doesn’t seem to affect the transmission frequency.
The iqmodulator block offers a local Oscillator option, but its purpose in setting the center frequency isn’t entirely clear.
My Question:
How can I properly set the center frequency to 150 MHz for transmitting the 4FSK signal using the IQmod example? Should I be modulating the baseband signal with a carrier at 150 MHz before feeding it to iqmodulator? Or is there another approach within the existing structure?
Additional Information:
I’m using a sampling rate of 1 MHz for the IQ data. Body:
I’m working on the IQmod example in MATLAB and attempting to generate a 4FSK signal for transmission at 150 MHz. However, I’m unclear about how to control the center frequency of the transmitted signal.
Current Approach:
I’ve tried using the center frequency option in the inport block, but it doesn’t seem to affect the transmission frequency.
The iqmodulator block offers a local Oscillator option, but its purpose in setting the center frequency isn’t entirely clear.
My Question:
How can I properly set the center frequency to 150 MHz for transmitting the 4FSK signal using the IQmod example? Should I be modulating the baseband signal with a carrier at 150 MHz before feeding it to iqmodulator? Or is there another approach within the existing structure?
Additional Information:
I’m using a sampling rate of 1 MHz for the IQ data. simulink, communication, mfsk, iqmodulator MATLAB Answers — New Questions
counter that will count the input 1. If the input signal goes to 0 then the counter should reset.
I have to count every "True" signal and increment the counter by 1, when the signal is "True" and reset the counter to 0 when the signal is "False"I have to count every "True" signal and increment the counter by 1, when the signal is "True" and reset the counter to 0 when the signal is "False" I have to count every "True" signal and increment the counter by 1, when the signal is "True" and reset the counter to 0 when the signal is "False" counter MATLAB Answers — New Questions
127.0.0.1:31516 – Message service fatally disconnected
Hi,
I have a problem with Matlab (both R2023b and R2024a) not being able to resume after PC wakes from sleep mode. If Matlab is open when trying to put my PC to sleep, it stalls for several minutes preventing it from sleeping (until some process times out I guess and it finally enters sleep mode). Then, after it wakes, Matlab throws this error that Message service was disconnected at a specific localhost port (see title, the port number can vary). I followed advice from other posts (https://www.mathworks.com/matlabcentral/answers/514453-message-service-fatally-disconnected, https://www.mathworks.com/matlabcentral/answers/1637690-session-locks-when-connected-to-internet-after-disconnect-it-eventually-unlocks-with-matlab-error, and links within) that suggested to reset the preferences folder in AppData and download help documentation to local storage, but neither helped. This issue started in R2023b, recently I’ve upgraded to R2024a, but the issue still persists (this means I have a fresh install of R2024a that does this).
This disconnect issue causes the session to "freeze" – I can still write code into scripts and the GUI still responds, but I cannot execute any lines, and any edits in scripts cannot be saved (meaning that anything I write/edit will be lost). Restarting Matlab "fixes" this (until the next sleep mode), but that is not a solution for me. I use Windows 11 Home 23H2 with a Ryzen 3600, the Matlab is an Academic Total Headcount licence if any of that matters.Hi,
I have a problem with Matlab (both R2023b and R2024a) not being able to resume after PC wakes from sleep mode. If Matlab is open when trying to put my PC to sleep, it stalls for several minutes preventing it from sleeping (until some process times out I guess and it finally enters sleep mode). Then, after it wakes, Matlab throws this error that Message service was disconnected at a specific localhost port (see title, the port number can vary). I followed advice from other posts (https://www.mathworks.com/matlabcentral/answers/514453-message-service-fatally-disconnected, https://www.mathworks.com/matlabcentral/answers/1637690-session-locks-when-connected-to-internet-after-disconnect-it-eventually-unlocks-with-matlab-error, and links within) that suggested to reset the preferences folder in AppData and download help documentation to local storage, but neither helped. This issue started in R2023b, recently I’ve upgraded to R2024a, but the issue still persists (this means I have a fresh install of R2024a that does this).
This disconnect issue causes the session to "freeze" – I can still write code into scripts and the GUI still responds, but I cannot execute any lines, and any edits in scripts cannot be saved (meaning that anything I write/edit will be lost). Restarting Matlab "fixes" this (until the next sleep mode), but that is not a solution for me. I use Windows 11 Home 23H2 with a Ryzen 3600, the Matlab is an Academic Total Headcount licence if any of that matters. Hi,
I have a problem with Matlab (both R2023b and R2024a) not being able to resume after PC wakes from sleep mode. If Matlab is open when trying to put my PC to sleep, it stalls for several minutes preventing it from sleeping (until some process times out I guess and it finally enters sleep mode). Then, after it wakes, Matlab throws this error that Message service was disconnected at a specific localhost port (see title, the port number can vary). I followed advice from other posts (https://www.mathworks.com/matlabcentral/answers/514453-message-service-fatally-disconnected, https://www.mathworks.com/matlabcentral/answers/1637690-session-locks-when-connected-to-internet-after-disconnect-it-eventually-unlocks-with-matlab-error, and links within) that suggested to reset the preferences folder in AppData and download help documentation to local storage, but neither helped. This issue started in R2023b, recently I’ve upgraded to R2024a, but the issue still persists (this means I have a fresh install of R2024a that does this).
This disconnect issue causes the session to "freeze" – I can still write code into scripts and the GUI still responds, but I cannot execute any lines, and any edits in scripts cannot be saved (meaning that anything I write/edit will be lost). Restarting Matlab "fixes" this (until the next sleep mode), but that is not a solution for me. I use Windows 11 Home 23H2 with a Ryzen 3600, the Matlab is an Academic Total Headcount licence if any of that matters. matlab startup, message service MATLAB Answers — New Questions
How can I solve this problem?
%数据集中1-59样本为第一类,60-130第二类,131-178第三类
load wine.mat;%载入数据
train_wine = [wine(1:30,:);wine(60:95,:);wine(131:153,:)];%第一类的1-30,第二类60-95,第三类131-153作为训练集
train_wine_labels = [wine_labels(1:30);wine_labels(60:95);wine_labels(131:153)];%提取标签
test_wine = [wine(31:59,:);wine(96:130,:);wine(154:178,:)];%剩下样本作为测试集
test_wine_labels = [wine_labels(31:59);wine_labels(96:130);wine_labels(154:178)];%提取相应标签
[mtrain,ntrain] = size(train_wine);
[mtest,ntest] = size(test_wine);%数据预处理,归一化
datatest = [train_wine;test_wine];
[dataset_scale,ps] = mapminmax(dataset’,0,1);
dataset_scale = dataset_scale’;
train_wine = dataset_scale(1:mtrain,:);
test_wine = dataset_scale((mtrain+1):(mtrain+mtest),:);
%预测模型
model = svmtrain(train_wine_labels,train_wine,’-c 2 -g 1′);
[predict_label,accuracy] = svmpredict(test_wine_labels,test_wine,model);
函数或变量 ‘wine_labels’ 无法识别。
Function or variable ‘wine_labels’ is not recognised.%数据集中1-59样本为第一类,60-130第二类,131-178第三类
load wine.mat;%载入数据
train_wine = [wine(1:30,:);wine(60:95,:);wine(131:153,:)];%第一类的1-30,第二类60-95,第三类131-153作为训练集
train_wine_labels = [wine_labels(1:30);wine_labels(60:95);wine_labels(131:153)];%提取标签
test_wine = [wine(31:59,:);wine(96:130,:);wine(154:178,:)];%剩下样本作为测试集
test_wine_labels = [wine_labels(31:59);wine_labels(96:130);wine_labels(154:178)];%提取相应标签
[mtrain,ntrain] = size(train_wine);
[mtest,ntest] = size(test_wine);%数据预处理,归一化
datatest = [train_wine;test_wine];
[dataset_scale,ps] = mapminmax(dataset’,0,1);
dataset_scale = dataset_scale’;
train_wine = dataset_scale(1:mtrain,:);
test_wine = dataset_scale((mtrain+1):(mtrain+mtest),:);
%预测模型
model = svmtrain(train_wine_labels,train_wine,’-c 2 -g 1′);
[predict_label,accuracy] = svmpredict(test_wine_labels,test_wine,model);
函数或变量 ‘wine_labels’ 无法识别。
Function or variable ‘wine_labels’ is not recognised. %数据集中1-59样本为第一类,60-130第二类,131-178第三类
load wine.mat;%载入数据
train_wine = [wine(1:30,:);wine(60:95,:);wine(131:153,:)];%第一类的1-30,第二类60-95,第三类131-153作为训练集
train_wine_labels = [wine_labels(1:30);wine_labels(60:95);wine_labels(131:153)];%提取标签
test_wine = [wine(31:59,:);wine(96:130,:);wine(154:178,:)];%剩下样本作为测试集
test_wine_labels = [wine_labels(31:59);wine_labels(96:130);wine_labels(154:178)];%提取相应标签
[mtrain,ntrain] = size(train_wine);
[mtest,ntest] = size(test_wine);%数据预处理,归一化
datatest = [train_wine;test_wine];
[dataset_scale,ps] = mapminmax(dataset’,0,1);
dataset_scale = dataset_scale’;
train_wine = dataset_scale(1:mtrain,:);
test_wine = dataset_scale((mtrain+1):(mtrain+mtest),:);
%预测模型
model = svmtrain(train_wine_labels,train_wine,’-c 2 -g 1′);
[predict_label,accuracy] = svmpredict(test_wine_labels,test_wine,model);
函数或变量 ‘wine_labels’ 无法识别。
Function or variable ‘wine_labels’ is not recognised. 无法识别 MATLAB Answers — New Questions
Why is my Windows 11 battery life dropping faster than before?
I’ve been using Windows 11 for a few weeks now, and I’ve noticed that my battery life is dropping significantly faster than it used to. I’ve tried to troubleshoot the issue, but I haven’t been able to find any solutions. I’m using the same laptop and same usage habits as before, but my battery life is now only lasting around 4-5 hours, compared to 6-7 hours on Windows 10. This is a big issue for me, as I need my laptop to last throughout the day.
I’d love to know if there are any specific settings or tweaks that might help improve my battery life. Any advice or guidance would be greatly appreciated!
I’ve been using Windows 11 for a few weeks now, and I’ve noticed that my battery life is dropping significantly faster than it used to. I’ve tried to troubleshoot the issue, but I haven’t been able to find any solutions. I’m using the same laptop and same usage habits as before, but my battery life is now only lasting around 4-5 hours, compared to 6-7 hours on Windows 10. This is a big issue for me, as I need my laptop to last throughout the day. I’d love to know if there are any specific settings or tweaks that might help improve my battery life. Any advice or guidance would be greatly appreciated! Read More
How do coupon apps boost revenue, and how can businesses maximize their impact?”
A coupon and discount app , available on Android, Apple Store, and web platforms, holds significant potential for revenue generation. By providing users with access to exclusive deals and discounts from various businesses, it not only attracts more customers but also encourages repeat purchases and brand loyalty. Additionally, such apps can leverage targeted marketing techniques and data analytics to personalize offers, further enhancing their effectiveness in driving sales and revenue growth.
A coupon and discount app , available on Android, Apple Store, and web platforms, holds significant potential for revenue generation. By providing users with access to exclusive deals and discounts from various businesses, it not only attracts more customers but also encourages repeat purchases and brand loyalty. Additionally, such apps can leverage targeted marketing techniques and data analytics to personalize offers, further enhancing their effectiveness in driving sales and revenue growth. Read More