ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting Array

Small tip: Wire the full error wire to the case instead of the error-boolean, then the case structure will change color and it'll be alot more pedagogical to look at.

There's also no need to use a separate wire for the Initialize case, the shift registered one will work just fine.

Why a wait when you have a timeout for the queue?

Hmm, each time you press a button you save the time and a random number, and  write it to a file every so often? Why not a simple event structure that saves the values when pressed?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 21 of 32
(1,711 Views)

If I were to save the time and random number within the event structure, then the process would not continue unless it is in the timeout case. Essentially, I created an extended timeout case utilizing queues. Therefore, each case would be condensed and the data could visually flow better. (maybe I was wrong). 

 

"There's also no need to use a separate wire for the Initialize case, the shift registered one will work just fine."

What do you mean? (graphic?)

CLD Certified 2014
0 Kudos
Message 22 of 32
(1,702 Views)

 

/YInit.png

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 23 of 32
(1,689 Views)

If the init case should also be functional at a later time, the solution on the right will not work.

0 Kudos
Message 24 of 32
(1,677 Views)

Quite right, then you should put the constant inside the Init case (which is slightly prettier to me anyways).

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 25 of 32
(1,664 Views)

Since there are so many constants, another line looks better and more compact. Adding a bunch of constants inside the loop could increase the size. Also if more constants were to be added, I would only need to update them in one cluster.

CLD Certified 2014
0 Kudos
Message 26 of 32
(1,662 Views)

I have been able to find the threshold times and #s but I only want the first time and #. It keeps updating the 2D array for each reading.

Also the threshold times #s should still reset like the initial #s do.

Thanks for all of your help.

CLD Certified 2014
Download All
0 Kudos
Message 27 of 32
(1,644 Views)

This is what I was trying to accomplish in my Resetting Vi. I am having trouble integrating this into the Resetting Vi.

CLD Certified 2014
0 Kudos
Message 28 of 32
(1,617 Views)

Here is a more complex version. I am hoping to incorporate the same outputs in the Resetting Vi. I am not sure how to do so. I feel like a for loop around the whole thing with an array of constants would work.

CLD Certified 2014
0 Kudos
Message 29 of 32
(1,608 Views)

I was able to implement the threshold into the resetting Vi. I do not know why the value keeps going to zero.

CLD Certified 2014
Download All
0 Kudos
Message 30 of 32
(1,586 Views)