05-30-2012 04:58 AM
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.
05-30-2012 05:22 AM
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.
05-30-2012 05:45 AM
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???
05-30-2012 05:47 AM
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?.
05-30-2012 06:17 AM
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.
05-30-2012 08:01 AM
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.
05-31-2012 02:22 AM
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
05-31-2012 11:08 AM
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?
06-01-2012 02:33 AM
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.
06-01-2012 08:10 AM
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.