08-13-2010 05:41 AM
Hi everyone
anyone can teach me how to make a command send aotomatically, for instance a dispense command base on a subvi, when click the dispense the command will dispense a designated time and wait some time, continue to dispense, anyone can teach me how to slove this problem?
08-13-2010 07:33 AM
Hi lilight,
what have you done so far? Did you try it with a queue and a timeout or an event structure with a time out? For both solutions you should use a loop with a shift register to store the timeout value. What is it what you try to send. Is it something with hardware connected?
Mike
08-13-2010 07:51 AM
yes the labview was connect with a dispense unit base on RS232 standard
08-13-2010 07:55 AM
this is my control interface
the third case structure is the dispense command
08-13-2010 08:27 AM
just want once i click the dispense button, the dispense action can dispense and wait some seconds continue dispense without press the button
08-13-2010 10:02 AM
this is the three subVI program
08-13-2010 10:08 AM
double post but meaningfull
08-13-2010 10:43 AM
The simplest solution is to simply change the mechanical action of the dispense button to "Switch When Released".
VI Comments:
Attached is one way you can recode the VI. This assumes that the "delay for read" are intended for the subVIs.
08-18-2010 08:11 AM
Hi smercurio
My control interface VI can work appropriate with the instrument, you said i can simply change the dispense button to swith when released, but my aim is to when do the dispense, wait a set time and then begin again until i've done the set number of dispenses.
08-18-2010 08:50 AM
Then simply use a shift register for the loop to count the number of times you've dispensed. You can easily control your case structure from a Boolean combination of whether the button is on and the count is less than your max number of dispensations. Simple Boolean logic.