LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OpenG Filter 1D Array.vi

Does anyone know how to use this VI? I don't know anything about variants, and have tried various ways to wire this VI up to no avail. Please see GIF. (want to filter NaN's) Are you out there Jim?

Thanks, Paul.S
0 Kudos
Message 1 of 3
(3,302 Views)
The filtering works fine, the problem is the conversion to a double array, the variant to data will not accept array as the type.

Do the conversion in a for-loop; wire the output of the filter function to a for loop, auto.indexing on...convert the elements to double inside the loop...and wire the results out of the loop with auto-indexing to create the result array.

A better alternative though is to wire the array to a NaN? function and wire the resulting boolean array to the conditional auto-index tunneling.vi together with the original double array...the output will be the filtered signal.
Message 2 of 3
(3,302 Views)
Thanks Mads - excellent idea. Forgot about the NaN? and didnt see the conditional auto-index vi (only just installed openG)

Paul
0 Kudos
Message 3 of 3
(3,302 Views)