wes_sin
March 12, 2007 11:46:55
Hi all, I am trying to understand the copydata DOP. I've attached a simple test, it throws no error but it isn't working. What I want to do with the setup is to position a few RBDs up in the y-direction according to the $OBJID, before the simulation begins.
Can someone tell me what is wrong with the setup, please?
I know I don't need copydata and there are a few trivial nodes but it is just for learning :roll:
Wesley
wes_sin
March 13, 2007 00:46:18
Ok, I can get it work now. I should connect the the position Dop in the data field of the copydata dop instead of appending it under the rbdglueobject. Then reference the copydata dop variable by stamp() in that positon dop.
So, is it correct to say variables created by copydata should be used in a data dop, not in a object dop?
Wesley
mtucker
March 13, 2007 12:32:04
Yes, that is correct. CopyData does stamping of its data inputs, not of its object inputs. It applies the stamped data to the input objects. In fact, usually it is the objects that drive the stamping variables that are used in the data DOPs.
Mark