question

Stefan99 avatar image
0 Likes"
Stefan99 asked Stefan99 commented

How to animate my own elevator with BasicTe

I have my own elevator and I want to use BasicTe c to make it work similar to an ASRS but it doesn't work, first I went into animation and created the components .1724744595099.png

then I created the kinematics for the movements here 1724744666831.png

and I tend to think that the problem is in the motion creation code, which looks like this 1724744784498.png

I would really appreciate it if you could help me to make it work, I'll leave the model attached for you to look over.Model_elevator.fsm

FlexSim 24.2.0
basicte
1724744595099.png (161.4 KiB)
1724744666831.png (56.0 KiB)
1724744784498.png (100.2 KiB)
model-elevator.fsm (880.7 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
0 Likes"
Felix Möhlmann answered Stefan99 commented

The nodes you are initializing the kinematics in do not exist. You can use "assert" to make that they do (they will get created if they don't).

treenode axaKin = axa.attrs.assert("kinematic");
treenode platanKin = platan.attrs.assert("kinematic");

In the On Draw you are going down one layer too far and refer to the "MySurrogate" object instead of "platan".

And the offset you are given in the On Begin Offset trigger is relative to the location of the BasicTE. The coordinates of the surrogates you read in the code are relative to their parent object. You need apply a further offset to them.

· 5
5 |100000

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

Stefan99 avatar image Stefan99 commented ·

I only managed that reference "the turntable is not ok, it's coming out of the elevator, how can I do that?1724755121922.png

and the box is not placed on the "platan"

0 Likes 0 ·
1724755121922.png (210.1 KiB)
Felix Möhlmann avatar image Felix Möhlmann Stefan99 commented ·

Did you fix the On Draw trigger? It should only be a single "first" in line 7.

1724754689875.png

model-elevator_1.fsm

0 Likes 0 ·
1724754689875.png (5.1 KiB)
model-elevator-1.fsm (880.9 KiB)
Stefan99 avatar image Stefan99 Felix Möhlmann commented ·

Thank you very much, it works exactly as I want, it just doesn't put the box on the turntable, how can I do this?

0 Likes 0 ·
Show more comments