You are generating a 10 KHz sawtooth signal with a sampling frequency of 30 KHz. This means that you only get 3 sample values per period. If used as a carrier for PWM, you’d only be able to generate 3 distinct duty cycles. This will become more obvious if you switch the curve type to ‘discrete’ in the scope (see here).
One obvious solution is to increase the sample rate to e.g. 300 KHz. However, for PWM generation, we strongly recommend to use the PWM blocks from the RT Box library. With these blocks, the carrier signal is generated on the FPGA with a resolution of 6.67ns (for RT Box 2/3). If you need more control over the generated PWM pulse, use the “PWM out (Variable)” block.
I’d recommend to watch the tutorial videos on the RT Box.