I am making a power supply and am using a lm338k to regulate a variable voltage from 2 to 30 volts. I also want to put in current limiting, preferably variable, up to 5 amps since thats what the lm338k is rated at. Since the resistances in the current limiting circuit need to vary when the voltage varies i want to limit the current before the voltage regulator where the voltage stays constant. I was wondering if limiting the current before the regulator will cause a short circuit on the outputs to allow more than 5 amps to flow through the voltage regulator. I don't see how it can since the regulator drawing an excess of 5 amps will still cause the transistor in the current limiter to shut down which will keep the regulator safe, but ive definitely been wrong before.