LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need some help with stopping a pulse

Hi, so me and my friend had just made this project:



How it works is like this:

When the input DAQ's voltage is 3.7, it will trigger the output DAQ(vibrator), which will make the vibrator pulse.
But the problem me and my friend is having is this:

For the pulse to work, it needs to be in the while loop. But since its in the while loop, it will never stop, even after the voltage has dropped below 3.7v.

Is there any way to stop/reset the pulsing?

Thank you in advance.
0 Kudos
Message 1 of 9
(3,281 Views)
Read the DAQ data inside the loop, and if < 3.7, stop the loop, the same way you fired the case statement. Or set up a parallel loop to read DAQ data and use local variables or Notifiers to read the data in the other loop.
Also, you don't need the sequence structure, the express VI's have error in/out for sequencing.


Message Edited by Broken Arrow on 08-06-2008 10:25 AM
Richard






0 Kudos
Message 2 of 9
(3,272 Views)
How do you use the error in/out function to generate a pulse?
(I'm kind of new to labview)
0 Kudos
Message 3 of 9
(3,264 Views)
No, that was a different subject.. I was just saying you can wire the error clusters rather than using the sequence structure. This will also help straighten out your code so we can see it better.


Message Edited by Broken Arrow on 08-06-2008 10:40 AM
Richard






0 Kudos
Message 4 of 9
(3,262 Views)
So, to make it stop, I must get rid of the case structure and directly wire the ">=" comparator to the while loop?
0 Kudos
Message 5 of 9
(3,248 Views)
Smiley Wink..........Not exactly.... if you'll post the actual VI, I'll write you a solution
Richard






0 Kudos
Message 6 of 9
(3,235 Views)
Ah darn it... the actual vi is at school and I'm at home currently.

Can you describe roughly what I should add/do?
0 Kudos
Message 7 of 9
(3,230 Views)
This is FAR from ideal... I did it in MS Paint Smiley Surprised because I don't have a DAQ device setup to make the express VI, and I'm too lazy to simulate one, but this is what I mean... If you want to stop the loop predicated on something that the DAQ sees, you have to read the DAQ inside the loop... or do a parallel process (better) but this'll probably work. It'll stop after (or before) the pulse when DAQ drops below 3.7.
Richard






0 Kudos
Message 8 of 9
(3,226 Views)
I'll try it tomorrow when I get to school.

Thanks for the help Smiley Very Happy
0 Kudos
Message 9 of 9
(3,221 Views)