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.
02-02-2015 09:34 AM
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
Solved! Go to Solution.
02-02-2015 09:40 AM - edited 02-02-2015 09:40 AM
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?
02-02-2015 09:46 AM
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
02-02-2015 09:48 AM - edited 02-02-2015 09:49 AM
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.
02-02-2015 09:51 AM
This is the version for 2013
02-02-2015 09:59 AM - edited 02-02-2015 10:00 AM
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!
02-02-2015 10:04 AM
The problem was the two uninitialized shift registers.
Error of novice...
Manay thanks for the help