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: 

Programmatically filter array elements containing physical channels as controllers.

I have an array containing list of physical channel controllers. I want to filter the physical channels based in user inputs. For Ex: If the user selects Device 1, the physical channels should only display channels connecting to device 1. Currently the phsical channel array just displays all physical channels available. Is there a way to filter physical channels based on the selected device.

Labview Learner
0 Kudos
Message 1 of 4
(3,004 Views)

Use a FOR loop with a Search/Split String.  The "offset of match" will be -1 if the item was not found.  So use a conditional autoindexing tunnel to only include the items that were found (index >= 0).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,998 Views)

I see that you have filtered out the channels based on Device selection, but I need the filetered out channels to be controllers, not indicators.

Users should be able to select custom channels from the filtered out list.

Labview Learner
0 Kudos
Message 3 of 4
(2,992 Views)

That's the hard way TimSmiley Wink

!1-1.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(2,987 Views)