First, don't go with the bool or four bools Use a listbox with the output as array and selection mode 0 or more (auto index the indices to build the channels from the array of selections)
Ala Kazam!
Nicely SCALEABLE!
Second, DON'T DO THAT!
So, You got 4 AI Channels. Read them ALL ALL THE TIME! Use The Plot Visible Property to display only what is interesting and (Just saying here) Read the plot visible property to stor only the channel data of interest *(to TDMS of course)
NOTE: The For loop should auto-index on all AI, My device has more than 4 AI.
"Should be" isn't "Is" -Jay