Hi, can anyone help?
I'm trying to add a stop boolean to my VI. The VI consists of a while loop (a true/false constant is wired to the conditional terminal, set to true), inside of which is a true/false case structure, inside which is a sequence structure. The case structure has a true/false boolean wired to it and is set to false as default. The sequence structure only appears in the false case and contains three frames. In the first frame there is a serial port write.vi along with a format into string function that sends a command to the pump to start. In the second case there is a wait millisecond timer. Then in the third case there is a while loop (a true/false constant is wired to the conditional terminal and is set to true)
, inside of which is another format into string function and a serial port write.vi which is inside the false case of another true/false case structure. This frame determines the speed of the pump (the flow rate). There is a shift register on the while loop which passes the current speed to a equal comparison function. This function compares the old speed with the new speed coming from the control and if false writes the new speed. In the true case of the outer case structure there is another serial port write and format into string which sends a stop command to the pump when the true/false boolean wired to this structure is pressed. Therein lies the problem. When I press the boolean (make true) it doesn't stop the pump. I'd greatly appreciate it if someone could explain where I'm going wrong. If it is an easier I can send you the VI.
Thanks in advance,
Adrian
ah2002@columbia.edu