LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove selected elements from incomming data array

Solved!
Go to solution

I am trying to use a National Instruments USB Thermocouple interface (cDAQ-9171 with a 9213 module) with Labview 2018. The unit works fine and I can display any/all of the 15 channels. However, I would like to actively select the which channels that I display inside Labview using boolean buttons. My thought is to take the incoming data array which contains 15 elements and remove the unselected (or selected) channels. I thought I could use either the "Delete from Array" block or another array function, the issue is that none of these functions appear to allow for a varying number of inputs. I would have though I could use a boolean array as a TRUE/FALSE selector but again, I can find no array function that that will allow me to input an array to either select the exact elements I want or to reshape an incoming array of 15 elements to contain only data from the channels I want. Does anyone have a simple solution for this? Thanks!

0 Kudos
Message 1 of 3
(2,122 Views)
Solution
Accepted by topic author agriffin0

Have you tried something like this?

Frozen_0-1588787336028.png

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 2 of 3
(2,112 Views)

Nope, I hadn't tried that. That every elegant, thanks.

0 Kudos
Message 3 of 3
(2,091 Views)