LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Incompatible 1-D array type

Error:

The source is 1-D array waveform. (AI Read)
The sink is 1-D array of single. (Harmonic Analyzer)
0 Kudos
Message 1 of 4
(2,768 Views)
The AI read outputs a waveform. IThe waveform data "bundles" the signal values (Y) with t0 and delta t.

Use the Get Waveform Componants.vi from the waveforms palette to get the 1D Y array.
0 Kudos
Message 2 of 4
(2,768 Views)
When I try to connect output of AI Read to input of Get Waveform Components, I get:

You have connected terminals of two different types.
The type of the source is 1-D array of Waveform.
The type of the sink is Waveform.

Is there a way to convert the 1-D array of Waveform into 1-D array of single, so that can I get the THD from the DAQ board voltage input? (I'm currently trying to do this with AI input and Harmonic Analyzer function)
0 Kudos
Message 3 of 4
(2,768 Views)
The array contains waveforms for different channels. You can select one channel using the index array function and then wire the output from that into the get componants function. If you want more than one channel expand the index array function to have multiple channels (just use the mouse to scale the function icon, if you scale it downwards new terminals will show up), or if you need the number of channels to be flexible do it in a loop where you change the index(es) input on each iteration.

Mads
0 Kudos
Message 4 of 4
(2,768 Views)