LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems resetting an array

Solved!
Go to solution

Altenbach,

I tried to encompass your solution into my problem but was unable to satisfy my conditions. I have an array of these booleans that are used as on off reset states rather than on and off. I am still not sure how to reset the initial #s. If I run the button through the cycle of on, off, reset, then do it again the initial #s stay the same when they should be different. I attached a simple vi to show my troubles.

Thank you in advanced for your help. Also thank you for anyone else's help on this problem either.

 

~I did not open a new thread because I feel like the solution to my problem can be built off this thread's solution. (please correct me if I am wrong)

Thank you again.

CLD Certified 2014
Download All
0 Kudos
Message 11 of 13
(534 Views)

 


ADrexelDragon wrote:

~I did not open a new thread because I feel like the solution to my problem can be built off this thread's solution. (please correct me if I am wrong)


By appending to an existing thread, you are robbing yourself of the opportunity to mark the best answer as solution. Especially if a thread is already solved, you should typicall start a new thread.

 

In any case, I don't quite understand your program. Why are you growing the 2D array without bounds, thus thrashing the memory more and more, the longer the VI runs. Shouldn't there be an in-place solution?

 

When you reset, you seem to try to replace relevant columns with an empty array, basically leaving the existing column untouched. This does not overwrite anything.

 

0 Kudos
Message 12 of 13
(525 Views)

I will make a new thread. Sorry Jeppe Mortensen for intruding on your thread. Thank you.

CLD Certified 2014
0 Kudos
Message 13 of 13
(513 Views)