Hello and welcome to this How-To Video about Debugging Tools for Machine Expert - HVAC.
We will start with a Breakpoint that stops the program at the selected line. To run the program, we have already started the simulator.
After selecting the line where we want to set our Breakpoint, we click on the Button "Set/Remove a breakpoint".
Now we can run the Program with the Button "Run"
Now we see in the Output under Debug, that the program has stopped at the Breakpoint.
The next feature is the Trigger which I will show you in a Network Program.
First, we select the Network where we want to set our trigger. Then we add a trigger with the Button "Add/remove text trigger".
After the Trigger window has opened, we can add via a right-click -> add to debug window the desired Variable to the Trigger window.
In the trigger window, you can see how many times the program has gone through the specific variable instance or line of code.
Besides that, you can also observe the actual value of the selected variable in that point of the code.
If we now change the value of the variable in the Simulator, we can see that the value is also changing in the trigger.
Besides the normal trigger, we have a graphic trigger which is a graphic visualization of the trigger similar to the oscilloscope
First, we select the network where we want so to set our graphic trigger.
We can start the graphic trigger with a click on the button "Add/remove graphic trigger"
After the Trigger window has opened, we can add via a right-click -> add to debug window the desired Variable to the Trigger window.
Here we can select the desired amount of cycles we want to monitor.
To start the graphic trigger, we click on the Button "Start graphic trace".
To show you some changes, we will change the value of the variable with the Simulator.
Now we can see the variable changes related to this specific point in the program over the last 200 cycles.
The next topic is the Watch, which is useful to read the values of variables.
To start the watch, we can click on the Button "Watch" or via right-click on the Variable.
Now we can select the desired variable and select the "Watch".
With the watch window, we can observe the value of the variable, but we don't know to which point of the code it is related.
The watch window is asynchronous with respect to the code execution.
That means it might give you a value at the end of the Timed task or in between the Background Task execution,
which could be interrupted by a serial line read.
Now we come to the oscilloscope.
It’s the same as for the other variables, we can add the variable via right-click to the oscilloscope.
To center the scale on the variable we can click on the button "Show all values".
In the oscilloscope, we can also compare different values with each other.
Just add another value to the oscilloscope and click on the Button "Vertical split" to show both lines next to each other.
We can pause the oscilloscope every time we want to analyze the Oscilloscope.
In the oscilloscope, we have a few tools to analyze the recordings.
First, we can move forward and backward on the timeline.
We can increase and reduce the horizontal size and the vertical size of the lines.
To analyze the exact value of the two variables, we can use measure bars.
Just click on the Button "Measure Bar"
If we move the Bars along the axis, we get the values where the bars meet the line of the values.
The value for each axis and variable is displayed in this part.
We have also export functions to save the track data on files.
Just click on this button to save the files to your computer.
Here we can choose between the .OSCX and the .OSC file format.
It’s also possible to directly print the graphic.
Also the oscilloscope is asynchronous with respect to the code execution, as the watch.
In Commissioning it is also possible to display values of variables on the Watch and the Oscilloscope.
Even in the Installer, we have with the Watch and the Oscilloscope a possibility to observe the Variables directly on the Device.