11-15-2011 10:25 PM
I have 32 channels of waveform (DBL) and I'm creating a waveform, spectrum, and trend plot that can display 1-32 of the channels. Once again I'm stuck on very basic array indexing. I'm using the "WDT Index Channel" VI to choose one waveform at a time.
I've posted my code below.
If anyone has a suggestion on a way to keep the user from deselecting all of the channels that would be helpful too, because I get an error when no channels are selected. I'd rather be able to deselect all of the channels, but if it defaulted to Ch1 being selected that would work fine too.
11-15-2011 10:44 PM - edited 11-15-2011 10:45 PM
You are only going to get the last waveform that is selected.
What you need to do is start with an empty array of waveforms and continually build them into a new array in a loop.
I can't comment on your empty selection problem because that must be some other portion of your code having a problem.
This should work better.