question

Shi Z avatar image
0 Likes"
Shi Z asked Shi Z commented

Create travel task error

Hello, I want use script to control the TaskExecuter to load a specific item.

In this model, 5 items, named "a","b","c","d","e",arrive at beginning. Then I want to control the TaskExecuter1 to load "a". But it has an error.

I try to use profiletasksequence() function to look for the cause, but failed.

There is my test model.te-test.fsm

Thank you!

FlexSim 19.0.0
task executer
1.jpg (148.4 KiB)
te-test.fsm (36.4 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

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Shi Z commented

Because the command createtravelloadtask is set as deprecated, it doesn't support the simplified "find" method. The command was created for the older node(..) command. You must insert a whole path to the object not just the unique name.

createtravelloadtask (Model.find("TaskExecuter1"), 
		      Model.find("_10"), 		      
		      Model.find("/Queue1/a"),
		      1, 
                      PREEMPT_NOT);
· 1
5 |100000

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

Shi Z avatar image Shi Z commented ·

oh, exactly!

Thank you for your help!

0 Likes 0 ·

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.