# How to obtain the steady state response of the sampled periodic signal data?

Below the green plot Vin is 5Hz sine voltage signal from a function generator output sampled at 12kHz sampling rate: The blue plot Vout is the processed/filtered data by using the following code in Python:

#Transfer function
fc = 1 # roll off freq
wc = 2*numpy.pi*fc
sys = signal.lti(, [1/wc, 1])  # transfer function

#Output in time (Response of the filter to the input)
tout, v_out, x = signal.lsim(sys, v_in, time)  # output


And here is Vout in a more detailed view: Basically I define a low pass filter transfer function using: sys = signal.lti([ 1 ], [1/wc, 1]).

Then the Vout is obtained from tout, v_out, x = signal.lsim(sys, v_in, time)

So Vout is the filtered response of Vin.

If you compare the Vin and Vout in above plots, Vout looks like it is processed like in Laplace domain, that is to say Vout looks like it is both the transient and steady state response of Vin.

(This problem seen more obvious for a DC input; the output Vout becomes like a transient response of an RC filter)

Having the sampled data like in green plot Vin, how can we obtain a steady sate response of such filter? Or at least close to steady state.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8951743,"math_prob":0.96325016,"size":1135,"snap":"2021-21-2021-25","text_gpt3_token_len":293,"char_repetition_ratio":0.12997347,"word_repetition_ratio":0.039408866,"special_character_ratio":0.25286344,"punctuation_ratio":0.125,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9526914,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-15T19:08:06Z\",\"WARC-Record-ID\":\"<urn:uuid:dde97fe5-f752-46d7-b99e-9a5eb8e79962>\",\"Content-Length\":\"156335\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4502732d-0f5b-4a8a-8653-e50477d0ff8a>\",\"WARC-Concurrent-To\":\"<urn:uuid:d5bfe091-f3ea-4e47-b584-36488e5b4a80>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://dsp.stackexchange.com/questions/55228/how-to-obtain-the-steady-state-response-of-the-sampled-periodic-signal-data\",\"WARC-Payload-Digest\":\"sha1:EVMYEIHUXTEQSPLG2FTQCADTNYKNRBWG\",\"WARC-Block-Digest\":\"sha1:3GGB4L4X35UUYFVGZWVDE5SQ362P4UEK\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623487621519.32_warc_CC-MAIN-20210615180356-20210615210356-00343.warc.gz\"}"}