LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Object requires access to data of all objects

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?

0 Kudos
Message 1 of 5
(2,501 Views)

Why don't you pass the index instead of individual components?

0 Kudos
Message 2 of 5
(2,484 Views)

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.

0 Kudos
Message 3 of 5
(2,443 Views)

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.

0 Kudos
Message 4 of 5
(2,404 Views)

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.

0 Kudos
Message 5 of 5
(2,390 Views)