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.
08-26-2005 12:12 PM
08-26-2005 12:38 PM
Aaaaargh !.. and it's even worse when you try to dispatch the data into a larger number of different arrays. You may loose all the last elements (see attachment) ! There is no objective reason for such a behaviour : having a uniform number of array elements has no meaning. This is is clearly a bug !
Good catch Garvacious !
08-26-2005 01:03 PM - edited 08-26-2005 01:03 PM
Message Edited by EVS on 08-26-2005 10:07 PM
08-26-2005 03:29 PM
08-26-2005 03:37 PM - edited 08-26-2005 03:37 PM
Just for reference, the online help for the "sister function" Interleave array is a bit more clear with respect to possible truncation. It states:
"If the input array is not the same size, the number of elements in interleaved array equals the number of elements in the smallest input array multiplied by the number of input arrays."
Message Edited by altenbach on 08-26-2005 01:37 PM
08-26-2005 06:22 PM - edited 08-26-2005 06:22 PM
Message Edité par chilly charly le 08-27-2005 01:26 AM
08-27-2005 01:46 AM
I agree, it should be clearly documented.
@chilly charly wrote:
However, the situation here is exactly opposite, the information loss is deliberate, unjustified and undocumented.
@chilly charly wrote:
By the way, there are some interesting situations. For instance consider the following diagrams. How do you justify the different results ?
Well, these results are exactly what I would expect. 🙂
What would you expect to happen in these two cases?
Of course there are other conveivable inplementations, but the current one seems quite reasonable.
I can see one possible expansion for autoindexing input tunnels in FOR loops. What if for each autoindexing input tunnel we could right-click and select between active and passive indexing (or some other designation). Active tunnels would force termination when the data runs out (Same as in the current behavior). Passive tunnels would not influence the iteration count and substitute default values once data runs out. If all input tunnels are passive, the VI would be broken unless N is wired, which then would determine the number of iterations. I wonder if this would be useful? 🙂
08-27-2005 02:14 AM
altenbach a écrit
... What would you expect to happen in these two cases? ...
... I can see one possible expansion for autoindexing input tunnels in FOR loops. What if for each autoindexing input tunnel we could right-click and select between active and passive indexing (or some other designation). Active tunnels would force termination when the data runs out (Same as in the current behavior). Passive tunnels would not influence the iteration count and substitute default values once data runs out. If all input tunnels are passive, the VI would be broken unless N is wired, which then would determine the number of iterations. I wonder if this would be useful? 🙂
I'm so used to this behaviour that I took me some time to realize that the difference between the two loops was something potentially disturbing for a beginner. May be the reconciliation of While and For loop behaviours could be to define a "force" state for the N input, that of course would have the effect you propose with your active and passive input tunnels. Same thing for the while loop, with an "auto stop" condition ?
08-27-2005 05:22 PM
And while we're on the subject, I think I asked this recently, but still: why is it that 2D arrays require padding and 3D arrays don't (each page of a 3D array seems to behave like an indepedent 2D array)?
This makes sense when you look at it visually, but if you consider programmatic handling, this just looks like an inconsistency.
08-27-2005 06:56 PM
I don't see any difference between 2D and 3D. On a 3D array, each page has the same number of elements, and changing the dimensions of one page affects the others. No independency. Where is the inconsistency ?
tst a écrit:
And while we're on the subject, I think I asked this recently, but still: why is it that 2D arrays require padding and 3D arrays don't (each page of a 3D array seems to behave like an indepedent 2D array)?
This makes sense when you look at it visually, but if you consider programmatic handling, this just looks like an inconsistency.