Ðăng Nhập

View Full Version : Help Me! về simulink và Fuzzy


qiang412
07-01-2010, 03:27 PM
Mình đang làm về điều khiển mờ, tuy nhiên khi mô phỏng trên simulink thì sảy ra lỗi, không thể tiếp tục được
thông báo lỗi như sau:
"Error in 'temp/Fuzzy Logic Controller': Parameter 'temp' cannot be evaluated. MATLAB error message: Error, 'temp' is currently in use by a simulation and can not be accessed programmatically"

sau khi thực hiện Export file fuzzy sang Workspace thì lại báo lỗi sau:
error 1:
"MinMax does not accept 'boolean' signals. The input and output signal(s) of 'temp/Fuzzy Logic Controller/FIS Wizard/Defuzzification1/Max (COA)' must be one of the MATLAB 'uint8', 'uint16', 'uint32', 'int8', 'int16', 'int32', 'single', or 'double' data types, or one of the Fixed-point data types"

error 2:
"An error occurred while propagating data type 'boolean' from 'temp/Fuzzy Logic Controller/FIS Wizard/Defuzzification1/Zero Strength (COA)', output port 1'
em làm một ứng dụng nhỏ để thừ nhưng không được, file như sau:
http://www.mediafire.com/?zzgeddhhtuj
bác nào đã làm về phần này giúp em với, thanks nhiều

minhsondaklak
07-01-2010, 05:23 PM
Cái này khối anh bị, xử thế này:

- Nếu dùng khối Fuzzy Logic Controller thì nhập tham số: FIS file or structure = ‘name’

- Nếu dùng khối Fuzzy Logic Controller With Ruleviewer thì nhập: FIS Matrix = readfis('name')

Với name là tên file mô hình mờ của bạn, lưu ý dấu nháy đơn.

chuot_bac
26-04-2010, 07:57 AM
Chán quá, tui cũng gặp lỗi như trên nhưng chưa khắc phục dc, ai có thể giúp ko?thank!

dung117
15-05-2010, 12:27 AM
Cái này khối anh bị, xử thế này:

- Nếu dùng khối Fuzzy Logic Controller thì nhập tham số: FIS file or structure = ‘name’

- Nếu dùng khối Fuzzy Logic Controller With Ruleviewer thì nhập: FIS Matrix = readfis('name')

Với name là tên file mô hình mờ của bạn, lưu ý dấu nháy đơn.

Mình đã thử viết lại như bạn nói mà vẫn báo lỗi. Chưa hiểu tại sao: giải thích hộ mình nhá.thanks

beunin899
24-11-2010, 12:10 AM
bai cua ban dung la phai de :'temp'
ban lam thu di
se ko co loi
minh da thu va no chay ok
chuc ban may man nhe

lequangthanh
11-06-2011, 12:54 AM
Mình đang làm về điều khiển mờ, tuy nhiên khi mô phỏng trên simulink thì sảy ra lỗi, không thể tiếp tục được
thông báo lỗi như sau:
"Error in 'temp/Fuzzy Logic Controller': Parameter 'temp' cannot be evaluated. MATLAB error message: Error, 'temp' is currently in use by a simulation and can not be accessed programmatically"

sau khi thực hiện Export file fuzzy sang Workspace thì lại báo lỗi sau:
error 1:
"MinMax does not accept 'boolean' signals. The input and output signal(s) of 'temp/Fuzzy Logic Controller/FIS Wizard/Defuzzification1/Max (COA)' must be one of the MATLAB 'uint8', 'uint16', 'uint32', 'int8', 'int16', 'int32', 'single', or 'double' data types, or one of the Fixed-point data types"

error 2:
"An error occurred while propagating data type 'boolean' from 'temp/Fuzzy Logic Controller/FIS Wizard/Defuzzification1/Zero Strength (COA)', output port 1'
em làm một ứng dụng nhỏ để thừ nhưng không được, file như sau:
http://www.mediafire.com/?zzgeddhhtuj
bác nào đã làm về phần này giúp em với, thanks nhiều
'temp' is currently in use by a simulation and can not be accessed programmatically" bạn đã đặt tên hàm liên thuộc trùng với tên chương trình rồi
tín hiệu vào cảu bạn có kiểu dữ liệu boolean,không thê dùng phương pháp giải mờ MinMax đươc,đối với các kiểu dữ liệu này bạn phải dùng mô hình sugeno thôi,không dung mô hình mamdani được đâu!!!