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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array size

Solved!
Go to solution

Hi,

I am trying to put in the position 4 of the array first, one 0, then, number1 and then again a 0.

I use the function array size to see the length of the array and I can see that suddenly the size is 37 instead 36. You can see this in the indicator "size" and "size2". maybe you could help me

 

I attach the program

 

Best regards,

 

0 Kudos
Message 1 of 18
(2,773 Views)

@labview99 wrote:

 

I attach the program


No, you didn't

0 Kudos
Message 2 of 18
(2,756 Views)
0 Kudos
Message 3 of 18
(2,753 Views)

Hi 99,

 

replace ALL THOSE LOCAL VARIABLES (and "Value" property nodes) BY WIRES!

 

I guess you have been told before to take those free Training resources to earn LabVIEW.

Until now you don't seem to understand the "THINK DATAFLOW!" mantra…

 

I simplified the first frames of that huge sequence:

check.png

Just one terminal and all wires, no locals/property nodes!

Best regards,
GerdW


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

Hi GerdW,

 

I have tryed to do it as you have said but it doesn´t work

 

0 Kudos
Message 5 of 18
(2,738 Views)

Don't just say it doesn't work.  Explain in what way it is not working

When you say you've tried something, then post the VI of your actual attempt.

Nothing in this message tells us what you tried or how it doesn't work.

 

You've been on these forums long enough to know that if you need help, then you have to provide some actual information to allow people to help you.

0 Kudos
Message 6 of 18
(2,731 Views)

@labview99 wrote:

I have tryed to do it as you have said but it doesn´t work

 


You have not attached your code again (new code)

0 Kudos
Message 7 of 18
(2,730 Views)

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

0 Kudos
Message 8 of 18
(2,722 Views)

"tried", not "tryed".

 

Are you sure you did exactly what he showed?

 

Many people claim they followed an example, only to find out the mis-wired something, forgot an input, or had a node configured differently in the background.

 

The easiest way to see what you actually did when you tried is for you to post the actual code.

0 Kudos
Message 9 of 18
(2,718 Views)

@labview99 wrote:

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


This means that you did something wrong.
But without your code we cannot say where exactly the error

0 Kudos
Message 10 of 18
(2,716 Views)