Generating a 0-40 ohm signal

To my knowledge, there is no such thing as a 'x Ohm' signal. Volts, Amps, pulses, frequency, logic, but not Ohms.

Try to re-phrase what it is that you want.