thisischris99 Posted June 24, 2010 Report Share Posted June 24, 2010 I have a VI written that reads in data from a pitot tube/anemometer in the wind tunnel. After setting a speed I want to be able to read 50 milliseconds of data from the Pitot Tube, put this data in an array along with the desired speed, and input these into a PID algorithm which regulates the output of a voltage controlling the speed of the Wind Tunnel. I tried using Timed Loops to no avail, and using the Elapsed TIme VI to set off a case structure outside of the loop however this only worked the first time the Elapsed Time output was True. Any Ideas? (The VI is on a computer not connected to the network currently) Quote Link to comment
viSci Posted June 24, 2010 Report Share Posted June 24, 2010 Can you show us the code? Quote Link to comment
thisischris99 Posted June 24, 2010 Author Report Share Posted June 24, 2010 Ignore the Voltage offset/Slope inputs . ClosedLoopPID.vi Quote Link to comment
Wire Warrior Posted June 24, 2010 Report Share Posted June 24, 2010 You might try using the wait until next multiple millisecond VI. That might do it. Quote Link to comment
viSci Posted June 25, 2010 Report Share Posted June 25, 2010 You need to condition your while loop to stop when your elapsed time triggers. This would give you 50ms of data. I think you may have other problems using single point DAQ at these data rate. Do you have a driver that support HW timed DAQ? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.