Jump to content

Timing Problems with PID Control of a Wind Tunnel


Recommended Posts

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)

Link to comment

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?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.