LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array size

Solved!
Go to solution
Solution
Accepted by topic author labview99

Hi 99,

 


@labview99 wrote:

I have tryed to do what GerdW tells me and the lengths continue being different. One 36 and the other 37


My magic glass ball says:

From the quality of your posts and shown code you probably used InsertIntoArray instead of ReplaceArraySubset somewhere in your code…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 18
(835 Views)

The problem is in the last frame in the case "false" whith the function array size, that the length is 37 and it must be 36.

0 Kudos
Message 12 of 18
(830 Views)

Gerd's crystal ball is polished up quite nicely today!

 

Providing your attempt could have gotten you the answer 4 or 5 messages ago.

0 Kudos
Message 13 of 18
(823 Views)

Hi 99,

 


@labview99 wrote:

The problem is in the last frame in the case "false" whith the function array size, that the length is 37 and it must be 36.


Yes, the problem is exactly in the last frame. My magic glass ball was right… 🙂

 

You did not implement any of the suggested improvements so far: why not?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 18
(822 Views)

YESS!!! 

You were right GerdW, I was using Insert Into Array instead of using Replace.

Thank you so much for your help and for posting the code!

 

Best regards,

0 Kudos
Message 15 of 18
(821 Views)

Please take the training courses as GerdW has pointed out many times in your other posts. And please improve your posts like GerdW has also described many times.

Certified LabVIEW Architect
0 Kudos
Message 16 of 18
(817 Views)

Just as GerdW suspected, that's exactly where you used "Insert Into Array" instead of "Replace Array Subset", which you properly used in other locations.

 

They *do* look awfully similar when their labels aren't visible.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 17 of 18
(815 Views)

@GerdW wrote:

 

I simplified the first frames of that huge sequence:


Or even simpler (Small part)....

 

altenbach_0-1582907012848.png

 

0 Kudos
Message 18 of 18
(774 Views)