Simulink - Excel

11 ビュー (過去 30 日間)
Tiago
Tiago 2011 年 4 月 27 日
コメント済み: Sajjad Khan 2022 年 2 月 10 日
Hello
Does anyone know if it's possible to run an excel file in Simulink? I have a column with a variable in excel, and don´t know if there is a block that I can get in simulink to run this variable.
Regards

回答 (6 件)

Guy Rouleau
Guy Rouleau 2011 年 4 月 28 日
編集済み: John Kelly 2014 年 8 月 22 日
The Signal Builder block allows you to import a signal directly from Excel:

Arnaud Miege
Arnaud Miege 2011 年 4 月 27 日
What do you mean "run this variable" and why do you need to do that? Depending on what you want to do, it might easier to just import the data in MATLAB using xlsread and then use the From Workspace block to use the variable in the Simulink model.
HTH,
Arnaud
  2 件のコメント
Pat
Pat 2011 年 9 月 5 日
i have a variable b which consists of values [ 2 3 4].if i enter b to pass these values to fuzzy logic controller as input i get an error.can any one help
the error is 'expression b does not evaluate to valid FIS'
Sajjad Khan
Sajjad Khan 2022 年 2 月 10 日
I have been facing the same problem. Could some one explain it?

サインインしてコメントする。


Tiago
Tiago 2011 年 4 月 27 日
Thanks to booth for your replay.
I import to workspace. I see the block Arnaud said.
Now... What I put in data in block parameters?
  9 件のコメント
Tiago
Tiago 2011 年 4 月 27 日
not understand..
In simulink I put per example:
simin x constant = simout ??
Arnaud Miege
Arnaud Miege 2011 年 4 月 28 日
Instead of simin, just enter the name of your variable, i.e. 'data' in your case (without the quotes) and that's all there is to it!!

サインインしてコメントする。


Tiago
Tiago 2011 年 4 月 28 日
Thanks all for your help. I´m a noob in Simulink, it´s my first contact with this software, I need to go step by step if not I get lost.
In Simulink I put per example simin x constant = simout, is right that part?
  3 件のコメント
Tiago
Tiago 2011 年 4 月 28 日
I don´t now if the correct way is simin x constant. I have one constant and one file in excel with one variable with time. And want multiply this variable by the constant over time.
Arnaud Miege
Arnaud Miege 2011 年 5 月 3 日
Did you have a look at the tutorials I suggested? You really need to get up to speed with the basics of Simulink. Have a look at the following snapshot:
https://picasaweb.google.com/lh/photo/e5izz3VrVIYHyZnnq3oc6A?feat=directlink

サインインしてコメントする。


Tiago
Tiago 2011 年 5 月 2 日
Need help please ^^

Tiago
Tiago 2011 年 6 月 1 日
Hello
Sorry don´t say more nothing but I was out of office in last days. In this moment I still don´t know how to solve this problem.
I understand for you guys it is very simple, but for me it is a hell :)
For example I have in workspace: Time 1 2 3 4 5 Values 5 8 9 4 2
And need multiplicate this values with a constant
What blocks I need to use to make that operation?
Best Regards
  1 件のコメント
Arnaud Miege
Arnaud Miege 2011 年 6 月 1 日
Again, have a look at the snapshot I mentioned in my earlier comments, read through the documentation and look at the tutorials I pointed you towards. This is really basic stuff. Failing that, you need to go for a training course:
http://www.mathworks.co.uk/services/training/courses/SLBE_1.html

サインインしてコメントする。

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by