If you are in a hurry and need a quick & square wave signal between 50 kHz and 300 MHz the NanoVNA can come to the rescue. Just set the centre frequency of the stimulus at the value you need and a span of 0 Hz. The signal is then available at port 1.
Be very careful not to overload the output or feed a voltage/signal to it, else the NanoVNA would be damaged! If the procedure and implications are unclear to you, do not try it.
Why does it not work all the way to 900 or 1500 MHz? Because the NanoVNA(-H) uses some clever tricks using harmonics at frequencies above 300 MHz, but you always get the basic signal 0-300 MHz at port 1.