08-18-2010 09:19 AM
can you explain me with a VI
08-18-2010 09:46 AM
Explain what? Boolean logic or shift registers? Shift registers are explained in the LabVIEW Help and should be in the tutorials. Have you done those? Examples on shift registers are also shipped with LabVIEW. Open the Example Finder (Help -> Find Examples) and search for "shift". You will find several, such as "Calculate Running Average" and "Find Maximum Value From Array".
08-18-2010 10:07 AM
I do not konw how to connect the shift register with the dispense structure
08-18-2010 10:21 AM
What have you tried?
08-18-2010 10:32 AM
I tried to use the shift register connect to the dispense case structure but i do not konw how to connect with output
08-18-2010 01:28 PM
The shift register is not for storing the total number of dispenses. It's for storing how many you've done. You wire a constant of zero to the left shift register so when your program starts you start off with nothing having been dispensed. Each time you dispense you increase the count. You check agains the state of the switch AND the current number of dispenses to determine if you can continue to dispense. This is really not that difficult. Instead of trying it with your real VIs, try it with simulated code.
08-21-2010 10:15 AM
Hi
i have done what you said but it doee not work can you tell me how to design it with my VI, i am really stuck on it
08-21-2010 11:20 AM
Please attach your VI so we can see what you are doing and explain what is wrong and how to fix it. The best way to learn LabVIEW is for you to try to do it yourself then ask for help when things go wrong rather than having people tell you how to do it.
08-23-2010 08:13 AM
Hi
i have tried use your suggestion, but the disgram is wrong can you check it for me?
08-23-2010 09:17 AM
You need to provide the missing VI's. There are three of them. They are the sub-vi's within the one you provided.