-
Notifications
You must be signed in to change notification settings - Fork 6
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
Documentation of connect
#89
Comments
Also, no examples of using |
The code you post looks mostly correct, on master, you can use the using ControlSystemsBase, RobustAndOptimalControl
a = named_ss(ss(tf([1], [1, 0])), :a)
b = named_ss(ss(laglink(10^-1, 10^0.5)), :b)
c = named_ss(ss(leadlink(10^0, 10^1, 1.0)), :c)
connections = [b.y[1] => c.u[1], a.y[1] => b.u[1]]
# I want to be able to access my block diagram from any input and any output
yy = (:)
# also I want to be able to access from any input
uu = (:)
block_diagram = RobustAndOptimalControl.connect([a, b, c], connections, w1 = uu, z1 = yy)
# now use the block diagram for different purposes
plot(
bodeplot(block_diagram[:cy, :bu]),
bodeplot(block_diagram[:cy, :au]),
bodeplot(block_diagram[:by, :au]),
)
in the example, there is one output and one input both named |
The and here's an example using the
|
I realize its possible to make this work, and even work better. My issue was just that even though the information is maybe there, it would benefit the average person who wanted to try this out to explain the details of the code a bit more... I could suggest some docs, but right now I'm not sure what to write. |
help?> splitter
search: splitter splitext splitpath
No documentation found.
RobustAndOptimalControl.splitter is a Function.
# 2 methods for generic function "splitter":
[1] splitter(u::Symbol, n::Int64) in RobustAndOptimalControl at /Users/tallakt/.julia/packages/RobustAndOptimalControl/nd5G8/src/named_systems2.jl:470
[2] splitter(u::Symbol, n::Int64, timeevol) in RobustAndOptimalControl at /Users/tallakt/.julia/packages/RobustAndOptimalControl/nd5G8/src/named_systems2.jl:470 |
I don't know what aspects of the docs you find confusing, I of course know how the function works so it's hard for me to see what's not clear for someone. This tutorial goes into a bit more depth of creating a block diagram, does that help? |
This is an example of something that is quite confusing to me. It seems there are two namespaces, one for inputs and one for outputs? But I don't understand why I need to connect? Also, what is the first argument to This code has a lot going on, but the docs seem very sparse to explain whats going on between the lines. |
Do these additional instructions help? |
Hi. The connect functionality seems most useful, but after looking at the docs I was left very confused. After a little experimenting, I maybe figured out some things. I am asking to please elaborate the docs on this part to make it more understandable for an outsider.
An example;
The code above makes sense to me...
The text was updated successfully, but these errors were encountered: