LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

append


GerdW wrote:

@Jeff: Is there a reason to add 4096 bytes to the string when it happens to have a length dividable by 4096?


It won't.  If the length is divisible by 4096, then the remainder will be 0.  Therefore an empty array will be created.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 11 of 14
(1,195 Views)

Hi crossrulz,

 

in my examples by default an array of length (4096 - remainder) will be padded. (The same applies to Jeff's example.)

So when string length is divisable by 4096 it would padded by another 4096 bytes…

Best regards,
GerdW


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

Oops.  I missed the subtraction.  It's way too early in the morning...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 13 of 14
(1,177 Views)

@crossrulz wrote:

Oops.  I missed the subtraction.  It's way too early in the morning...


Way too late at night for me... There shoulg probably be an inc or dec in there somewhere in the math.... The math is left for the OP as an exerciseSmiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 14 of 14
(1,155 Views)