Function of time block #57
Answered
by
milanofthe
RemDelaporteMathurin
asked this question in
Q&A
-
|
Hi all! I know we have the |
Beta Was this translation helpful? Give feedback.
Answered by
milanofthe
Jul 30, 2025
Replies: 1 comment 1 reply
-
|
@RemDelaporteMathurin thats the import numpy as np
from pathsim.blocks import Source
def src_fnc(t):
return np.sin(t)
src = Source(src_fnc) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RemDelaporteMathurin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@RemDelaporteMathurin thats the
Sourceblock. The function it takes as an argument is time dependent and will be evaluated when theBlock.updatemethod is called. For example a sine would be defined like this: