Hi, in simulink Im trying to create a simple on off switch for a machine (modelled as an enitity server). with the switch being on and off at set points in the simulation ie off for 5 mins when the time is 12:30, 14:30, 15:30.
Im currently using 2 constant blocks 1 and 0 for on and off, fed into an 'if block', which is connected to the entity server.
I cannot seem to figure out how to reference time in the model. I have tried using the clock block as an input to the entity server, however as i am new to matlab my coding skills arent great and cannot figure out how to reference my own attributes.
I have also tried using matlab own defined functions, but again failed to correctly reference time and somehow connect them to the on/off constant blocks.
Could someone give me a hint to the best approach? and a way in which to correctly reference time?
many thanks for your help!