Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Matlab help needed

  • 03-02-2016 1:50pm
    #1
    Registered Users, Registered Users 2 Posts: 5,374 ✭✭✭


    I'm not sure if this is the right place to post this but I'm wondering if someone who knows how to use Matlab can help. I have never used it before but need to complete this for a course assignment. I have attached the table showing the alarms required.

    Design an Effective Alarm Management system using MATLAB simulink for the following data.



    • Arrange the alarm into two categories like High importance and Warnings
    • Separately display the alarms that are important for the supervisor to monitor and to do corrective action.
    • Alarm triggered means it has to display 1.
    • Alarm not triggered means it has to display 0.
    • Assume some fault conditions.
    • Feed some sample values as the input parameters, run the simulation and provide the snapshots.
    • Provide snapshots before and after the Alarm trigger by feeding abnormal values.
    Hint:

    Open matlab.
    In command window type simulink and press enter.
    Now, in simulink window open a new simulink model.
    Using the following blocks
    ‘Constant’ block to feed the parameter values
    ‘Constant’ block to enter the cut off/ ref. value.
    ‘Relational operator block’ to compare the above two values.
    Display block to display the ALARM- 1 / 0.

    I am able to build the blocks but don't know how to set up the alarms as the relational operator block only compares 2 values and I need to compare a inputted parameter to an upper and lower limit so that a value that is too low or too high displays a 1 in the display block.
    Any help will be appreciated.


Comments

  • Registered Users, Registered Users 2 Posts: 1,257 ✭✭✭Pete67


    I'm not familiar with Mathlab but it should be possible to use two relational operator blocks, one comparing the constant value block to the high alarm and the other to the low alarm limit, and then use a logical OR function to combine the two to generate the alarm condition for display.


  • Registered Users, Registered Users 2 Posts: 5,374 ✭✭✭aido79


    Pete67 wrote: »
    I'm not familiar with Mathlab but it should be possible to use two relational operator blocks, one comparing the constant value block to the high alarm and the other to the low alarm limit, and then use a logical OR function to combine the two to generate the alarm condition for display.

    Thanks for the reply Pete. I'll give a go but I'm not sure if having two separate blocks for the parameter input will be acceptable.


Advertisement