ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

indexing bundle

Solved!
Go to solution

Included is part of my main VI. 

 

I am trying to use a bundle to keep track of the failed tests for a pc board.  When a test fails, the test number is input into the numeric input of the case structure. 

 

This is how I need this to work:  When a test fails, the boolean input is true, and the numeric input is the test number that failed.  I am using the property node to add one to the local variable, which keeps a running total of the number of time each test failed.  I would like the bundle to update the value of the element, corresponding to the test that failed, but it updates all values, changing all values to 0 except for the test that failed. 

 

I think there is a way to get rid of the inside case structure (and the local variables) and just index the bundle with the top connection. 

 

I guess if I knew how to change the numeric input to a cluster, I could input it into the top of the bundle?

 

Thanks for the help.




metzler CLAD
0 Kudos
Message 1 of 5
(3,162 Views)
I created a cluster of your controls and then update them based on the input from the main vi. See the attached code.
Tim
GHSP
Message 2 of 5
(3,151 Views)
You will need to keep a shift register for the output cluster so that you can feed it back in on the next iteration.
Tim
GHSP
0 Kudos
Message 3 of 5
(3,150 Views)
Solution
Accepted by metzler
Here is a version that does not require a shift register. You will have to initilize this vi when you want to restart counting.
Tim
GHSP
Message 4 of 5
(3,144 Views)

Great, it works nice.  I guess I don't have enough experience with bundles.

 

Thanks aeastet for the thorough and prompt reply.




metzler CLAD
0 Kudos
Message 5 of 5
(3,121 Views)