01-12-2009 12:16 PM
hi, sorry that i didnt get a chance to do this.
i was stuck doing validations for a couple of months. i want to go back at this and figure this out.
for the producer/consumer structure,
why is there a "no error" and "error" case?
is that what I should replace with "state machine?
what do i do about the constants time displaying loop on the front page?
where do i put that?
01-12-2009 01:22 PM
here is what i have going from rev C of my first post.
i dont know how to keep the data from the big data cluster.
01-13-2009 08:22 PM
Hi Krispie
Thanks for the question, I know the producer consumer architecture can get tricky. The error wire that you see running from the event VI to the stop button on the consumer loop is used to stop execution when no data is in the queue. The error handling is used so that we do not execute any code when the error is detected as true. If the queue has no data to be operated on we simply finish the loop and initiate it again. Now I know this may be a little confusing as normally error would indicate something has gone wrong in our code, with the producer consumer design we simply use it to identify whether or not to run the consumer loop. Please let me know if this helps answer your question regarding what function the error wire performs.
01-14-2009 11:06 AM
01-16-2009 09:58 AM
Hi Krispie
It looks like your code is designed to initialize data in a system and this is what you are using your state machine for. Based off the original paint drawings it looked like you intended to run the state machine to initialize your code and then run it continuously after until a stop button was pressed. In the current producer/consumer architecture we are running the initialize with new parameters everytime the button is queued. Is this intentional to the design? One way to always stop your code in a simultaneous manner would be to run another look in parallel (place a small wait timer in it) with a local variable that would communicate with all the loops to stop them.
01-16-2009 10:31 AM
01-19-2009 12:45 PM
Hi Krispie
It looks like the issue regarding the parallel loops is currently under your new discusion thread. Since it appears as though the state machine portion of your code is well understood, I believe we should continue the discusion there.