Cancel
Showing results for 
Search instead for 
Did you mean: 

an error in method, I don't know where :(

Hi All, 

 

could you please let me know what have I done wrong, that Tecnomatix Plant Simulation displays an error? 

I am using V14 currently, code below: 

 

var i:integer
var machineSmiley Surprisedbject
for i := 1 to table_data.yDim loop
machine:=table_data["Machine",i]
machine.procTime:=
table_data["processing_time",i]
machine.recoveryTime:=
table_data["Recovery_time",i]
machine.failures.failure1.availability:=
table_data["Availability",i]
machine.failures.failure1.MTTR:=
table_data["MTTR",i]
machine.failures.failure1.stream:=
table_data["stream",i]
next

 

My example in an attachment. 

 

Thanks in advance for hints. 

2 REPLIES

Re: an error in method, I don't know where :(

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
just delete

machine.failures.failure1.stream:=table_data["stream",i]

You don't need to specify the stream in version 14.
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: an error in method, I don't know where :(

Thank you! I was hoping for yor response. Smiley Happy As this example stems from your book, thanks again.