From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-27-2017 01:37 AM
@cbutcher wrote:
In the picture posted above, one simple example you could use to claer up extra nodes is visible - you multiply 8 different values (which are consecutive elements of an array) by the same scalar value - you can instead multiply the array by this value and then index after.
Following that point, you wire consecutive values to Index Array. You don't need to wire numeric constants when the values are 0..N - just drag the Index node and consecutive values will begin from 0. If you wire the first element, you get consecutive elements from that value, like here:
Even better, use the Array Subset and you'll use 1 function instead of an expanded Index array and build array.
/Y
06-27-2017 01:52 AM
Hi,
seeing those dark-blue wires in the snippet image I STRONGLY recommend NOT to mix/join different signals into DDT wires - especially not that amount of signals…
I also prefer to convert boolean arrays to numbers and store just one number instead of 16/32 boolean values. Caveat: your analysis toll has to support those "packed" boolean data…
06-27-2017 02:07 AM - edited 06-27-2017 02:12 AM
@Yamaeda wrote:
@cbutcher wrote:
In the picture posted above, one simple example you could use to claer up extra nodes is visible - you multiply 8 different values (which are consecutive elements of an array) by the same scalar value - you can instead multiply the array by this value and then index after.
Following that point, you wire consecutive values to Index Array. You don't need to wire numeric constants when the values are 0..N - just drag the Index node and consecutive values will begin from 0. If you wire the first element, you get consecutive elements from that value, like here:
Even better, use the Array Subset and you'll use 1 function instead of an expanded Index array and build array.
/Y
I just used Build Array to create an array output so that we could use 2 instead of 12 indicators or so. The OP wants individual values (hence the Index Array).
Edit: That being said, in at least a few places a pair of values are indexed off, then rebuilt into a Merge Signals to DDT, then split with a Split Signals, then bundled... Might be simpler to avoid at least a few operations here.
06-27-2017 02:52 AM
Some further comments (maybe you already found these):
For anyone who wants to play with Dynamic Data Wire simplification, here's a version with a bit less white-space and fewer Index Array nodes (saved to 2016)