You can't dynamically name Waits?
travis
Posts: 180
I'm trying to do something like this:
Do I need to make some elaborate If logic that says
If data.device.port = 1
wait 50 'myWaits-1'
etc...
data_event [devArray] //more than one device can trigger this data_event i = data.device.port //i guess i might have to turn i from an int to a char here WAIT 50 "'myWaits-',i" { do thangs }
Do I need to make some elaborate If logic that says
If data.device.port = 1
wait 50 'myWaits-1'
etc...
0
Comments
It'd be a little easier to grab the port infor as you suggested and just line them up sequentially with your timelines.
If you're only trying to do a few things that only have to happen once, then the wait might be the best way to go.
Yes, and because they are created at compile time, using a variable to name one means the compiler has no idea how many to create since the variable could change. Creating an infinite number of any kind of resource is bound to crash something somewhere .
It's a shame all NetLinx dynamic allocation is "under the hood." This is one of those cases where being able to call a constructor would be handy.