Month: October 2024
How to write ASCII to byte file?
In MATLB versions until R2021a I could write ASCII values stored in a CHAR array into a string as unsigned char by:
data = char([126, 129]); % Exceeds 7 bit ASCII
file = fullfile(tempdir, ‘test.dat’);
[fid, msg] = fopen(file, ‘w’);
assert(fid ~= -1, msg);
fwrite(fid, data); % Write uchar until R2021b
fclose(fid);
This wrote the unsigned chars [126, 129] untill R2021b:
[fid, msg] = fopen(file, ‘r’);
bytes = fread(fid, [1, inf], ‘uint8’); % < R2021b: [126, 129]
Since R2021b the bytes are converted to UTF-8 and the file contains [126, 194, 129], so a specification is required:
fwrite(fid, data, ‘uchar’); % < R2024b: [126, 129], R2024b: [126, 194, 129]
In R2024b this writes [126, 194, 129] again. Intuitively I’ve tried:
fwrite(fid, data, ‘uint8’); % R2024b: [126, 194, 129] also
Playing with the encoding type in fopen does not help also. My questions:
Is there a low level method to write UCHARs stored in a CHAR vector using fopen / fwrite without a Unicode conversion?
This change of behaviour breaks a lot of my codes. Is this considered to be useful?
What is the best way to write unsigned bytes without dependency to the platform?
A workaround is the casting to UINT8:
fwrite(fid, uint8(data), ‘uint8’);
But duplicating data in memory without a reason is a waste of time.In MATLB versions until R2021a I could write ASCII values stored in a CHAR array into a string as unsigned char by:
data = char([126, 129]); % Exceeds 7 bit ASCII
file = fullfile(tempdir, ‘test.dat’);
[fid, msg] = fopen(file, ‘w’);
assert(fid ~= -1, msg);
fwrite(fid, data); % Write uchar until R2021b
fclose(fid);
This wrote the unsigned chars [126, 129] untill R2021b:
[fid, msg] = fopen(file, ‘r’);
bytes = fread(fid, [1, inf], ‘uint8’); % < R2021b: [126, 129]
Since R2021b the bytes are converted to UTF-8 and the file contains [126, 194, 129], so a specification is required:
fwrite(fid, data, ‘uchar’); % < R2024b: [126, 129], R2024b: [126, 194, 129]
In R2024b this writes [126, 194, 129] again. Intuitively I’ve tried:
fwrite(fid, data, ‘uint8’); % R2024b: [126, 194, 129] also
Playing with the encoding type in fopen does not help also. My questions:
Is there a low level method to write UCHARs stored in a CHAR vector using fopen / fwrite without a Unicode conversion?
This change of behaviour breaks a lot of my codes. Is this considered to be useful?
What is the best way to write unsigned bytes without dependency to the platform?
A workaround is the casting to UINT8:
fwrite(fid, uint8(data), ‘uint8’);
But duplicating data in memory without a reason is a waste of time. In MATLB versions until R2021a I could write ASCII values stored in a CHAR array into a string as unsigned char by:
data = char([126, 129]); % Exceeds 7 bit ASCII
file = fullfile(tempdir, ‘test.dat’);
[fid, msg] = fopen(file, ‘w’);
assert(fid ~= -1, msg);
fwrite(fid, data); % Write uchar until R2021b
fclose(fid);
This wrote the unsigned chars [126, 129] untill R2021b:
[fid, msg] = fopen(file, ‘r’);
bytes = fread(fid, [1, inf], ‘uint8’); % < R2021b: [126, 129]
Since R2021b the bytes are converted to UTF-8 and the file contains [126, 194, 129], so a specification is required:
fwrite(fid, data, ‘uchar’); % < R2024b: [126, 129], R2024b: [126, 194, 129]
In R2024b this writes [126, 194, 129] again. Intuitively I’ve tried:
fwrite(fid, data, ‘uint8’); % R2024b: [126, 194, 129] also
Playing with the encoding type in fopen does not help also. My questions:
Is there a low level method to write UCHARs stored in a CHAR vector using fopen / fwrite without a Unicode conversion?
This change of behaviour breaks a lot of my codes. Is this considered to be useful?
What is the best way to write unsigned bytes without dependency to the platform?
A workaround is the casting to UINT8:
fwrite(fid, uint8(data), ‘uint8’);
But duplicating data in memory without a reason is a waste of time. ascii, uchar, fwrite, fopen, unicode MATLAB Answers — New Questions
Why do I receive “MATLAB: binder.loadFailure; LAPACK load error”
The program written by App Designer has no error when running in MATLAB; Compile it, and at run time "MATLAB: binder.loadFailure; LAPACK load error"The program written by App Designer has no error when running in MATLAB; Compile it, and at run time "MATLAB: binder.loadFailure; LAPACK load error" The program written by App Designer has no error when running in MATLAB; Compile it, and at run time "MATLAB: binder.loadFailure; LAPACK load error" app designer MATLAB Answers — New Questions
Simulation 3D of Simulink 3D animation is working in real-time?
Hello everyone,
I’m currently working on a project in Simulink where I need to control 3D objects in real-time. These objects are connected to controllers like a mouse or a robot. For instance, I have a cursor that moves based on mouse input, and its position changes continuously.
I have been using Simulink Desktop Real-Time (SLDRT) to achieve the real-time performance required for my project. However, I’ve learned that in upcoming versions of MATLAB, the Virtual Reality (VR) Sink blocks used for 3D visualization will be removed. The MATLAB documentation suggests using Simulation 3D blocks (like Simulation 3D Scene Configuration, Simulation 3D Actor, etc.) as replacements.
I attempted to implement these Simulation 3D blocks, but I’ve run into several limitations, which are also detailed Unreal Engine Simulation Environment Requirements and Limitations – MATLAB & Simulink – MathWorks Italia. The main issue is that the Simulation 3D blocks do not support SLDRT. When I try to run my model, I receive the following error: "The selected system target file ‘sldrt.tlc’ is not currently supported for concurrent execution."
My question is: How can I achieve real-time 3D visualization in Simulink, given that the VR Sink blocks are being deprecated and the Simulation 3D blocks don’t support SLDRT? Are there alternative methods or tools that I can use to visualize my 3D models in real-time while still using SLDRT?
Any advice or suggestions would be greatly appreciated!
Thank you.Hello everyone,
I’m currently working on a project in Simulink where I need to control 3D objects in real-time. These objects are connected to controllers like a mouse or a robot. For instance, I have a cursor that moves based on mouse input, and its position changes continuously.
I have been using Simulink Desktop Real-Time (SLDRT) to achieve the real-time performance required for my project. However, I’ve learned that in upcoming versions of MATLAB, the Virtual Reality (VR) Sink blocks used for 3D visualization will be removed. The MATLAB documentation suggests using Simulation 3D blocks (like Simulation 3D Scene Configuration, Simulation 3D Actor, etc.) as replacements.
I attempted to implement these Simulation 3D blocks, but I’ve run into several limitations, which are also detailed Unreal Engine Simulation Environment Requirements and Limitations – MATLAB & Simulink – MathWorks Italia. The main issue is that the Simulation 3D blocks do not support SLDRT. When I try to run my model, I receive the following error: "The selected system target file ‘sldrt.tlc’ is not currently supported for concurrent execution."
My question is: How can I achieve real-time 3D visualization in Simulink, given that the VR Sink blocks are being deprecated and the Simulation 3D blocks don’t support SLDRT? Are there alternative methods or tools that I can use to visualize my 3D models in real-time while still using SLDRT?
Any advice or suggestions would be greatly appreciated!
Thank you. Hello everyone,
I’m currently working on a project in Simulink where I need to control 3D objects in real-time. These objects are connected to controllers like a mouse or a robot. For instance, I have a cursor that moves based on mouse input, and its position changes continuously.
I have been using Simulink Desktop Real-Time (SLDRT) to achieve the real-time performance required for my project. However, I’ve learned that in upcoming versions of MATLAB, the Virtual Reality (VR) Sink blocks used for 3D visualization will be removed. The MATLAB documentation suggests using Simulation 3D blocks (like Simulation 3D Scene Configuration, Simulation 3D Actor, etc.) as replacements.
I attempted to implement these Simulation 3D blocks, but I’ve run into several limitations, which are also detailed Unreal Engine Simulation Environment Requirements and Limitations – MATLAB & Simulink – MathWorks Italia. The main issue is that the Simulation 3D blocks do not support SLDRT. When I try to run my model, I receive the following error: "The selected system target file ‘sldrt.tlc’ is not currently supported for concurrent execution."
My question is: How can I achieve real-time 3D visualization in Simulink, given that the VR Sink blocks are being deprecated and the Simulation 3D blocks don’t support SLDRT? Are there alternative methods or tools that I can use to visualize my 3D models in real-time while still using SLDRT?
Any advice or suggestions would be greatly appreciated!
Thank you. matlab, simulink, sldrt, simulation MATLAB Answers — New Questions
Need to generate 600 Hz signal
Hello expert,
I am currently working on a project involving the generation of a 600 Hz signal in a Simulink model.
I am encountering a few challenges that I would appreciate your expertise on:
Symbol Rate: I understand that for Binary Phase Shift Keying (BPSK), the symbol rate is equivalent to the bit rate. To achieve a bandwidth of 600 Hz, I am considering setting the bit rate to 600 bps. Is this the correct approach, or do I need to consider other factors (e.g., filtering effects) that might influence the bandwidth?
Sample Time and Stop Time: I would like guidance on the appropriate sample time and stop time settings for my simulation. Currently, I have set the sample time to 1/600 seconds, which corresponds to one sample per bit. Additionally, for a frame length of 208 bits, I calculated the stop time to be approximately 0.347 seconds to transmit one frame. Is this a correct configuration?
Spectrum Analyzer Placement: I am also unsure about the optimal placement of the Spectrum Analyzer block in my Simulink model. Could you please advise on the best practice for integrating this block to accurately visualize the generated signal’s frequency spectrum?
Below are each block information that I set.
RandomPayloadIP(Matlab Function) : Use for generate the Payload String. (I set sample time to 1/600)
SigfoxdataFrame(Matlab Function) : Use for generate the bitStream from Payload String. (Fix output length , 208)
Constant [10×1] : to add 0 at the tails of bistream.
DBPSK : DBPSK modulation
RRC tx Filter (Roll of Factor = 0.5, Filter Span in Symbol = 10, Output Sample per symbol = 8)
And here is what Spectrum look like.
The signal bandwidth is 165 kHz with SA sample Rate = 1.0464 MHz.
But what I need is just 600 Hz wide signal or very close to 600 Hz. Is it possible?
Thank you for your time and assistance!
Best Regards,
Fumihiko SatoHello expert,
I am currently working on a project involving the generation of a 600 Hz signal in a Simulink model.
I am encountering a few challenges that I would appreciate your expertise on:
Symbol Rate: I understand that for Binary Phase Shift Keying (BPSK), the symbol rate is equivalent to the bit rate. To achieve a bandwidth of 600 Hz, I am considering setting the bit rate to 600 bps. Is this the correct approach, or do I need to consider other factors (e.g., filtering effects) that might influence the bandwidth?
Sample Time and Stop Time: I would like guidance on the appropriate sample time and stop time settings for my simulation. Currently, I have set the sample time to 1/600 seconds, which corresponds to one sample per bit. Additionally, for a frame length of 208 bits, I calculated the stop time to be approximately 0.347 seconds to transmit one frame. Is this a correct configuration?
Spectrum Analyzer Placement: I am also unsure about the optimal placement of the Spectrum Analyzer block in my Simulink model. Could you please advise on the best practice for integrating this block to accurately visualize the generated signal’s frequency spectrum?
Below are each block information that I set.
RandomPayloadIP(Matlab Function) : Use for generate the Payload String. (I set sample time to 1/600)
SigfoxdataFrame(Matlab Function) : Use for generate the bitStream from Payload String. (Fix output length , 208)
Constant [10×1] : to add 0 at the tails of bistream.
DBPSK : DBPSK modulation
RRC tx Filter (Roll of Factor = 0.5, Filter Span in Symbol = 10, Output Sample per symbol = 8)
And here is what Spectrum look like.
The signal bandwidth is 165 kHz with SA sample Rate = 1.0464 MHz.
But what I need is just 600 Hz wide signal or very close to 600 Hz. Is it possible?
Thank you for your time and assistance!
Best Regards,
Fumihiko Sato Hello expert,
I am currently working on a project involving the generation of a 600 Hz signal in a Simulink model.
I am encountering a few challenges that I would appreciate your expertise on:
Symbol Rate: I understand that for Binary Phase Shift Keying (BPSK), the symbol rate is equivalent to the bit rate. To achieve a bandwidth of 600 Hz, I am considering setting the bit rate to 600 bps. Is this the correct approach, or do I need to consider other factors (e.g., filtering effects) that might influence the bandwidth?
Sample Time and Stop Time: I would like guidance on the appropriate sample time and stop time settings for my simulation. Currently, I have set the sample time to 1/600 seconds, which corresponds to one sample per bit. Additionally, for a frame length of 208 bits, I calculated the stop time to be approximately 0.347 seconds to transmit one frame. Is this a correct configuration?
Spectrum Analyzer Placement: I am also unsure about the optimal placement of the Spectrum Analyzer block in my Simulink model. Could you please advise on the best practice for integrating this block to accurately visualize the generated signal’s frequency spectrum?
Below are each block information that I set.
RandomPayloadIP(Matlab Function) : Use for generate the Payload String. (I set sample time to 1/600)
SigfoxdataFrame(Matlab Function) : Use for generate the bitStream from Payload String. (Fix output length , 208)
Constant [10×1] : to add 0 at the tails of bistream.
DBPSK : DBPSK modulation
RRC tx Filter (Roll of Factor = 0.5, Filter Span in Symbol = 10, Output Sample per symbol = 8)
And here is what Spectrum look like.
The signal bandwidth is 165 kHz with SA sample Rate = 1.0464 MHz.
But what I need is just 600 Hz wide signal or very close to 600 Hz. Is it possible?
Thank you for your time and assistance!
Best Regards,
Fumihiko Sato wireless communication MATLAB Answers — New Questions
Power Query running in a loop
I have created an Excel tool that with VBA macro triggers a refresh of Power Query that sends and receives information from API. In between I have a data base that registers the requests. I can see that from time to time, especially when new user copies the file the query runs and pulls the result, however when looking into the log data base I can see new requests are coming in a loop. Switching off all Privacy Settings helps. Is there a way to save the privacy settings so that they “stay” with file rather than being restored to default whenever new user opens the file?
I have created an Excel tool that with VBA macro triggers a refresh of Power Query that sends and receives information from API. In between I have a data base that registers the requests. I can see that from time to time, especially when new user copies the file the query runs and pulls the result, however when looking into the log data base I can see new requests are coming in a loop. Switching off all Privacy Settings helps. Is there a way to save the privacy settings so that they “stay” with file rather than being restored to default whenever new user opens the file? Read More
Sharepoint file access monitoring
Hey Guys,
I’ve got a fairly simple question where I don’t have an answer for. The answer might not be as simple as the question/ask.
A highly confidential Sharepoint site at our company needs to be audited/monitored (requested by upper mgmt).
Basically, what they want is a way to monitor this site that would allow them to be notified if a users opens a file on this site but isn’t in a specific Security group or windows 365 group.
This would mainly be needed to have an automated way of checking if one of them is oversharing.
We use Purview and I was thinking in the lines of DLP, but I was wondering if there are ways to achieve something like this with the Sharepoint or Sharepoint premium features only.
Kr,
Maarten
Hey Guys, I’ve got a fairly simple question where I don’t have an answer for. The answer might not be as simple as the question/ask. A highly confidential Sharepoint site at our company needs to be audited/monitored (requested by upper mgmt).Basically, what they want is a way to monitor this site that would allow them to be notified if a users opens a file on this site but isn’t in a specific Security group or windows 365 group.This would mainly be needed to have an automated way of checking if one of them is oversharing. We use Purview and I was thinking in the lines of DLP, but I was wondering if there are ways to achieve something like this with the Sharepoint or Sharepoint premium features only. Kr,Maarten Read More
JoinNotFound
I have seen a post on here with the same error but it didn’t seem to help me so rather than hijack the thread I’d ask again. More specifically, I don’t understand which attribute it’s trying to match on and how to set/check that.
I get this when doing a provision on demand.
“No action required. User ‘….’ is not a newly discovered entry to be provisioned in the target application, nor one with an update that should flow to a target entry with which it was previously matched.”
Skipreason: JoinNotFound.
I’ll go through the documents again on Microsoft Learn in case I’ve missed something but if anyone has any pointers I’d be most grateful.
TIA
Andrew
I have seen a post on here with the same error but it didn’t seem to help me so rather than hijack the thread I’d ask again. More specifically, I don’t understand which attribute it’s trying to match on and how to set/check that. I get this when doing a provision on demand. “No action required. User ‘….’ is not a newly discovered entry to be provisioned in the target application, nor one with an update that should flow to a target entry with which it was previously matched.”Skipreason: JoinNotFound. I’ll go through the documents again on Microsoft Learn in case I’ve missed something but if anyone has any pointers I’d be most grateful. TIAAndrew Read More
Multicast Traffic Management in Hyper-V and SCVMM
I have a question regarding the management of multicast traffic in a Hyper-V environment. I’ve been researching how multicast works with virtual switches and the role of IGMP snooping.
From what I understand, multicast traffic is primarily managed at the switch level through IGMP snooping, rather than being directly managed by Hyper-V or SCVMM. Is this correct? Can someone confirm whether the effective management of multicast traffic relies more on the configuration of physical network switches rather than on Hyper-V or SCVMM settings?
Additionally, if there are any specific configurations I should be aware of in Hyper-V or SCVMM to ensure proper multicast functionality, I would appreciate your insights!
I have a question regarding the management of multicast traffic in a Hyper-V environment. I’ve been researching how multicast works with virtual switches and the role of IGMP snooping.From what I understand, multicast traffic is primarily managed at the switch level through IGMP snooping, rather than being directly managed by Hyper-V or SCVMM. Is this correct? Can someone confirm whether the effective management of multicast traffic relies more on the configuration of physical network switches rather than on Hyper-V or SCVMM settings?Additionally, if there are any specific configurations I should be aware of in Hyper-V or SCVMM to ensure proper multicast functionality, I would appreciate your insights! Read More
华纳公司电话-17300435119(微同)
一般讨论为人们提供了一个平台,让他们可以分享自己的知识、经验和见解,同时也可以从他人那里学习到新的知识和信息。通过这种交流和共享,可以促进知识的传播和积累,提高整个社会的知识水平。例如,在一个行业论坛上,专业人士可以分享自己在工作中的实践经验和最新的行业动态,其他参与者可以从中学习到宝贵的经验和知识,从而提升自己的专业能力。
一般讨论可以激发人们的思维,促进创新和创造力的产生。不同的观点和想法的碰撞可以引发新的思考和灵感,促使人们提出新的解决方案和创新思路。例如,在一个创意工作坊中,参与者可以通过讨论和交流,激发彼此的创造力,共同提出新的产品设计、营销策略或社会创新方案。
一般讨论可以促进不同群体之间的交流和理解,增强社会凝聚力和共识。通过讨论共同关心的问题,可以促进人们之间的沟通和合作,减少误解和冲突,共同为社会的发展和进步做出贡献。例如,在一个社区会议上,居民可以就社区的发展规划、公共设施建设等问题进行讨论,通过交流和协商,达成共识,共同推动社区的发展。
一般讨论要求参与者对不同的观点进行分析和评价,提出自己的论据和理由。这种过程可以培养批判性思维和解决问题的能力,帮助人们更好地理解和应对复杂的问题。例如,在一个学校的课堂讨论中,学生可以就一个历史事件或社会问题进行讨论,通过分析不同的观点和证据,培养批判性思维和解决问题的能力。
二、重要性 促进知识交流和共享一般讨论为人们提供了一个平台,让他们可以分享自己的知识、经验和见解,同时也可以从他人那里学习到新的知识和信息。通过这种交流和共享,可以促进知识的传播和积累,提高整个社会的知识水平。例如,在一个行业论坛上,专业人士可以分享自己在工作中的实践经验和最新的行业动态,其他参与者可以从中学习到宝贵的经验和知识,从而提升自己的专业能力。激发创新和创造力一般讨论可以激发人们的思维,促进创新和创造力的产生。不同的观点和想法的碰撞可以引发新的思考和灵感,促使人们提出新的解决方案和创新思路。例如,在一个创意工作坊中,参与者可以通过讨论和交流,激发彼此的创造力,共同提出新的产品设计、营销策略或社会创新方案。增强社会凝聚力和共识一般讨论可以促进不同群体之间的交流和理解,增强社会凝聚力和共识。通过讨论共同关心的问题,可以促进人们之间的沟通和合作,减少误解和冲突,共同为社会的发展和进步做出贡献。例如,在一个社区会议上,居民可以就社区的发展规划、公共设施建设等问题进行讨论,通过交流和协商,达成共识,共同推动社区的发展。培养批判性思维和解决问题的能力一般讨论要求参与者对不同的观点进行分析和评价,提出自己的论据和理由。这种过程可以培养批判性思维和解决问题的能力,帮助人们更好地理解和应对复杂的问题。例如,在一个学校的课堂讨论中,学生可以就一个历史事件或社会问题进行讨论,通过分析不同的观点和证据,培养批判性思维和解决问题的能力。 总之,一般讨论是一种重要的交流和思考活动,具有开放性、多样性和互动性等特点。它可以促进知识交流和共享,激发创新和创造力,增强社会凝聚力和共识,培养批判性思维和解决问题的能力。在当今社会,我们应该积极参与各种一般讨论活动,共同推动社会的发展和进步。 Read More
Unable to see (empty) SSL certificate to apply on SQL Server Configuration Manager.
Issue:
Unable to see (empty) SSL certificate to apply on SQL Server Configuration Manager.
Environmental Details:
SQL Server Name (FQDN): YPSQL1.YP.LAB
SQL Server Name (NetBIOS): YPSQL1
Domain Name: YP.LAB
Cause:
Common mistake: CN value not matching FQDN of the SQL Server Computer name or KEYSPEC value is 0.
How to verify and resolve:
CN value not matching FQDN of the SQL Server Computer name or KEYSPEC value is 0.
Steps: To validate whether the certificate imported on SQL Server (YPSQL1) has all the required properties which are required for SQL Server application to use.
Click Start-> Run-> Type MMC-> Click OK -> Click File -> Add/Remove Snap-in..
Select Certificates-> Click Add -> Select Computer account -> Click Next -> Click Finish -> Click OK
Import the certificate into Personal->Certificates
Now let’s validate whether the certificate we imported above has required properties for SQL Server application to detect and accept.
Ref: Certificate requirements for SQL Server – SQL Server | Microsoft Learn / Certificate management (SQL Server Configuration Manager) – SQL Server | Microsoft Learn
Double click the certificate
From the above highlights
General tab:
Issued to: YPSQL1.YP.LAB à this is matching the SQL Server computer FQDN name
Valid from: this should be valid and not expired
Private key: The certificate should have private key
Details tab:
Enhanced Key Usage: Server Authentication
Key Usage: Digital Signature, Key Encipherment
Subject: CN=YPSQL1.YP.LAB à this should be matching computer FQDN name
Certification Path tab:
Certification path: should be valid RootCA and status should be okay à This RootCA should be imported into Trusted Root Certification Authorities -> Certificates location
Now let’s validate whether the certificate has KEYSPEC=1
KeySpec values and associated meanings
The following are the meanings of the various KeySpec values:
Keyspec value
Means
Recommended AD FS use
0
The certificate is a CNG cert
SSL certificate only
1
For a legacy CAPI (non-CNG) cert, the key can be used for signing and decryption
SSL, token signing, token decrypting, service communication certificates
2
For a legacy CAPI (non-CNG) cert, the key can be used only for signing
not recommended
On the SQL Server where we have imported the above certificate, click Start -> Run -> CMD
Run the command: certutil -v -store my >c:cert.txt -> this would dump the certificate details loaded on the server computer store
From the text below is the certificate details we are interested in:
The important attribute which we were interested in is “KeySpec = 1 — AT_KEYEXCHANGE”.
Certificate with any of the above highlighted attribute values missing is not valid for SQL Server Application to use.
Now, let’s go ahead and validate whether the certificate is visible in SQL Server Configuration Manager to issue and apply. Then restart the SQL Server Service.
Issue:
Unable to see (empty) SSL certificate to apply on SQL Server Configuration Manager.
Environmental Details:
SQL Server Name (FQDN): YPSQL1.YP.LAB
SQL Server Name (NetBIOS): YPSQL1
Domain Name: YP.LAB
Cause:
Common mistake: CN value not matching FQDN of the SQL Server Computer name or KEYSPEC value is 0.
How to verify and resolve:
CN value not matching FQDN of the SQL Server Computer name or KEYSPEC value is 0.
Steps: To validate whether the certificate imported on SQL Server (YPSQL1) has all the required properties which are required for SQL Server application to use.
Click Start-> Run-> Type MMC-> Click OK -> Click File -> Add/Remove Snap-in..
Select Certificates-> Click Add -> Select Computer account -> Click Next -> Click Finish -> Click OK
Import the certificate into Personal->Certificates
Now let’s validate whether the certificate we imported above has required properties for SQL Server application to detect and accept.
Ref: Certificate requirements for SQL Server – SQL Server | Microsoft Learn / Certificate management (SQL Server Configuration Manager) – SQL Server | Microsoft Learn
Double click the certificate
From the above highlights
General tab:
Issued to: YPSQL1.YP.LAB à this is matching the SQL Server computer FQDN name
Valid from: this should be valid and not expired
Private key: The certificate should have private key
Details tab:
Enhanced Key Usage: Server Authentication
Key Usage: Digital Signature, Key Encipherment
Subject: CN=YPSQL1.YP.LAB à this should be matching computer FQDN name
Certification Path tab:
Certification path: should be valid RootCA and status should be okay à This RootCA should be imported into Trusted Root Certification Authorities -> Certificates location
Now let’s validate whether the certificate has KEYSPEC=1
Ref: Active Directory Federation Services and certificate Key Specification property Information | Microsoft Learn
KeySpec values and associated meanings
The following are the meanings of the various KeySpec values:
Keyspec value
Means
Recommended AD FS use
0
The certificate is a CNG cert
SSL certificate only
1
For a legacy CAPI (non-CNG) cert, the key can be used for signing and decryption
SSL, token signing, token decrypting, service communication certificates
2
For a legacy CAPI (non-CNG) cert, the key can be used only for signing
not recommended
On the SQL Server where we have imported the above certificate, click Start -> Run -> CMD
Run the command: certutil -v -store my >c:cert.txt -> this would dump the certificate details loaded on the server computer store
From the text below is the certificate details we are interested in:
The important attribute which we were interested in is “KeySpec = 1 — AT_KEYEXCHANGE”.
Certificate with any of the above highlighted attribute values missing is not valid for SQL Server Application to use.
Now, let’s go ahead and validate whether the certificate is visible in SQL Server Configuration Manager to issue and apply. Then restart the SQL Server Service.
Automatically attach PDF files stored in a Library to their respective items in a List
Hi All,
I have a SharePoint list with records, and one of the columns (AttachedDocuments) contains the file
names of the corresponding PDF attachments. I want to automatically attach these PDF files (stored in a Share Point document library) to their respective list items.
I’ve created the attached Power Automate Flow however it doesn’t seem to work.
Could someone point out where I’m going wrong or suggest a alternative solution?
Thanks
Hi All,I have a SharePoint list with records, and one of the columns (AttachedDocuments) contains the filenames of the corresponding PDF attachments. I want to automatically attach these PDF files (stored in a Share Point document library) to their respective list items.I’ve created the attached Power Automate Flow however it doesn’t seem to work.Could someone point out where I’m going wrong or suggest a alternative solution? Thanks Read More
Multicast Not Working with VMs on Single Host/Logical Switch
Hello,
I’m facing an issue with multicast traffic in my Hyper-V environment and would appreciate some insights.
I have IGMP snooping enabled, and I’ve noticed the following behavior:
Multicast works when VMs are on different hosts.Multicast also works when VMs are on different logical switches.However, multicast does not work when VMs are on the same host or using the same logical switch.
Could someone help explain why multicast is not functioning in the latter scenario? Are there specific configurations or settings I should check in Hyper-V or SCVMM that could affect multicast traffic when VMs are on the same host or logical switch?
Thank you for your assistance!
Hello,I’m facing an issue with multicast traffic in my Hyper-V environment and would appreciate some insights.I have IGMP snooping enabled, and I’ve noticed the following behavior:Multicast works when VMs are on different hosts.Multicast also works when VMs are on different logical switches.However, multicast does not work when VMs are on the same host or using the same logical switch.Could someone help explain why multicast is not functioning in the latter scenario? Are there specific configurations or settings I should check in Hyper-V or SCVMM that could affect multicast traffic when VMs are on the same host or logical switch?Thank you for your assistance! Read More
How to set up a registration page for a Teams weinbar with a choice of multiple dates and times
I want to set one webinar registration page where users have a choice of selecting different dates.
But I don’t have that option under Registration. Under Registration I have Configuration and Attendee Status…and there is nothing under Configuration to Limit Registration Start and End Time.
I want to set one webinar registration page where users have a choice of selecting different dates. But I don’t have that option under Registration. Under Registration I have Configuration and Attendee Status…and there is nothing under Configuration to Limit Registration Start and End Time. Read More
Is possible to show my custom app in Simulink APPS tab
Hi all!
I am currently working on an extension app for Embedded coder and my idea is to create custom tab in Simulink toolstrip. I have used this tutorial for that. Then I have successfully packed the app using "Package App" tool and everything works quite good, problem is that the my installed app shows only in Matlab’s APPS tab. Is there any possible workaround how to set application as visible in Simulink like Embedded Coder app does?
Side question to this is if there is possibility to create app directly for simulink the way how all the apps in Simulink APPS tab works? You pick the app from the toolstrip tab and new closeable tab will open. Because even if the way described in tutorial mentioned above works, it is little bit hacky.
Thanks in advance for any answer. :)Hi all!
I am currently working on an extension app for Embedded coder and my idea is to create custom tab in Simulink toolstrip. I have used this tutorial for that. Then I have successfully packed the app using "Package App" tool and everything works quite good, problem is that the my installed app shows only in Matlab’s APPS tab. Is there any possible workaround how to set application as visible in Simulink like Embedded Coder app does?
Side question to this is if there is possibility to create app directly for simulink the way how all the apps in Simulink APPS tab works? You pick the app from the toolstrip tab and new closeable tab will open. Because even if the way described in tutorial mentioned above works, it is little bit hacky.
Thanks in advance for any answer. 🙂 Hi all!
I am currently working on an extension app for Embedded coder and my idea is to create custom tab in Simulink toolstrip. I have used this tutorial for that. Then I have successfully packed the app using "Package App" tool and everything works quite good, problem is that the my installed app shows only in Matlab’s APPS tab. Is there any possible workaround how to set application as visible in Simulink like Embedded Coder app does?
Side question to this is if there is possibility to create app directly for simulink the way how all the apps in Simulink APPS tab works? You pick the app from the toolstrip tab and new closeable tab will open. Because even if the way described in tutorial mentioned above works, it is little bit hacky.
Thanks in advance for any answer. 🙂 simulink, custom tab, custom simulink app, custom app MATLAB Answers — New Questions
GUI freezes after deleting a Tab
I’ve got 6 Tabs in GUI, but one is hidden in the startup fcn. Hidden tab called "Hybrid" is used when user wants to change the engine from Solid one to Hybrid – if so, the Solid one is hidden and the Hybrid appears.
Problem description: I’m using the Browse button (e.g. in Solid tab) right when I start the GUI, and it works – file is imported to GUI, and the Label shows the title of the file. But when I change from Solid to Hybrid and then from Hybrid to Solid again, this button does not work – browse pop up is shown, I choose the file, but then there’s no title in the Label, the whole app designer does not respond (+ there is an error sound wherever I click with my mouse, but no errors in the command window).
To hide tabs I’ve used one of the solutions in Matlab Answer which was to add 2 lines in startupfcn:
app.tg = matlab.ui.container.TabGroup;
app.TabGroup.Children(2).Parent = app.tg;
app.iteration=1;
User can switch between the tabs using both:
1) 2 buttons, "SolidToHybrid", "HybridToSolid" – and their callback:
app.tg.Children(1).Parent = app.TabGroup;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(2).Parent = app.tg;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
2) 2 Switches with the same callback:
if mod(app.iteration, 2) == 0
value = app.Switch.Value;
else
value = app.Switch_2.Value;
end
app.iteration=app.iteration+1;
if strcmp(value,’Hybrid’)
app.Switch.Value="Hybrid";
app.tg.Children(1).Parent = app.TabGroup;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(2).Parent = app.tg;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
else
app.Switch_2.Value="Solid";
app.tg.Children(1).Parent = app.TabGroup;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(2).Parent = app.tg;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
end
this "deletes" all tabs that are to the right and adding the chosen one + the deleted rest in the correct order.
The order of tabs: "First", "Solid", ("Hybrid"), "Fourth", "Fifth", "Sixth"
I’ve chosen 2 options to eliminate e.g. infinite loops connected with switch (I thought it could be a problem), but it seems like there’s a different problem since in both cases "Browsing files" does not work.
Edit: Maybe there’s a different, easier way to hide Tabs but with the similar outcome – always only one is visible.I’ve got 6 Tabs in GUI, but one is hidden in the startup fcn. Hidden tab called "Hybrid" is used when user wants to change the engine from Solid one to Hybrid – if so, the Solid one is hidden and the Hybrid appears.
Problem description: I’m using the Browse button (e.g. in Solid tab) right when I start the GUI, and it works – file is imported to GUI, and the Label shows the title of the file. But when I change from Solid to Hybrid and then from Hybrid to Solid again, this button does not work – browse pop up is shown, I choose the file, but then there’s no title in the Label, the whole app designer does not respond (+ there is an error sound wherever I click with my mouse, but no errors in the command window).
To hide tabs I’ve used one of the solutions in Matlab Answer which was to add 2 lines in startupfcn:
app.tg = matlab.ui.container.TabGroup;
app.TabGroup.Children(2).Parent = app.tg;
app.iteration=1;
User can switch between the tabs using both:
1) 2 buttons, "SolidToHybrid", "HybridToSolid" – and their callback:
app.tg.Children(1).Parent = app.TabGroup;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(2).Parent = app.tg;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
2) 2 Switches with the same callback:
if mod(app.iteration, 2) == 0
value = app.Switch.Value;
else
value = app.Switch_2.Value;
end
app.iteration=app.iteration+1;
if strcmp(value,’Hybrid’)
app.Switch.Value="Hybrid";
app.tg.Children(1).Parent = app.TabGroup;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(2).Parent = app.tg;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
else
app.Switch_2.Value="Solid";
app.tg.Children(1).Parent = app.TabGroup;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(2).Parent = app.tg;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
end
this "deletes" all tabs that are to the right and adding the chosen one + the deleted rest in the correct order.
The order of tabs: "First", "Solid", ("Hybrid"), "Fourth", "Fifth", "Sixth"
I’ve chosen 2 options to eliminate e.g. infinite loops connected with switch (I thought it could be a problem), but it seems like there’s a different problem since in both cases "Browsing files" does not work.
Edit: Maybe there’s a different, easier way to hide Tabs but with the similar outcome – always only one is visible. I’ve got 6 Tabs in GUI, but one is hidden in the startup fcn. Hidden tab called "Hybrid" is used when user wants to change the engine from Solid one to Hybrid – if so, the Solid one is hidden and the Hybrid appears.
Problem description: I’m using the Browse button (e.g. in Solid tab) right when I start the GUI, and it works – file is imported to GUI, and the Label shows the title of the file. But when I change from Solid to Hybrid and then from Hybrid to Solid again, this button does not work – browse pop up is shown, I choose the file, but then there’s no title in the Label, the whole app designer does not respond (+ there is an error sound wherever I click with my mouse, but no errors in the command window).
To hide tabs I’ve used one of the solutions in Matlab Answer which was to add 2 lines in startupfcn:
app.tg = matlab.ui.container.TabGroup;
app.TabGroup.Children(2).Parent = app.tg;
app.iteration=1;
User can switch between the tabs using both:
1) 2 buttons, "SolidToHybrid", "HybridToSolid" – and their callback:
app.tg.Children(1).Parent = app.TabGroup;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(2).Parent = app.tg;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
2) 2 Switches with the same callback:
if mod(app.iteration, 2) == 0
value = app.Switch.Value;
else
value = app.Switch_2.Value;
end
app.iteration=app.iteration+1;
if strcmp(value,’Hybrid’)
app.Switch.Value="Hybrid";
app.tg.Children(1).Parent = app.TabGroup;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(2).Parent = app.tg;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
else
app.Switch_2.Value="Solid";
app.tg.Children(1).Parent = app.TabGroup;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(3).Parent = app.tg;
app.TabGroup.Children(2).Parent = app.tg;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
app.tg.Children(1).Parent = app.TabGroup;
end
this "deletes" all tabs that are to the right and adding the chosen one + the deleted rest in the correct order.
The order of tabs: "First", "Solid", ("Hybrid"), "Fourth", "Fifth", "Sixth"
I’ve chosen 2 options to eliminate e.g. infinite loops connected with switch (I thought it could be a problem), but it seems like there’s a different problem since in both cases "Browsing files" does not work.
Edit: Maybe there’s a different, easier way to hide Tabs but with the similar outcome – always only one is visible. gui, app designer MATLAB Answers — New Questions
Remote address for Simulink TCP/IP block as parameter/variable from workspace?
Hi,
The parameters/variables for other blocks are set with a m-file with a callback when opening the Simulink model. The TCP/IP block seem to treat the "remote address" as IP or URL. Is it possible to set the remote address for a TCP/IP block in Simulink with a variable from workspace?
Thanks.
regards
W. HolzkeHi,
The parameters/variables for other blocks are set with a m-file with a callback when opening the Simulink model. The TCP/IP block seem to treat the "remote address" as IP or URL. Is it possible to set the remote address for a TCP/IP block in Simulink with a variable from workspace?
Thanks.
regards
W. Holzke Hi,
The parameters/variables for other blocks are set with a m-file with a callback when opening the Simulink model. The TCP/IP block seem to treat the "remote address" as IP or URL. Is it possible to set the remote address for a TCP/IP block in Simulink with a variable from workspace?
Thanks.
regards
W. Holzke simulink, tcp/ip MATLAB Answers — New Questions
Mac Outlook – linking email to a To Do (like you can on a PC)
Hello,
On a PC in New Outlook, you can open the ‘My Day’ tab and drag an email to To Do which creates a link in the To Do back to that email at a later time. Great feature.
On a Mac, there is no way to do this and so To Do is useless for managing email and you have to use Online Outlook, which has its own drawbacks.
Why is this feature on a PC not on a Mac and can it please be added.
I know you can Flag an email to get it shown in To Do – but that doesn’t do what I need it to do – you can only flag an email once and you have to then go to the To Do to rename the To Do – not good as I practise ‘Getting Things Done’ where the whole power comes from naming Next Actions properly.
Thanks, James
Hello,On a PC in New Outlook, you can open the ‘My Day’ tab and drag an email to To Do which creates a link in the To Do back to that email at a later time. Great feature.On a Mac, there is no way to do this and so To Do is useless for managing email and you have to use Online Outlook, which has its own drawbacks.Why is this feature on a PC not on a Mac and can it please be added.I know you can Flag an email to get it shown in To Do – but that doesn’t do what I need it to do – you can only flag an email once and you have to then go to the To Do to rename the To Do – not good as I practise ‘Getting Things Done’ where the whole power comes from naming Next Actions properly.Thanks, James Read More
We have also detected two high-severity vulnerabilities in the macOS environment upgraded to 15.0.
We have detected two vulnerabilities with a CVSS score of 9.8 in the macOS 15.0 environment using Microsoft Defender. However, we believe these might be false positives.
CVE-2016-6296
CVE-2016-6290
*These are PHP vulnerabilities identified in 2016.
These vulnerabilities are being detected across all macOS environments upgraded to macOS 15.0. It would be easier to address the issue if file paths or other additional information (evidence) were displayed on the screen, but we have not been able to obtain such information.
We have detected two vulnerabilities with a CVSS score of 9.8 in the macOS 15.0 environment using Microsoft Defender. However, we believe these might be false positives.CVE-2016-6296CVE-2016-6290*These are PHP vulnerabilities identified in 2016.These vulnerabilities are being detected across all macOS environments upgraded to macOS 15.0. It would be easier to address the issue if file paths or other additional information (evidence) were displayed on the screen, but we have not been able to obtain such information. Read More
Idle Session Timeout policy for Entra ID – Enterprise applications
Hi All,
I would like to understand the limitations of having Idle session timeout policies for Enterprise applications in Entra ID. Although we do have Session based sign-in CAP option in Entra ID configuration, but that is something not customer’s requirement, they want to have idle session timeout option to be configured for their set of applications.
During research I got to know that, we can configure Idle session timeout through admin.microsoft.com portal by visiting Org Settings >> Security & Privacy tab>> Idle session timeout, but that is something applicable for M365 apps only like Outlook web apps, OneDrive, SharePoint, Microsoft Fabric, M365 Defender portal, M365 Admin portal etc., but there is no such resource available which covers the Entra ID Enterprise applications.
Thanks
🙂
Hi All,
I would like to understand the limitations of having Idle session timeout policies for Enterprise applications in Entra ID. Although we do have Session based sign-in CAP option in Entra ID configuration, but that is something not customer’s requirement, they want to have idle session timeout option to be configured for their set of applications.
During research I got to know that, we can configure Idle session timeout through admin.microsoft.com portal by visiting Org Settings >> Security & Privacy tab>> Idle session timeout, but that is something applicable for M365 apps only like Outlook web apps, OneDrive, SharePoint, Microsoft Fabric, M365 Defender portal, M365 Admin portal etc., but there is no such resource available which covers the Entra ID Enterprise applications.
Thanks
🙂 Read More
Why do I encounter that “rtw.connectivity.HostLauncher: stopped executable with host process identifier xx” when attempting to deploy the Simulink model on hardware?
Hi,
I am trying to use Simulink external mode and deploy Simulink models on hardware. The model is compiled successfully, and I get a host process identifier after deployment. But suddenly terminated after a few seconds (without any action taken)
There are no error prompts either. How could I confirm which step went wrong?
ThanksHi,
I am trying to use Simulink external mode and deploy Simulink models on hardware. The model is compiled successfully, and I get a host process identifier after deployment. But suddenly terminated after a few seconds (without any action taken)
There are no error prompts either. How could I confirm which step went wrong?
Thanks Hi,
I am trying to use Simulink external mode and deploy Simulink models on hardware. The model is compiled successfully, and I get a host process identifier after deployment. But suddenly terminated after a few seconds (without any action taken)
There are no error prompts either. How could I confirm which step went wrong?
Thanks simulink, external mode, rtw.connectivity.hostlauncher, deployment MATLAB Answers — New Questions