07-18-2008 08:13 AM
07-18-2008 09:17 AM
Bryan,
It looks like you take some sort of measurement, filter the results and then you want to make a decision based on the amplitude of the measured signal. If that is the case then you need to use something like the tone measurment.vi to actually calculate the amplitude before doing the comparison. The signal you have feeding the selector terminal now is is more like an array of results. That is probably why things are bouncing around.
07-18-2008 03:32 PM
Thanks for the reply centerbolt,
I tried somthing like you proposed, only I used a mean value from the mathmatic functions pallet. This does change the output to a single floating point value. However, I still have the same palsing response.
Your correct, I am collecting a accelerometer value from a vehicle application. This measures roll acceleration. If the value is more than .2g it should activate the 2v output to fire a damper for the appropriate side of the vehicle and maintain the 2v until the condition changes. If the value is less than -.2, the other side damper should fire and stay on until the accel changes condition. But it doesn't maintain the output signal. Instead it cycles on then off every loop iteration.
I also have to figure out hoe to have my indicator light come on only if the respective damper is active.
Thanks again for any help, it is appreciated,
Bryan
Here's what I have at this point:
07-18-2008 04:13 PM
07-21-2008 08:19 AM
I changed the Express Comparison vi's to the simple compare function with no change in the result. Still getting the on/off cycle at the speed of the loop iteration.
Any other ideas, I'd be happy to try them.
Bryan
07-21-2008 08:38 AM
Bryan,
It could be alternating because of something about the workings of the vi or because that's what the inputs are telling it to do. I would start by deciding if you are correctly reading and processing the signals from your sensors.
A couple of suggestions:
1 - Wire up the error clusters and make sure that no errors are being generated.
2 - Add a Wait (ms) function to your While Loop to keep it from trying to run full tilt.
3 - Add probes or temporary indicators to help monitor the output of the various DAQ assistant blocks you have placed.