10-21-2022 03:13 PM
I have a VI that is capturing 5000 samples of three digital inputs, the Digital Read VI is outputting them to an Indicator that shows the t0, dt and the array of output data
However , the indicator includes more data than I want, I do not need the start time or dT, I just need the data
I attempted to use the DWDT Digital Waveform to Boolean Array Function, but that resulted in another error
That error makes no sense, since they are both Digital Waveform data types.
I tried to use the Get Digital Waveform Components VI to strip out the data (Y) but that also results in an error, despite the Help saying I just need to wire a Digital Waveform to the input of the function and select which component I want on the output
I don't understand what the problem is , it appears none of these builtin Labview functions work
And there is little help available to investigate this error.
10-21-2022 04:11 PM
The error is pretty clear, you are connecting a 1D array to an element. Simple, you just need to add a for loop to index the 1D array of waveforms coming from the DAQmx read to use with the Digital Waveform functions.
10-21-2022 04:46 PM
Thank You Santo_13, that did the trick. Took me some experimenting to know I couldn't include the For Loop inside the While Loop.
Would be great if the Context Help For that Function would include that little Gem of Knowledge
That same For Loop works for the Digital Waveform to Boolean array as well, meaning many questions are now answered.
Thanks Again
Tom