05-20-2014 12:18 PM
I've got an array of objects that I typically deal with one at a time.
However there are isntances where in order to perform an action on an object, I need the data of all objects.
Following is how I am currently having to do this. Is this the best way?
05-20-2014 12:58 PM
Why don't you pass the index instead of individual components?
05-21-2014 12:00 AM
I suspect your design or abstraction can be better.
Can you share some more details like what is the operation your method is doing on a single object which needs array of objects as an input?
Thanks.
05-23-2014 05:12 AM
This is an array of objects of axes on a PXI chassis. If I update a limit switch status on one axis, the PXI chassis needs the information from all of the axes in order to update the switches.
05-23-2014 07:18 AM
The way I've been trying this is each Axis has a reference to an SEQ holding a Chassis object.
When the axis does something that needs the chassis to update, it fires a user event with the relevant Chassis object as the data.