question

ram prasad avatar image
0 Likes"
ram prasad asked ram prasad commented

issue with experimenter

rfidproject.fsm

when i run the experimenter, it is not considering trigger logic given in processor.screenshot-4143.png

it just runs the experiment for one hour and i get same output for all scenarios.i have parameters and assigned some values to them and set a scenario for each of parameter level so i need to get a different output for scenarios.

can someone help what needs to be done?

FlexSim 22.0.1
experimenterprocessortriggers
screenshot-4143.png (10.2 KiB)
rfidproject.fsm (184.6 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered ram prasad commented

"stop()" doesn't work with the experimenter or optimizer. Use "endreplication(1)" instead. Depending on which trigger you are using, you might have to send a delayed message and then run the command in the message trigger, instead of directly in the first trigger.

(endreplication deletes all pending events, if the trigger it is called in creates a new event, the replication won't stop)

1650375169089.png

1650375196826.png


1650375169089.png (4.8 KiB)
1650375196826.png (12.1 KiB)
· 9
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

ram prasad avatar image ram prasad commented ·

thanks for the reply.

rfidproject.fsm

i don't know where to add the codes. can you please add required code in this file. i will check and learn.

thanks in advance

0 Likes 0 ·
rfidproject.fsm (184.6 KiB)
Felix Möhlmann avatar image Felix Möhlmann ram prasad commented ·

The "senddelayedmessage" you use instead of the "stop()" in the On Process Finish trigger. And the "endreplication(1)" in the "On Message" trigger (as you can actually see by the name of the tab in the screenshot).

1650382808525.png

rfidproject_1.fsm

0 Likes 0 ·
1650382808525.png (26.3 KiB)
rfidproject-1.fsm (185.0 KiB)
ram prasad avatar image ram prasad Felix Möhlmann commented ·

thanks for the help.

i expect results in this values


screenshot-2022-04-20-115122.jpg


but the result which i get in simulation is of this values.

screenshot-2022-04-20-115512.jpg

this is the trigger code i used.

if(uniform(0,1,getstream(current)) < Model.parameters.conveyorspeed * Model.parameters.tagposition * Model.parameters.materials)

{

senddelayedmessage(current, 0, current);

}

is there any problem with random number generation as scenario stops with single product read?


what i need to do or correct to obtain some valid results?

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.