01-23-2011 07:31 AM - edited 01-23-2011 07:41 AM
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
01-23-2011 12:32 PM
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?)
01-23-2011 05:10 PM
01-23-2011 11:58 PM
If the init case should also be functional at a later time, the solution on the right will not work.
01-24-2011 06:44 AM
Quite right, then you should put the constant inside the Init case (which is slightly prettier to me anyways).
/Y
01-24-2011 06:47 AM
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.
01-24-2011 06:09 PM
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.
01-25-2011 10:25 PM
This is what I was trying to accomplish in my Resetting Vi. I am having trouble integrating this into the Resetting Vi.
01-25-2011 11:31 PM
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.
01-26-2011 07:22 PM
I was able to implement the threshold into the resetting Vi. I do not know why the value keeps going to zero.