Community Profile

photo

Krishna Akella


MathWorks

38 total contributions since 2018

All comments and opinions expressed here are mine alone and do not necessarily reflect those of my employers, past or present.

Krishna Akella's Badges

  • 3 Month Streak
  • Knowledgeable Level 2
  • Revival Level 3
  • First Answer

View details...

Contributions in
View by

Answered
How to create bus object within MATLAB discrete-event system, without having to load it in workspace?
Hi Kar, Are you looking for something like this? https://www.mathworks.com/help/simulink/ug/create-bus-objects-programmaticall...

1 day ago | 0

| accepted

Answered
Simevents: change the server capacity during simulation
Hi Kar, You are correct, Entity Server does not allow for changing the capacity at run-time. Resource Pool block allows changin...

1 day ago | 0

| accepted

Answered
Is there more documentation or examples on SimEvents observer?
Hi Kar, There are a couple of examples that illustrate the use of SimEvents observer. If you are using R2017b or later, there i...

2 days ago | 0

| accepted

Answered
Simevents discrete-event system documentation does not include some of variable-input syntaxes
Hi Kar, Unfortunately, to my knowledge, there isn't an easy way to infer the optional arguments. However, the way I infer the o...

2 days ago | 0

| accepted

Answered
I am working on queueing using Simulink Sim Events, and I need help on adding an attribute to the events.
Hi Biplav, Have you tried using SimEvents blocks for this? With simEvents you can use an 'Entity Generator' block and a 'Entity...

2 days ago | 1

| accepted

Answered
SimEvents: Is it possible to generate an event-based entity with specific attribute values defined in the caller block's event action?
Hi Kar, Unfortunately, the entity generator's 'Generate' event action cannot use the values from the generation triggering enti...

2 days ago | 0

| accepted

Answered
On Off switch simulink
Hi VM, If I understand correctly, you are trying to model a machine going on a break for scheduled maintenance or some thing li...

1 month ago | 0

Answered
Conveyor Modelling - material handling
Hi Michael, That's a very interesting problem! You want to model "continous" material instead of lumped material, flowing on a ...

2 months ago | 0

Answered
How can I trigger an event in a Discrete-Event Chart based on the continous signal value?
Hi Nemanja, Have you tried using 'Message Send' and 'Message Receive' blocks? These blocks can be used to interface continuous ...

3 months ago | 0

| accepted

Answered
Resource acquire block programmatic use
Hi Marco, To know the BlockType of any block, add the block to a model and select it. Then in MATLAB window, type the following...

3 months ago | 1

| accepted

Answered
Non-constant Batch Size
Hi Alex, In an entity generator you can set the 'Time source' to be 'MATLAB action' and then manipulate the output value 'dt' (...

4 months ago | 0

Answered
I need an entity gate that I can open and close based on an entity attribute.
Hi Andrew, The easiest way to do this is to use the 'Simulink Function' block and call the Simulink function from an event acti...

4 months ago | 0

| accepted

Answered
how to set up a entity gate to open and close based on situations encountered?
Hi Rita, I assume 'A', 'B' and 'C' are SimEvents blocks. In which case, you can use the statistics signals from 'A', 'B' and 'C...

4 months ago | 0

Answered
SimEvents and Exporting Complete Event Information
Hi Noel, Sure, you can. Since its event data, I assume you want to export the information as a timeseries. You can use the simu...

5 months ago | 1

| accepted

Answered
simEvents cache model and simulation
Hi Luis, There is no example that I know of which simulates the behavior of an MMU. I think using SimEvents in conjunction with...

5 months ago | 0

| accepted

Answered
How can I pass in an rng(seed) into a call to sim(...), as below (SimEvents model):
Hi Elliot, As an alternative to adding coder.extrinsic('rand') to all the blocks, one can also setup a global simulink function...

6 months ago | 0

Answered
How can I pass in an rng(seed) into a call to sim(...), as below (SimEvents model):
Hi Elliot, You are correct! Your solution works correctly! I have identified what was happening and here is what is happening:...

6 months ago | 0

Answered
Set multiple attributes in entity generator block
Hi Marco, The different attribute names and their initial values are delimited by the pipe symbol. For example if you want to a...

6 months ago | 0

| accepted

Answered
Building Simevents model with Matlab code. Setting the output switch 'number of ports' parameter.
Hi Marco, If you are trying to set the 'Number of output ports', have you tried the following instead: add_block('built-in/ent...

7 months ago | 0

| accepted

Answered
How can I pass in an rng(seed) into a call to sim(...), as below (SimEvents model):
Hi Elliot, I am glad you were able to solve your problem. I am trying to understand your solution and I tried adding the code ...

7 months ago | 0

Answered
How can I pass in an rng(seed) into a call to sim(...), as below (SimEvents model):
Hi Elliot, It seems like the random number generator is unique to each block and the default seed is 0. Setting rng(5) on the c...

7 months ago | 0

Answered
Can A Multicast Sender send to a tag which is dynamically determined from an attribute in the entity which it is sending?
Hi Elliot, I think I don't understand your question well. I have attached a model based on what I understood. Where entity.type...

7 months ago | 0

Answered
Entity generation in SimEvents
Hi Summyia, A persistent variable persists its value between function calls. 'isempty(SEQ)' returns 1 if SEQ is an empty array ...

7 months ago | 0

Answered
Stochastic SimEvents simulation for servers
Hi Etienne, Simevents ships with many examples. You can find them by running the command doc at your MATLAB prompt. Then select...

7 months ago | 0

Answered
What does this code mean?
Hi Navya, In the Entity Generator, Entity Generation tab, dt is the amount of time the generator has to wait before it generate...

7 months ago | 0

Answered
How Replicate module can generate variable number of replications using a signal in SimEvents?
Hi Summyia, Have you tried something along the following lines: Call a simulink function from an event action, just before the...

7 months ago | 0

Answered
SimEvents Conveyor belt with entities at different speeds
Hi Etienne, Thanks for your question! The source code for the Conveyor block has been made available for anyone to read/modify ...

7 months ago | 0

Answered
Block Error: Undefined function or variable. The first assignment to a local variable determines its class.
Hi Striker121, You are getting the error because the variable 'ServerStore' is not declared in the scope of the event action. A...

7 months ago | 0

Answered
Can A Multicast Sender send to a tag which is dynamically determined from an attribute in the entity which it is sending?
Hi Elliot, I don't think thats possible. The alternative would be to use an input switch and route the entity to an appropriate...

7 months ago | 0

Answered
Simevents: Composite Entities across Referenced Model Inports
Hi Thomas, As far as I know, until R2018b, entities cannot cross a model boundary. - Krishna

7 months ago | 1

Load more