I think that a simple answer is a ramping up/down waveform that looks like the teeth of a saw side on
easy enough to code
Saw = saw + ramp
if Saw >= max then ramp = -RampRate
if saw <= min then ramp = RampRate
Where RampRate is a +ve number that determines the slope based on the execution repeat rate
This is the basic version if the rate must be very accurate then ask for more info
Yes, it is a special case, but the most common example of where a sawtooth is used would be in the scanning of the electron beam in a CRT... You want it to move smoothly across from left to right, then return as rapidly as possible to get ready for the next scan.
I like the part that shows how the harmonics are summed to form the saw tooth.
So why did the OP bother to ask?
Are saw tooth wave form achieveable in real systems?
What does this mean for real systems?
If not then why are they so important?
This is the first question I have seen about saw tooth wave forms on this forum yet I get a question about saw tooth motion proviles about once every 2 months.