Help Me! về simulink và Fuzzy

Collapse
X
 
  • Giờ
  • Show
Clear All
new posts
  • qiang412
    Nhập môn đệ tử
    • Dec 2008
    • 4

    #1

    Help Me! về simulink và Fuzzy

    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
    Đệ tử 5 túi
    • Jan 2008
    • 96

    #2
    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.
    Last edited by minhsondaklak; 08-01-2010, 07:48 AM.
    minhsondaklak@yahoo.com

    Comment

    • chuot_bac
      Nhập môn đệ tử
      • Jul 2008
      • 3

      #3
      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!

      Comment

      • dung117
        Nhập môn đệ tử
        • Mar 2009
        • 2

        #4
        Nguyên văn bởi minhsondaklak View Post
        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

        Comment

        • beunin899
          Nhập môn đệ tử
          • May 2010
          • 5

          #5
          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

          Comment

          • lequangthanh
            Đệ tử 1 túi
            • Jun 2011
            • 22

            #6
            Nguyên văn bởi qiang412 View Post
            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!!!

            Comment

            Working...