LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Digital Waveform Components Datatype mismatch

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 

tmcneil_0-1666382605645.png

 

I attempted to use the DWDT Digital Waveform to Boolean Array Function, but that resulted in another error 

tmcneil_1-1666382678653.png

 

tmcneil_2-1666382739343.png

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

 

tmcneil_4-1666383026817.png

 

tmcneil_3-1666383011812.png

 

 

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. 

 

 

0 Kudos
Message 1 of 3
(909 Views)

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.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(892 Views)

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

0 Kudos
Message 3 of 3
(871 Views)