Month: August 2024
Can’t locate a style I created – Word 365
in the styles pane in word, i have all styles showing and in alphabetical order.
however one of the styles i created is not listed. Its called ‘college info’ . when I try to create a new style with the same name it says:
the style name already exists or is reserved for a buil-in style.
if the name already exists why wont it show up in the styles gallery or style pane? And how do I find it so I can modify it or delete this style?
Also, this style, college info, is not applied anywhere in the doc.
in the styles pane in word, i have all styles showing and in alphabetical order.however one of the styles i created is not listed. Its called ‘college info’ . when I try to create a new style with the same name it says:the style name already exists or is reserved for a buil-in style.if the name already exists why wont it show up in the styles gallery or style pane? And how do I find it so I can modify it or delete this style?Also, this style, college info, is not applied anywhere in the doc. Read More
Plot grraph , srink is problem
the following code is plot the graph I want to change the Y axis value so that the box and plot on x -axis does concide , I try it using limit commmand but it just srink the graph
x=-1000:25:975
u_exact=[-9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.25E-08 -9.25E-08 -9.26E-08 -9.27E-08 -9.28E-08 -9.31E-08 -9.36E-08 -9.45E-08 -9.63E-08 -1.00E-07 -1.12E-07 -1.75E-07 -4.18134E+12 -1.77E-07 -1.12E-07 -1.00E-07 -9.63E-08 -9.45E-08 -9.36E-08 -9.31E-08 -9.28E-08 -9.27E-08 -9.26E-08 -9.25E-08 -9.25E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08]
u_RDTM=[-9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.25E-08 -9.25E-08 -9.26E-08 -9.27E-08 -9.28E-08 -9.31E-08 -9.36E-08 -9.45E-08 -9.63E-08 -1.00E-07 -1.12E-07 -1.75E-07 -4.18134E+12 -1.77E-07 -1.12E-07 -1.00E-07 -9.63E-08 -9.45E-08 -9.36E-08 -9.31E-08 -9.28E-08 -9.27E-08 -9.26E-08 -9.25E-08 -9.25E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08]
plot(x,u_RDTM,’o’,x,u_exact)
xlim([-1844 2054])
ylim([-6950633103752 1818593846248])the following code is plot the graph I want to change the Y axis value so that the box and plot on x -axis does concide , I try it using limit commmand but it just srink the graph
x=-1000:25:975
u_exact=[-9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.25E-08 -9.25E-08 -9.26E-08 -9.27E-08 -9.28E-08 -9.31E-08 -9.36E-08 -9.45E-08 -9.63E-08 -1.00E-07 -1.12E-07 -1.75E-07 -4.18134E+12 -1.77E-07 -1.12E-07 -1.00E-07 -9.63E-08 -9.45E-08 -9.36E-08 -9.31E-08 -9.28E-08 -9.27E-08 -9.26E-08 -9.25E-08 -9.25E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08]
u_RDTM=[-9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.25E-08 -9.25E-08 -9.26E-08 -9.27E-08 -9.28E-08 -9.31E-08 -9.36E-08 -9.45E-08 -9.63E-08 -1.00E-07 -1.12E-07 -1.75E-07 -4.18134E+12 -1.77E-07 -1.12E-07 -1.00E-07 -9.63E-08 -9.45E-08 -9.36E-08 -9.31E-08 -9.28E-08 -9.27E-08 -9.26E-08 -9.25E-08 -9.25E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08]
plot(x,u_RDTM,’o’,x,u_exact)
xlim([-1844 2054])
ylim([-6950633103752 1818593846248]) the following code is plot the graph I want to change the Y axis value so that the box and plot on x -axis does concide , I try it using limit commmand but it just srink the graph
x=-1000:25:975
u_exact=[-9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.25E-08 -9.25E-08 -9.26E-08 -9.27E-08 -9.28E-08 -9.31E-08 -9.36E-08 -9.45E-08 -9.63E-08 -1.00E-07 -1.12E-07 -1.75E-07 -4.18134E+12 -1.77E-07 -1.12E-07 -1.00E-07 -9.63E-08 -9.45E-08 -9.36E-08 -9.31E-08 -9.28E-08 -9.27E-08 -9.26E-08 -9.25E-08 -9.25E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08]
u_RDTM=[-9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.25E-08 -9.25E-08 -9.26E-08 -9.27E-08 -9.28E-08 -9.31E-08 -9.36E-08 -9.45E-08 -9.63E-08 -1.00E-07 -1.12E-07 -1.75E-07 -4.18134E+12 -1.77E-07 -1.12E-07 -1.00E-07 -9.63E-08 -9.45E-08 -9.36E-08 -9.31E-08 -9.28E-08 -9.27E-08 -9.26E-08 -9.25E-08 -9.25E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08 -9.24E-08]
plot(x,u_RDTM,’o’,x,u_exact)
xlim([-1844 2054])
ylim([-6950633103752 1818593846248]) graphiical representation MATLAB Answers — New Questions
SPAM Folder not working
Not sure what the deal is but the past month, stuff that I’ve been receiving for years is now ending up in the spam folder. My bank statement was there today, notifications from forums I’ve been a member of for over 5yrs keep showing up there, stuff that (long ago) was marked “not junk” shows up… yet my inbox still occasionally gets “you won” emails from stores that don’t even exist in Canada. 2 weeks ago I got a reply back from a company for a job interview… had I not checked over my spam folder, I’d have missed the interview and getting hired.
So… what changed on Microsoft’s end? Nothing on my end changed. It’s like they hit the reset button or something on my “not junk” filters.
Not sure what the deal is but the past month, stuff that I’ve been receiving for years is now ending up in the spam folder. My bank statement was there today, notifications from forums I’ve been a member of for over 5yrs keep showing up there, stuff that (long ago) was marked “not junk” shows up… yet my inbox still occasionally gets “you won” emails from stores that don’t even exist in Canada. 2 weeks ago I got a reply back from a company for a job interview… had I not checked over my spam folder, I’d have missed the interview and getting hired. So… what changed on Microsoft’s end? Nothing on my end changed. It’s like they hit the reset button or something on my “not junk” filters. Read More
Rolles and Responsibiliets Defender XDR
Dear,
I need some help, looking for a draw where the Microsoft defender tools are positioned in a SOC and the roles and responsibilties, i have seen ones a draw on the MS websites, but cannot find one.
Please help, need to convince the IT who does not have SOC experience
Dear, I need some help, looking for a draw where the Microsoft defender tools are positioned in a SOC and the roles and responsibilties, i have seen ones a draw on the MS websites, but cannot find one. Please help, need to convince the IT who does not have SOC experience Read More
Syntax error , Component: Simulink, Category: Block error
I am trying to create user defined function theta_2dot of inverted pedulum (cart and pole) using following formulas which is giving me syntax error
Formulas are : -(l*m*cos(u(3))*sin(u(3))*u(4)^2 + F*cos(u(3)) – g*m*sin(u(3)) – M*g*sin(u(3)))/(l*(M + m – m*cos(u(3))^2))
I would like to know correct format for above formulas.
Thank you, AaronI am trying to create user defined function theta_2dot of inverted pedulum (cart and pole) using following formulas which is giving me syntax error
Formulas are : -(l*m*cos(u(3))*sin(u(3))*u(4)^2 + F*cos(u(3)) – g*m*sin(u(3)) – M*g*sin(u(3)))/(l*(M + m – m*cos(u(3))^2))
I would like to know correct format for above formulas.
Thank you, Aaron I am trying to create user defined function theta_2dot of inverted pedulum (cart and pole) using following formulas which is giving me syntax error
Formulas are : -(l*m*cos(u(3))*sin(u(3))*u(4)^2 + F*cos(u(3)) – g*m*sin(u(3)) – M*g*sin(u(3)))/(l*(M + m – m*cos(u(3))^2))
I would like to know correct format for above formulas.
Thank you, Aaron simulink, block error MATLAB Answers — New Questions
Is there a way you can import an image in Intune to push similar like WDS
I am not sure whether is there a way that you can import a WIM file similar to what you do in WDS to image devices, can you do this in Intune?
I have only done what is called as Autopilot User driven method or pre-provision method,
Any thoughts on this by today would be great as I need to have some project plan by tomorrows meetings.
I am not sure whether is there a way that you can import a WIM file similar to what you do in WDS to image devices, can you do this in Intune? I have only done what is called as Autopilot User driven method or pre-provision method, Any thoughts on this by today would be great as I need to have some project plan by tomorrows meetings. Read More
boolean to double signals
hello
I want to create PWM signal generator blocks in Simulink which has blanking time also. but i have problem with finding the right block and configuration. I used "Transport delay" or "Variable Time delay" or "dead zone". there is the problem with boolean to double signal in varible time delay and transpor delay.
please help me
thankshello
I want to create PWM signal generator blocks in Simulink which has blanking time also. but i have problem with finding the right block and configuration. I used "Transport delay" or "Variable Time delay" or "dead zone". there is the problem with boolean to double signal in varible time delay and transpor delay.
please help me
thanks hello
I want to create PWM signal generator blocks in Simulink which has blanking time also. but i have problem with finding the right block and configuration. I used "Transport delay" or "Variable Time delay" or "dead zone". there is the problem with boolean to double signal in varible time delay and transpor delay.
please help me
thanks simulink MATLAB Answers — New Questions
how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
Actually i am writing a matlab code for training in Matlan onramp and didn’t getting how to solve the abovehow to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
Actually i am writing a matlab code for training in Matlan onramp and didn’t getting how to solve the above how to modify a variable data by scale function like data= scale(data); I have to modify scale function for variable data
Actually i am writing a matlab code for training in Matlan onramp and didn’t getting how to solve the above create a function, modify a function MATLAB Answers — New Questions
How can I calculate the forces and moments on servo arms and couplers in a Stewart platform simulation using MATLAB
I am currently working on developing a Stewart platform and have calculated the inverse kinematic. I’ve also created a Simscape Multibody simulation, utilizing revolute joints (driven by angle inputs), brick solids, and spherical joints. From this simulation, I extracted the joint torques necessary to drive the top platform based on a given input trajectory. This data has helped me select appropriate motors and spherical joints.
Now, I need to determine the forces and moments applied to the servo arms and couplers. My goal is to ensure that the servo arms do not twist and the couplers do not buckle under load. Could you advise on how I can calculate these forces and moments using MATLAB, or would it be more appropriate to use another tool for this analysis?
The mechanical members in question are highlighted in the attached pictures.I am currently working on developing a Stewart platform and have calculated the inverse kinematic. I’ve also created a Simscape Multibody simulation, utilizing revolute joints (driven by angle inputs), brick solids, and spherical joints. From this simulation, I extracted the joint torques necessary to drive the top platform based on a given input trajectory. This data has helped me select appropriate motors and spherical joints.
Now, I need to determine the forces and moments applied to the servo arms and couplers. My goal is to ensure that the servo arms do not twist and the couplers do not buckle under load. Could you advise on how I can calculate these forces and moments using MATLAB, or would it be more appropriate to use another tool for this analysis?
The mechanical members in question are highlighted in the attached pictures. I am currently working on developing a Stewart platform and have calculated the inverse kinematic. I’ve also created a Simscape Multibody simulation, utilizing revolute joints (driven by angle inputs), brick solids, and spherical joints. From this simulation, I extracted the joint torques necessary to drive the top platform based on a given input trajectory. This data has helped me select appropriate motors and spherical joints.
Now, I need to determine the forces and moments applied to the servo arms and couplers. My goal is to ensure that the servo arms do not twist and the couplers do not buckle under load. Could you advise on how I can calculate these forces and moments using MATLAB, or would it be more appropriate to use another tool for this analysis?
The mechanical members in question are highlighted in the attached pictures. simscape, matlab, force analysis, simulink, inverse kinematics, stuart’s platform MATLAB Answers — New Questions
STM32F4xx SPI Block Error
I’m working with a customized embedded system with stm32f410C8 processor in simulink R2024a. I’m using the latest version of embedded coder support package for STM32 procesors(version 24.1.3). The goal is communicating with a sensor over SPI. In a simple model I have added just a SPI Tranmit block.When I set chip select calling mehod to "Provided by the SPI peripherial" there is no error in model building process. but when I set chip select calling mehod to "Expilicit GPIO calls" I got this strange error without any hints to debug
### Starting build procedure for: H4CAModel
### Build procedure for H4CAModel aborted due to an error.
Build Summary
Top model targets built:
Model Action Rebuild Reason
=====================================================================
H4CAModel Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 0.63179s
Unrecognized field name "Signal".
I have done many projects with this support package but with other processors like stm32h7 series and i didn’t encountered this error. The point to be noted in this case is that SPI blocks for STM32F4xx processors have been added to suport package recently(R2024a).
Every little tip can go a long way.
Thanks.I’m working with a customized embedded system with stm32f410C8 processor in simulink R2024a. I’m using the latest version of embedded coder support package for STM32 procesors(version 24.1.3). The goal is communicating with a sensor over SPI. In a simple model I have added just a SPI Tranmit block.When I set chip select calling mehod to "Provided by the SPI peripherial" there is no error in model building process. but when I set chip select calling mehod to "Expilicit GPIO calls" I got this strange error without any hints to debug
### Starting build procedure for: H4CAModel
### Build procedure for H4CAModel aborted due to an error.
Build Summary
Top model targets built:
Model Action Rebuild Reason
=====================================================================
H4CAModel Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 0.63179s
Unrecognized field name "Signal".
I have done many projects with this support package but with other processors like stm32h7 series and i didn’t encountered this error. The point to be noted in this case is that SPI blocks for STM32F4xx processors have been added to suport package recently(R2024a).
Every little tip can go a long way.
Thanks. I’m working with a customized embedded system with stm32f410C8 processor in simulink R2024a. I’m using the latest version of embedded coder support package for STM32 procesors(version 24.1.3). The goal is communicating with a sensor over SPI. In a simple model I have added just a SPI Tranmit block.When I set chip select calling mehod to "Provided by the SPI peripherial" there is no error in model building process. but when I set chip select calling mehod to "Expilicit GPIO calls" I got this strange error without any hints to debug
### Starting build procedure for: H4CAModel
### Build procedure for H4CAModel aborted due to an error.
Build Summary
Top model targets built:
Model Action Rebuild Reason
=====================================================================
H4CAModel Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 0.63179s
Unrecognized field name "Signal".
I have done many projects with this support package but with other processors like stm32h7 series and i didn’t encountered this error. The point to be noted in this case is that SPI blocks for STM32F4xx processors have been added to suport package recently(R2024a).
Every little tip can go a long way.
Thanks. stm32f4xx, spi transmit MATLAB Answers — New Questions
How to Build your own AI Text-to-Image Generator
Do you want to build your own AI Text-to-Image Generator in less than 15 minutes? Join me as I’ll walk you through the process of building one using Stable Diffusion within Visual Studio Code!
Prerequisites
Before you start, ensure you have the following:
Python 3.9 or higher.Hugging Face Account.
Step 1: Set Up the Development Environment
In your project directory, create a file named requirements.txt and add the following dependencies to the file:
certifi==2022.9.14
charset-normalizer==2.1.1
colorama==0.4.5
customtkinter==4.6.1
darkdetect==0.7.1
diffusers==0.3.0
filelock==3.8.0
huggingface-hub==0.9.1
idna==3.4
importlib-metadata==4.12.0
numpy==1.23.3
packaging==21.3
Pillow==9.2.0
pyparsing==3.0.9
PyYAML==6.0
regex==2022.9.13
requests==2.28.1
tk==0.1.0
tokenizers==0.12.1
torch==1.12.1+cu113
torchaudio==0.12.1+cu113
torchvision==0.13.1+cu113
tqdm==4.64.1
transformers==4.22.1
typing_extensions==4.3.0
urllib3==1.26.12
zipp==3.8.1
To install the listed dependencies in the requirements.txt file, run the following command in your terminal:
pip install -r requirements.txt
Step 2: Configure Authentication
In your project directory, create a file named authtoken.py and add the following code to the file:
auth_token = “ACCESS TOKEN FROM HUGGING FACE”
To obtain access token from Hugging Face, follow these steps:
Log in to your Hugging Face account.
Go to your profile settings and select Access Tokens
Click on Create new token.Choose the token type as Read.Enter Token name and click Create token.
Copy the generated token and replace ACCESS TOKEN FROM HUGGINGFACE in authtoken.py file with your token.
Step 3: Develop the Application
In your project directory, create a file named application.py and add the following code to the file:
# Import the Tkinter library for GUI
import tkinter as tk
# Import the custom Tkinter library for enhanced widgets
import customtkinter as ctk
# Import PyTorch for handling tensors and model
import torch
# Import the Stable Diffusion Pipeline from diffusers library
from diffusers import StableDiffusionPipeline
# Import PIL for image handling
from PIL import Image, ImageTk
# Import the authentication token from a file
from authtoken import auth_token
# Initialize the main Tkinter application window
app = tk.Tk()
# Set the size of the window
app.geometry(“532×632”)
# Set the title of the window
app.title(“Text-to-Image Generator”)
# Set the appearance mode of customtkinter to dark
ctk.set_appearance_mode(“dark”)
# Create an entry widget for the prompt text input
prompt = ctk.CTkEntry(height=40, width=512, text_font=(“Arial”, 20), text_color=”black”, fg_color=”white”)
# Place the entry widget at coordinates (10, 10)
prompt.place(x=10, y=10)
# Create a label widget for displaying the generated image
lmain = ctk.CTkLabel(height=512, width=512)
# Place the label widget at coordinates (10, 110)
lmain.place(x=10, y=110)
# Define the model ID for Stable Diffusion
modelid = “CompVis/stable-diffusion-v1-4”
# Define the device to run the model on
device = “cpu”
# Load the Stable Diffusion model pipeline
pipe = StableDiffusionPipeline.from_pretrained(modelid, revision=”fp16″, torch_dtype=torch.float32, use_auth_token=auth_token)
# Move the pipeline to the specified device (CPU)
pipe.to(device)
# Define the function to generate the image from the prompt
def generate():
# Disable gradient calculation for efficiency
with torch.no_grad():
# Generate the image with guidance scale
image = pipe(prompt.get(), guidance_scale=8.5)[“sample”][0]
# Convert the image to a PhotoImage for Tkinter
img = ImageTk.PhotoImage(image)
# Keep a reference to the image to prevent garbage collection
lmain.image = img
# Update the label widget with the new image
lmain.configure(image=img)
# Create a button widget to trigger the image generation
trigger = ctk.CTkButton(height=40, width=120, text_font=(“Arial”, 20), text_color=”white”, fg_color=”black”, command=generate)
# Set the text on the button to “Generate”
trigger.configure(text=”Generate”)
# Place the button at coordinates (206, 60)
trigger.place(x=206, y=60)
# Start the Tkinter main loop
app.mainloop()
To run the application, execute the following command in your terminal:
python application.py
This will launch the GUI where you can enter a text prompt and generate corresponding images by clicking the Generate button.
Congratulations! You have successfully built an AI Text-to-Image Generator using Stable Diffusion in Visual Studio Code. Feel free to explore and enhance the application further by adding new features and improving the user interface. Happy coding!
Build your own AI Text-to-Image Generator in Visual Studio CodeDo you want to build your own AI Text-to-Image Generator in less than 15 minutes? Join me as I’ll walk you through the process of building one using Stable Diffusion within Visual Studio Code! PrerequisitesBefore you start, ensure you have the following:Python 3.9 or higher.Hugging Face Account. Step 1: Set Up the Development EnvironmentIn your project directory, create a file named requirements.txt and add the following dependencies to the file: certifi==2022.9.14
charset-normalizer==2.1.1
colorama==0.4.5
customtkinter==4.6.1
darkdetect==0.7.1
diffusers==0.3.0
filelock==3.8.0
huggingface-hub==0.9.1
idna==3.4
importlib-metadata==4.12.0
numpy==1.23.3
packaging==21.3
Pillow==9.2.0
pyparsing==3.0.9
PyYAML==6.0
regex==2022.9.13
requests==2.28.1
tk==0.1.0
tokenizers==0.12.1
torch==1.12.1+cu113
torchaudio==0.12.1+cu113
torchvision==0.13.1+cu113
tqdm==4.64.1
transformers==4.22.1
typing_extensions==4.3.0
urllib3==1.26.12
zipp==3.8.1 To install the listed dependencies in the requirements.txt file, run the following command in your terminal: pip install -r requirements.txt Step 2: Configure AuthenticationIn your project directory, create a file named authtoken.py and add the following code to the file: auth_token = “ACCESS TOKEN FROM HUGGING FACE” To obtain access token from Hugging Face, follow these steps:Log in to your Hugging Face account. Go to your profile settings and select Access Tokens Click on Create new token.Choose the token type as Read.Enter Token name and click Create token. Copy the generated token and replace ACCESS TOKEN FROM HUGGINGFACE in authtoken.py file with your token. Step 3: Develop the ApplicationIn your project directory, create a file named application.py and add the following code to the file: # Import the Tkinter library for GUI
import tkinter as tk
# Import the custom Tkinter library for enhanced widgets
import customtkinter as ctk
# Import PyTorch for handling tensors and model
import torch
# Import the Stable Diffusion Pipeline from diffusers library
from diffusers import StableDiffusionPipeline
# Import PIL for image handling
from PIL import Image, ImageTk
# Import the authentication token from a file
from authtoken import auth_token
# Initialize the main Tkinter application window
app = tk.Tk()
# Set the size of the window
app.geometry(“532×632”)
# Set the title of the window
app.title(“Text-to-Image Generator”)
# Set the appearance mode of customtkinter to dark
ctk.set_appearance_mode(“dark”)
# Create an entry widget for the prompt text input
prompt = ctk.CTkEntry(height=40, width=512, text_font=(“Arial”, 20), text_color=”black”, fg_color=”white”)
# Place the entry widget at coordinates (10, 10)
prompt.place(x=10, y=10)
# Create a label widget for displaying the generated image
lmain = ctk.CTkLabel(height=512, width=512)
# Place the label widget at coordinates (10, 110)
lmain.place(x=10, y=110)
# Define the model ID for Stable Diffusion
modelid = “CompVis/stable-diffusion-v1-4”
# Define the device to run the model on
device = “cpu”
# Load the Stable Diffusion model pipeline
pipe = StableDiffusionPipeline.from_pretrained(modelid, revision=”fp16″, torch_dtype=torch.float32, use_auth_token=auth_token)
# Move the pipeline to the specified device (CPU)
pipe.to(device)
# Define the function to generate the image from the prompt
def generate():
# Disable gradient calculation for efficiency
with torch.no_grad():
# Generate the image with guidance scale
image = pipe(prompt.get(), guidance_scale=8.5)[“sample”][0]
# Convert the image to a PhotoImage for Tkinter
img = ImageTk.PhotoImage(image)
# Keep a reference to the image to prevent garbage collection
lmain.image = img
# Update the label widget with the new image
lmain.configure(image=img)
# Create a button widget to trigger the image generation
trigger = ctk.CTkButton(height=40, width=120, text_font=(“Arial”, 20), text_color=”white”, fg_color=”black”, command=generate)
# Set the text on the button to “Generate”
trigger.configure(text=”Generate”)
# Place the button at coordinates (206, 60)
trigger.place(x=206, y=60)
# Start the Tkinter main loop
app.mainloop() To run the application, execute the following command in your terminal: python application.py This will launch the GUI where you can enter a text prompt and generate corresponding images by clicking the Generate button. Congratulations! You have successfully built an AI Text-to-Image Generator using Stable Diffusion in Visual Studio Code. Feel free to explore and enhance the application further by adding new features and improving the user interface. Happy coding! Read More
Form Submission Data extraction
Hi
I’ve started working with a client that want’s to utilise Microsoft forms so what can be achieved is not known to me yet, always used another form software.
They want a forklift daily checklist created so the operators can do on their smart device, which is easy enough and I’ve replicated the clients paper based form. Once submitted I’ve added in the managers email address so he can check the submissions, and I note this opens up an Excel spreadsheet.
The checklist asks if items are ‘OK’ or require ‘Repair’. To save the manager looking through the form for Repair answers, what’s the best solution to show what requires repair at a quick glance, use power automate in some way?
Hi I’ve started working with a client that want’s to utilise Microsoft forms so what can be achieved is not known to me yet, always used another form software. They want a forklift daily checklist created so the operators can do on their smart device, which is easy enough and I’ve replicated the clients paper based form. Once submitted I’ve added in the managers email address so he can check the submissions, and I note this opens up an Excel spreadsheet. The checklist asks if items are ‘OK’ or require ‘Repair’. To save the manager looking through the form for Repair answers, what’s the best solution to show what requires repair at a quick glance, use power automate in some way? Read More
Problema despues de ejecutar comando “addpath”
Holas:
Estoy usando Matlb 2021b en una PC-Win10.
Dado que no tengo derechos de administrador, cada vez que iniciaba un programa ejecutaba el comando "addpath" incluyendo el directorio que queria se incluyera:
addpath(genpath(‘c:Userspr8331C-ccar0_NuBES1_Nextcloud1____K_I_T54_m’),’-begin’)
Desde hace un tiempo ya empece a percatar que matlab empieza a tener error que no permite que se ejecuten mis codigos (que ya funcionaban previamente).
Por ejemplo estoy tratando de ejecutar mi funcion para buscar la ruta de un archivo:
function [rutArchivo, Dir, Archivo, Extension] = f_PathFile()
% anteriormente llamada f_VenetanaBuscaArchivo => le estoy cambiando el nombre para poder recordarme más facil
%
% Funcion que busca el path de un archivo seleccionado en la ventana.
% Para filtrar por extension en la busqueda primeramente se abre ventana preguntando la extension a buscar
%
% InPUT:
%==========
% No requiere
%
% OutPUT:
%==========
% rutArchivo: string, Ruta del archivo
% Dir: string, path del archivo
% Archivo: string, nombre del archivo
% Ext_ string, extension del archivo
%
% addpath(genpath(‘\sccfs-home.scc.kit.eduhomeMATLAB’),’-begin’) %esta línea agrega todas las subcarpetas de la Carpeta Matlab para asi leer las funciones sin problema
% addpath(genpath(‘c:Userspr8331C-ccar0_NuBES1_Nextcloud1____K_I_T54_m’),’-begin’) %esta línea agrega todas las subcarpetas de la Carpeta Matlab para asi leer las funciones sin problema
%%
defaultValue = {‘txt’};
disp([‘°fff starting f_PathFile’])
titleBar = ‘InPut’; % Click sobre archivo a seleccionar: ‘;
userPrompt = {‘Extencion a usar para la búsqueda: ‘ };
Entrada = inputdlg(userPrompt,titleBar, [1 35], defaultValue);
Extension = [‘*.’ char(Entrada(1,1))];
%%
TiituloBarra = [‘Busqueda filtrada para archivos del tipo: ‘ Extension];
disp([‘ffff ‘ TiituloBarra]);
[File,Dir] = uigetfile(Extension, TiituloBarra);
rutArchivo = [Dir File];
disp([‘#fff Selected PathFile: ‘ rutArchivo])
end
Cuando se trata de ejecutar la linea de:
Entrada = inputdlg(userPrompt,titleBar, [1 35], defaultValue);
Obtengo el siguiente error y el programa deja de funcinar, hasa que reinicie matlab nuevamente.
Error: File: system_dependent.m Line: 1 Column: 24
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
Error in usejava (line 44)
isok = system_dependent(‘useJava’,feature);
Error in matlab.ui.internal.utils.checkJVMError (line 14)
if ~isdecaf && ~usejava(‘jvm’)
Error in warnfiguredialog (line 8)
matlab.ui.internal.utils.checkJVMError;
Error in dialog (line 42)
warnfiguredialog(‘dialog’);
Error in inputdlg (line 147)
InputFig=dialog( …
Error in f_PathFile (line 26)
Entrada = inputdlg(userPrompt,titleBar, [1 35], defaultValue);
Alguna sugerencia?Holas:
Estoy usando Matlb 2021b en una PC-Win10.
Dado que no tengo derechos de administrador, cada vez que iniciaba un programa ejecutaba el comando "addpath" incluyendo el directorio que queria se incluyera:
addpath(genpath(‘c:Userspr8331C-ccar0_NuBES1_Nextcloud1____K_I_T54_m’),’-begin’)
Desde hace un tiempo ya empece a percatar que matlab empieza a tener error que no permite que se ejecuten mis codigos (que ya funcionaban previamente).
Por ejemplo estoy tratando de ejecutar mi funcion para buscar la ruta de un archivo:
function [rutArchivo, Dir, Archivo, Extension] = f_PathFile()
% anteriormente llamada f_VenetanaBuscaArchivo => le estoy cambiando el nombre para poder recordarme más facil
%
% Funcion que busca el path de un archivo seleccionado en la ventana.
% Para filtrar por extension en la busqueda primeramente se abre ventana preguntando la extension a buscar
%
% InPUT:
%==========
% No requiere
%
% OutPUT:
%==========
% rutArchivo: string, Ruta del archivo
% Dir: string, path del archivo
% Archivo: string, nombre del archivo
% Ext_ string, extension del archivo
%
% addpath(genpath(‘\sccfs-home.scc.kit.eduhomeMATLAB’),’-begin’) %esta línea agrega todas las subcarpetas de la Carpeta Matlab para asi leer las funciones sin problema
% addpath(genpath(‘c:Userspr8331C-ccar0_NuBES1_Nextcloud1____K_I_T54_m’),’-begin’) %esta línea agrega todas las subcarpetas de la Carpeta Matlab para asi leer las funciones sin problema
%%
defaultValue = {‘txt’};
disp([‘°fff starting f_PathFile’])
titleBar = ‘InPut’; % Click sobre archivo a seleccionar: ‘;
userPrompt = {‘Extencion a usar para la búsqueda: ‘ };
Entrada = inputdlg(userPrompt,titleBar, [1 35], defaultValue);
Extension = [‘*.’ char(Entrada(1,1))];
%%
TiituloBarra = [‘Busqueda filtrada para archivos del tipo: ‘ Extension];
disp([‘ffff ‘ TiituloBarra]);
[File,Dir] = uigetfile(Extension, TiituloBarra);
rutArchivo = [Dir File];
disp([‘#fff Selected PathFile: ‘ rutArchivo])
end
Cuando se trata de ejecutar la linea de:
Entrada = inputdlg(userPrompt,titleBar, [1 35], defaultValue);
Obtengo el siguiente error y el programa deja de funcinar, hasa que reinicie matlab nuevamente.
Error: File: system_dependent.m Line: 1 Column: 24
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
Error in usejava (line 44)
isok = system_dependent(‘useJava’,feature);
Error in matlab.ui.internal.utils.checkJVMError (line 14)
if ~isdecaf && ~usejava(‘jvm’)
Error in warnfiguredialog (line 8)
matlab.ui.internal.utils.checkJVMError;
Error in dialog (line 42)
warnfiguredialog(‘dialog’);
Error in inputdlg (line 147)
InputFig=dialog( …
Error in f_PathFile (line 26)
Entrada = inputdlg(userPrompt,titleBar, [1 35], defaultValue);
Alguna sugerencia? Holas:
Estoy usando Matlb 2021b en una PC-Win10.
Dado que no tengo derechos de administrador, cada vez que iniciaba un programa ejecutaba el comando "addpath" incluyendo el directorio que queria se incluyera:
addpath(genpath(‘c:Userspr8331C-ccar0_NuBES1_Nextcloud1____K_I_T54_m’),’-begin’)
Desde hace un tiempo ya empece a percatar que matlab empieza a tener error que no permite que se ejecuten mis codigos (que ya funcionaban previamente).
Por ejemplo estoy tratando de ejecutar mi funcion para buscar la ruta de un archivo:
function [rutArchivo, Dir, Archivo, Extension] = f_PathFile()
% anteriormente llamada f_VenetanaBuscaArchivo => le estoy cambiando el nombre para poder recordarme más facil
%
% Funcion que busca el path de un archivo seleccionado en la ventana.
% Para filtrar por extension en la busqueda primeramente se abre ventana preguntando la extension a buscar
%
% InPUT:
%==========
% No requiere
%
% OutPUT:
%==========
% rutArchivo: string, Ruta del archivo
% Dir: string, path del archivo
% Archivo: string, nombre del archivo
% Ext_ string, extension del archivo
%
% addpath(genpath(‘\sccfs-home.scc.kit.eduhomeMATLAB’),’-begin’) %esta línea agrega todas las subcarpetas de la Carpeta Matlab para asi leer las funciones sin problema
% addpath(genpath(‘c:Userspr8331C-ccar0_NuBES1_Nextcloud1____K_I_T54_m’),’-begin’) %esta línea agrega todas las subcarpetas de la Carpeta Matlab para asi leer las funciones sin problema
%%
defaultValue = {‘txt’};
disp([‘°fff starting f_PathFile’])
titleBar = ‘InPut’; % Click sobre archivo a seleccionar: ‘;
userPrompt = {‘Extencion a usar para la búsqueda: ‘ };
Entrada = inputdlg(userPrompt,titleBar, [1 35], defaultValue);
Extension = [‘*.’ char(Entrada(1,1))];
%%
TiituloBarra = [‘Busqueda filtrada para archivos del tipo: ‘ Extension];
disp([‘ffff ‘ TiituloBarra]);
[File,Dir] = uigetfile(Extension, TiituloBarra);
rutArchivo = [Dir File];
disp([‘#fff Selected PathFile: ‘ rutArchivo])
end
Cuando se trata de ejecutar la linea de:
Entrada = inputdlg(userPrompt,titleBar, [1 35], defaultValue);
Obtengo el siguiente error y el programa deja de funcinar, hasa que reinicie matlab nuevamente.
Error: File: system_dependent.m Line: 1 Column: 24
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
Error in usejava (line 44)
isok = system_dependent(‘useJava’,feature);
Error in matlab.ui.internal.utils.checkJVMError (line 14)
if ~isdecaf && ~usejava(‘jvm’)
Error in warnfiguredialog (line 8)
matlab.ui.internal.utils.checkJVMError;
Error in dialog (line 42)
warnfiguredialog(‘dialog’);
Error in inputdlg (line 147)
InputFig=dialog( …
Error in f_PathFile (line 26)
Entrada = inputdlg(userPrompt,titleBar, [1 35], defaultValue);
Alguna sugerencia? administrator, addpath, jave error MATLAB Answers — New Questions
Azure OpenAI, some models not avaliable for completion (Not Chat Completion)
Dear all,
I am new to Azure OpenAI. In my console, gpt-4o-mini and gpt-4o showed for “Chat completion” only. Does anyone know if I missed any configuration or quota setting?
Thank you for your advise in advance.
Dear all,I am new to Azure OpenAI. In my console, gpt-4o-mini and gpt-4o showed for “Chat completion” only. Does anyone know if I missed any configuration or quota setting?Thank you for your advise in advance. Read More
Yeti microphones no longer working
I am on Windows 11 Pro, version 24H2, OS build 26100.863 on the Insider beta channel on a intel plattform.
After the summer I should do a teams-meeting, but Teams said that my mic was not working (Yeti Blue), I tried another Yeti (Yeti GX) which not worked either. I tried then to use the mic in my Logitech Brio camera and that worked fine. I have tested both Yeti mics on other pcs and they work there.
The only difference I see is in in “System > Sound > Properties – Input settings” is that the Format parameter is missing (on the Brio it says “2 channels, 16 bit, 48000 Hz (DVD Quality”). Why is the format missing on the Yetis? How could I get it in there?
Any suggestions to what that could be wrong? Is there a known issue with the current build? I have never had these kinds of problems with the mics before.
Thanks in advance for any advice!
I am on Windows 11 Pro, version 24H2, OS build 26100.863 on the Insider beta channel on a intel plattform.After the summer I should do a teams-meeting, but Teams said that my mic was not working (Yeti Blue), I tried another Yeti (Yeti GX) which not worked either. I tried then to use the mic in my Logitech Brio camera and that worked fine. I have tested both Yeti mics on other pcs and they work there. The only difference I see is in in “System > Sound > Properties – Input settings” is that the Format parameter is missing (on the Brio it says “2 channels, 16 bit, 48000 Hz (DVD Quality”). Why is the format missing on the Yetis? How could I get it in there?Any suggestions to what that could be wrong? Is there a known issue with the current build? I have never had these kinds of problems with the mics before. Thanks in advance for any advice! Read More
System stability in control system engineering
The mathematical model of a systemis given by:
x ̈ +(x^2- η) x ̇ +w^(2 )x=0
For w=1
Show that a stable equilibrium point becomes unstable as the parameter 𝜂 is varied from -1 in +1 using phase plane analysis.
At what value of 𝜂 does the instability occur?
What happens to the system after the equilibrium point becomes unstable?The mathematical model of a systemis given by:
x ̈ +(x^2- η) x ̇ +w^(2 )x=0
For w=1
Show that a stable equilibrium point becomes unstable as the parameter 𝜂 is varied from -1 in +1 using phase plane analysis.
At what value of 𝜂 does the instability occur?
What happens to the system after the equilibrium point becomes unstable? The mathematical model of a systemis given by:
x ̈ +(x^2- η) x ̇ +w^(2 )x=0
For w=1
Show that a stable equilibrium point becomes unstable as the parameter 𝜂 is varied from -1 in +1 using phase plane analysis.
At what value of 𝜂 does the instability occur?
What happens to the system after the equilibrium point becomes unstable? control system MATLAB Answers — New Questions
SSO for Linux and Mac users, setup guidance for multiple users.
Hello MATLAB Community,
I’m reaching out to understand the implications of MATLAB’s transition from traditional license servers to Single Sign-On (SSO) for Linux and Mac users.
How will this transition impact users on Linux and Mac systems? Are there specific considerations or additional steps required for these platforms to ensure continued access and functionality?
Could someone provide guidance on how to set up MATLAB SSO for multiple users on Linux and Mac systems within a business or educational institution? Any best practices or detailed instructions for managing SSO for a larger group across these operating systems would be very helpful.
Any detailed information or guidance on these topics would be greatly appreciated.Hello MATLAB Community,
I’m reaching out to understand the implications of MATLAB’s transition from traditional license servers to Single Sign-On (SSO) for Linux and Mac users.
How will this transition impact users on Linux and Mac systems? Are there specific considerations or additional steps required for these platforms to ensure continued access and functionality?
Could someone provide guidance on how to set up MATLAB SSO for multiple users on Linux and Mac systems within a business or educational institution? Any best practices or detailed instructions for managing SSO for a larger group across these operating systems would be very helpful.
Any detailed information or guidance on these topics would be greatly appreciated. Hello MATLAB Community,
I’m reaching out to understand the implications of MATLAB’s transition from traditional license servers to Single Sign-On (SSO) for Linux and Mac users.
How will this transition impact users on Linux and Mac systems? Are there specific considerations or additional steps required for these platforms to ensure continued access and functionality?
Could someone provide guidance on how to set up MATLAB SSO for multiple users on Linux and Mac systems within a business or educational institution? Any best practices or detailed instructions for managing SSO for a larger group across these operating systems would be very helpful.
Any detailed information or guidance on these topics would be greatly appreciated. sso, matlab, linux, mac, license server MATLAB Answers — New Questions
how to save two different computers seperately with the same microsoft account to one drive?
how do you save two differnt (or more your PCs) to the same one drive so they don’t blur together? As my computers age, I tend to change them and thought I could save my old PCs to the cloud under one drive. Now I am confused. I think I might have done this before but I’m not sure. Since my new PC purchases, it drops all of my then current PC down into the device. My first new one was just a notebook and I wanted it to remain emptish/clean of anything in order to think. Also a notebook brain is not too big. I had it sinking, but I’m not sure how now. My new desktop also automatically just dumped the old PC (windows 10) to this new PC (windows 11) which I like sort of blank so I can relearn the computer and to start new. I only use one Microsoft and think they made it a law that we, the consumer, only has one Microsoft account, free or paid per person.
Please help!
how do you save two differnt (or more your PCs) to the same one drive so they don’t blur together? As my computers age, I tend to change them and thought I could save my old PCs to the cloud under one drive. Now I am confused. I think I might have done this before but I’m not sure. Since my new PC purchases, it drops all of my then current PC down into the device. My first new one was just a notebook and I wanted it to remain emptish/clean of anything in order to think. Also a notebook brain is not too big. I had it sinking, but I’m not sure how now. My new desktop also automatically just dumped the old PC (windows 10) to this new PC (windows 11) which I like sort of blank so I can relearn the computer and to start new. I only use one Microsoft and think they made it a law that we, the consumer, only has one Microsoft account, free or paid per person.Please help! Read More
Copilot proでGPT-4とGPT-4Turboの切り替えボタンが無い
GPT-4を利用できないのであればProにする必要がありません。
GPT-4が復活する予定はありますか?
私はフィードバックを何度も送っています。SNSでも困っている人が多くいます。
スイッチボタンが復活することを願います。
GPT-4が使えないのであればProは解約してしまうことになります。
スイッチボタン、GPT-4が復活することを願っています。
GPT-4を利用できないのであればProにする必要がありません。GPT-4が復活する予定はありますか? 私はフィードバックを何度も送っています。SNSでも困っている人が多くいます。スイッチボタンが復活することを願います。GPT-4が使えないのであればProは解約してしまうことになります。 スイッチボタン、GPT-4が復活することを願っています。 Read More
HDL Coder and Bitstream Programming Insight Needed
I am trying to program the DAC PL-DDR Transmit example ( https://www.mathworks.com/help/hdlcoder/ug/hdl-dac-PL-DDR4-transmit.html ) to my ZCU216 board. I have already asked a question about this a few days ago but will make this one more broad to give it a better chance of being answered.
When generating and programming the bitstream, I ensure that the AXI4 Stream Interface is 128 bits wide. However, when I run the addAXI4StreamInterface() function, a prequisite to writing to the port from MATLAB for testing purposes, I am getting data mismatch errors that can be resolved by changing the inteface width to 64 bits. So, clearly the programmed FPGA is expecting the function to request 64 bits and not 128.
My question is: what kind of troubleshooting steps are aviailable for an issue like this? Trying to explore these functions, you run into .p files quickly, so it’s been impossible so far to see what’s going on under the hood.I am trying to program the DAC PL-DDR Transmit example ( https://www.mathworks.com/help/hdlcoder/ug/hdl-dac-PL-DDR4-transmit.html ) to my ZCU216 board. I have already asked a question about this a few days ago but will make this one more broad to give it a better chance of being answered.
When generating and programming the bitstream, I ensure that the AXI4 Stream Interface is 128 bits wide. However, when I run the addAXI4StreamInterface() function, a prequisite to writing to the port from MATLAB for testing purposes, I am getting data mismatch errors that can be resolved by changing the inteface width to 64 bits. So, clearly the programmed FPGA is expecting the function to request 64 bits and not 128.
My question is: what kind of troubleshooting steps are aviailable for an issue like this? Trying to explore these functions, you run into .p files quickly, so it’s been impossible so far to see what’s going on under the hood. I am trying to program the DAC PL-DDR Transmit example ( https://www.mathworks.com/help/hdlcoder/ug/hdl-dac-PL-DDR4-transmit.html ) to my ZCU216 board. I have already asked a question about this a few days ago but will make this one more broad to give it a better chance of being answered.
When generating and programming the bitstream, I ensure that the AXI4 Stream Interface is 128 bits wide. However, when I run the addAXI4StreamInterface() function, a prequisite to writing to the port from MATLAB for testing purposes, I am getting data mismatch errors that can be resolved by changing the inteface width to 64 bits. So, clearly the programmed FPGA is expecting the function to request 64 bits and not 128.
My question is: what kind of troubleshooting steps are aviailable for an issue like this? Trying to explore these functions, you run into .p files quickly, so it’s been impossible so far to see what’s going on under the hood. hdl coder, zcu216, dac, ddr MATLAB Answers — New Questions