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.
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-200810:25 AM
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-200810:40 AM
This is FAR from ideal... I did it in MS Paint 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.