-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c2d not working with method input #873
Comments
This appears to work for me julia> G = tf(1.0, [1, 1])
TransferFunction{Continuous, ControlSystemsBase.SisoRational{Float64}}
1.0
----------
1.0s + 1.0
Continuous-time transfer function model
julia> c2d(G, 0.1, :zoh)
TransferFunction{Discrete{Float64}, ControlSystemsBase.SisoRational{Float64}}
0.09516258196404037
-------------------------
1.0z - 0.9048374180359594
Sample Time: 0.1 (seconds)
Discrete-time transfer function model Are you trying to use |
On a side note, are you the user handle |
Yes, I am currently busy writing some test code, but it has been a while since I used Julia. And I was indeed using |
You might have been confused by the fact that the sysd = c2d(sys::AbstractStateSpace{<:Continuous}, Ts, method=:zoh; w_prewarp=0)
Gd = c2d(G::TransferFunction{<:Continuous}, Ts, method=:zoh) Note the difference between the two method signatures, the |
When I attempt to specify which discretization method I want to use, for example:
Gd = c2d(G::TransferFunction{<:Continuous}, Ts, method=:zoh)
I get the error:
c2d_x0map(::AbstractStateSpace{<:Continuous}, ::Real) got unsupported keyword argument "method"
I am using Julia 1.9.3 and just installed ControlSystems.jl today.
I also get the same error in Julia 1.8.5
The text was updated successfully, but these errors were encountered: