Hi-
I am using a fixed interval conveyor, and I want to be able to set the interval on model startup, based on a value in a table (read from Excel).
I used the picker to select that node, and got the node. How can I change the value?
node("/ConveyorSystem>variables/conveyorTypes/ConveyorType2/fixedIntervalPattern/1", model());
For other conveyor attributes like speed the picker can also give you a pointer to the table with the data and you can change that:
double dSpeed = 4; settablenum(getvarnode(node("ConveyorSystem", model()), "conveyorTypes"), 2, 16, dSpeed);
Any suggestions?
Thanks
Craig