 So here we are in the design window of STM32 cube monitor on the left side We have blocks that we'll be placing into the design window on the right side There is some global settings of the layout some teams and so on and also if we will need to configure a block We will configure it through this site. So first we will need to create Variables specify the variables that we'll be accessing in the MCU using of course the stlink probe So we'll need to drag and drop some acquisition out and of course variables and In order to start and stop the acquisition Yeah We will have to put there some buttons some user interface So let's put their start and stop buttons First you might notice that there is the red triangle which actually denotes that it is not yet configured So we first need to configure it What we really need is well in order to Recognize the button. So let's put there just a label start acquisition and We need to send the message. This is related to the road net. I just type start If you need on the right side, you should find some information So if you click here, you find that the topic fields can be used to set the message topic property that is output It should be done. It is okay. It is right But we will we are missing one part the chart that we will be Outputting or writing the variables into so let's put here the chart and we will Okay, let's configure the chart first. Let's put there my chart name Okay, we have a chart created. So the chart is created You can see it at the triangle just disappeared as well as in a start acquisition. This means that Those blocks are well configured and we don't have to care about them more. So let's Configure this button. We will need to assign it to the chart. Let's call it stop acquisition and Send the message stop Okay the only mark that remains on the buttons and other blocks is The blue circle which denotes that it is not yet deployed This means that the changes are still not propagated into the dashboard So you will not see the changes in the desk dashboard yet. So let's just interconnect these blocks Okay, and acquisition out Else Okay, let's let's see why the probe is not yet Yeah now now it is well configured We can edit and let's put there my probe out name else variables and now What is important to understand in the variables is that when you build a project with cube IDE the elf It's called elf executable I will show you in the presentation Keeps track of the global variables that we will be accessing so you need to specify the location of the elf file and It is located in the debug folder when you build the project you can see that In my example, which is called webinar example We have a bin and here we can see webinar example elf file here. So let's Specify the location of the executable, which I know if I have it in C webinar example in the debug folder and Now it will scan other folder and it will list the webinar example elf now it parsed the file and Listed all the variables that we can read and those that we could potentially write to so I will choose the voltage as I mentioned This is the global variable that I will be reading through ADC and I will be computing it I will I will show you in the code in the code. You can see that I have a in the while loop I have a polling method When the conversion is done, I will read the value the raw value and I will just simply Recalculate it into the real voltage So we have a voltage and I also have a soft Counter, this is a counter which is increased each time when a period of the PWM signal elapses, so let's check it as well and Okay, let's let's put there the name my variables Let's put there also my variables group and You can see it listed those two variables and It is enabled we can disable is to vessel but now we can enable It is already done. Okay, it seems we have at least We should be able To write the variables now, but not yet because we will need to add a right panel The right panel will be added into the my chart my chart and we will be able to through this panel We can access those variables and writing into them. So we can okay. We can connect in and out and Let's assign it to the chart and we can of course define the name as well So so we have this part and this part is related to writing To the memory of the microcontroller But what if we need to read in that case? We need the acquisition in so this is Actually the direction from MCU to Cube monitor. So we have it We will need to configure to the probe as well as the previous one Let's call it my probe in and Now what we will need to process those variables that we read We have a one output data and the second output error So let's interconnect the data to the processing and as well the data from the processing into the chart And we assign the processing to my variables It will list The variables we selected from the elf file as well. So we have it configured now So there we go. So we should already have the chart as well. So we can deploy You can see the green The green mark shows us that it is connected to my board. So this is nice. Otherwise, it would be collared to red So we can go directly to dashboard to see What we have This is just some basic layout, but if we want we can go here to Chart and change for example, if I want to start button and stop then chart and then my panel So if I deploy now, I change it just the order of those components We can go to dashboard and we can see we have start acquisition stop acquisition button. We have the chart and We can write using this. This is the panel that we defied here Here and using this panel we can write into The variables or directly into the memory So let's let's just start. Let's let's start that question. Let's see what what actually it looks like and Here we see That the soft counter. This is the soft counter Here here we can see I will just okay Soft counter is counting up When it reaches the 15 it is not zero this set two lines are not over overlapped so We can directly for example write in to soft counter. So what if I want to? zero this counter I Can put there zero and you can see that it was zeroed on the voltage. We can see the PWM signal so Well, this is something that I don't want to write to So we we can disable this and if you for example Would like to hide Not some data on the chart or a show it's very simple Okay, so we can close the dashboard and I will maybe I will just add one button so that we can we can Clear clear the chart. So I will assign it to the chart label, let's call it clear and Topic it's clear Donna and Now we can yes clear this clear the chart clear button is here so I will put it above the chart and Yes, if we deploy the blue circle just disappeared it means that it was successfully deployed and Yeah, we can simply Now we can clear the chart if we start acquisition. I can clear it. Okay