LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passing no data to an array in a case structure

I want to pass data to an array based on a certain condition. I am using a case structure. When the condition is met, then the data from the array is passed through. When is false, I use the array constant containing nothing to send to the array. The problem with this is that even though no data is sent to the array in the false case, there is still room made for the data in the array although it contains nothing. Is there an way for me to send data for the array in the true case, yet not send anything at all in the false case.
0 Kudos
Message 1 of 4
(2,716 Views)

Without seeing any code, I'm guessing you'll want to use a shift register.  Use a Build Array in the True case to add new data to your existing array, but pass the data through in the False case.  You can take a look at the LabVIEW Help for Shift Registers to learn more information.  If you're still having trouble, attach a VI that demonstrates the problem and we can probably offer more specific advice.

-D

Message 2 of 4
(2,709 Views)
I have attached a vi here. The array I am interested is called Array.
0 Kudos
Message 3 of 4
(2,705 Views)
Disregard my privious message. Sorry for wasting your time. Your previous suggestion works fine. Thank you.
0 Kudos
Message 4 of 4
(2,697 Views)