question

Sharon L3 avatar image
0 Likes"
Sharon L3 asked Matthew Gillespie commented

create processor with code

I used the following code to create conveyor:

createinstance(node("/conveyor/StraightConveyor", library()),model());

How can I modify the code to create a processor? (I don't know how to check the path in library)

FlexSim 18.1.1
code
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

·
Sharon L3 avatar image
1 Like"
Sharon L3 answered Matthew Gillespie commented

got it.

createinstance(node("/fixedresources/Processor", library()),model());

· 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.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

You can also put a question mark (?) at the start of the path to search the library for an object with the specified name:

createinstance(library().find("?Processor"), model());
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.