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: 

Property Node & Array

Solved!
Go to solution

Hi,

I have a simple problem.

On my Front Panel, I have a 2D Array.
I can right click and Data Operation > Empty Data to clear the array.

I want to do this in my initialisation.

If I do Property Node or Local Variable with an empty array as input for initialisation of my program, it don"t works.
So, are they any possibility to have a Property Node > Data Operation > empry Array.

In advance, thanks for your help

0 Kudos
Message 1 of 7
(3,406 Views)

Just write an empty array constant to a local variable or use the value property node - it works. If it isn't working for you, can post an example VI or screenshot showing where you are having a problem?


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 7
(3,401 Views)

Please find, my test vi (2014 version)

If you play the vi 1 time, there is no problem, but if you do more, the 3 arrays are not init. (see size of the final array)

Thanks

0 Kudos
Message 3 of 7
(3,394 Views)

Can you save for LV2013 or post a screenshot - I don't have LV2014 installed.

 

It sounds like you might have an uninitialised shift register? An uninitialised shift register will use/remember the value from the previous iteration.

 

Either that or you have some sort of race condition where you are writing to the array before your 'clear' has actually run.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 4 of 7
(3,388 Views)

This is the version for 2013

0 Kudos
Message 5 of 7
(3,382 Views)
Solution
Accepted by topic author Minikisscool

Hi Mini,

 

in your init frame you write empty arrays to three array controls.

When I test your VI it works as expected: all three arrays are deleted/cleared...

 

What else do you need?

 

But as said before: you use two uninitialized shift registers. It would really help to initialize them - using the very same empty array constants!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(3,370 Views)

The problem was the  two uninitialized shift registers.
Error of novice...    Smiley Sad

Manay thanks for the help

0 Kudos
Message 7 of 7
(3,363 Views)