12-10-2011 04:45 AM
I have tried implementing an almost calculator design using queue-string based state machine . I am trying out the same with Producer consumer architecture , though i am not able to achieve the same using UI event in one loop and states(case structure) in the other. Can someone help me with the deployment or algorithm to proceed ?
12-10-2011 09:09 AM
A producer consumer architecture uses two loops, not one: http://zone.ni.com/devzone/cda/tut/p/id/3023. You seem to have tried to merge a state machine with a producer consumer, though it's not clear why. As for your specific problem, the issue is that you are using the "Use Default if Unwired" option for the output tunnel that is connected to the string. This is for the tunnel out of the event structure and the case structure. If you turn that off in both places you will find the error. Hint: Look at the Timeout case.
12-10-2011 09:46 AM
Yes, the one i have enclosed is just a state machine , i wanted to implemented with two loops one having event handler and other having case structure(string based State machine) but i dont know how to transfer the data from event case to case structure for the arithmetic operations .
12-10-2011 09:54 AM
I found this tutorial to be very helpful in understanding how to model the P-C pattern in LabVIEW.
HTH,
zeeed
12-10-2011 11:35 AM
Thanks , i tried myself and got the answer. I have enclosed the VI , although it has some minor tweaks.
12-10-2011 01:50 PM
Most of your button still have the wrong mechanical action.
I don't think you need the timeout case at all. It is just shoveling hot air.