LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clearing array not working

hi

 

can some one help me clear my array please. I've tried using a property node and initilizing back to default. It doesn't work. I've also just tried loading the array with empty data and still no luck!

 

I've included my vi, its driving me crazy.

 

When i click clear i want to be able to load the data in again from fresh.

 

Thanks.

0 Kudos
Message 1 of 14
(3,661 Views)

Remove the Re-init to default and place the value property node and wire empty string array to it. It should clear all the data.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 14
(3,653 Views)

Hi

 

thanks for the quick repsonse, but that doesn't seem to work.

 

It clears but then when i click load again there is additional data coming in from somewhere???

0 Kudos
Message 3 of 14
(3,646 Views)

It is not form somewhere since you are reading the file inside the load case the data gets loaded and it is obvious. How do you want the Indicator to behave after clearing?.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 14
(3,644 Views)

I'd like it to comletely clear.

 

It seems to load data from somewhere so i guess my loading is not quite right.

 

If i had a list of number so search for and then click clear i'd like that list to remain(as it does currently in the white boxes). If i click load id like it to search and load the corresponding data.

 

 

0 Kudos
Message 5 of 14
(3,636 Views)

It seems to load a blank line from somewhere that is then inserted between every new line.

 

Not sure where it is coming from though.

0 Kudos
Message 6 of 14
(3,624 Views)

Hi

 

i've used the comparison empty array and after clearing its saying that is false meaning that its not actually empty.

 

This is a major headache/hiccup....can anyone see where the problem is for me to fix...i'm struggling a bit.!

 

Thanks

0 Kudos
Message 7 of 14
(3,607 Views)

To clear the array, create a local variable (better than a property node here) and wire an empty array constant to it.  Make sure the array constant is actually empty, do not simply do "create constant" from the existing front panel terminal.

 

We can't run your VI because you did not include one of the subVIs so there's no way for us to test it, and your explanation of what you want is not clear.  Where did you insert the "empty array" comparison?

0 Kudos
Message 8 of 14
(3,587 Views)

Hi

 

Thanks for the reply.

 

you are right i have not put the sub vi in there. My fault.

 

I haver tried doing as you suggest but it still has an issue. I think the code is at fault, or it is related to a cluster or shift register.

 

Any help is greatly appreciated.

 

I've reposted the vi including the sub vi.

0 Kudos
Message 9 of 14
(3,570 Views)

Please also post specific instructions about how to duplicate your problem.  Which buttons should we push and which values should we enter, in what order, to see the behavior you're trying to eliminate?  Be clear about which indicator contains values you don't want, and what it is you expect to see.

0 Kudos
Message 10 of 14
(3,557 Views)