01-24-2008 08:21 AM
01-24-2008 08:36 AM - edited 01-24-2008 08:37 AM
Just have the control for the solenoid in the event case. Use the event case inside a state machine or queued message handler block diagram so that the control value change sends the vi to the correct case that activates the solenoid. When the solenoid is activated. The state machine (queued message handler) can then return to the event case to wait for another push of the button.
Tom
01-25-2008 05:37 AM
01-25-2008 05:46 AM
No problem, but please convert the files to version 8.2 -- I'm not using 8.5!
Thanks,
Tom
01-25-2008 05:56 AM
01-25-2008 06:36 AM
This is what I meant by using a state machine. However, this still only executes the sounds one after the other. In order to get them to occur simultaneously, you would have to code it so that the sound.vi does not suspend execution while the beep is occurring. I don't think that is possible with the beep.vi but you could make it work with your solenoid controls.
Tom
01-25-2008 07:25 AM
01-25-2008 07:43 AM
01-25-2008 08:37 AM
01-25-2008 11:21 AM
Thanks for adding to the discussion DFGray. I have been in meetings all morning! I agree with your solutions to this problem. JHess, you can find a template for setting up the Queue, Dequeue method that is described by selecting file...new... and selecting Producer/Consumer Design Patterns (Events).
Tom