Building a PID Controller with LabVIEW and USB Data Acquisition Hardware

Поділитися
Вставка
  • Опубліковано 29 жов 2024

КОМЕНТАРІ • 47

  • @uksurd
    @uksurd 14 років тому

    unbelievable ,, you did it in 9 mins and i am learning this thing data acquisition from past 1 month

  • @FlexRIO
    @FlexRIO  12 років тому

    Hello,
    Dave described the circuit in one of the comments below. "The analog output channel is connected to the base input of the transistor. When looking at the transistor with the metal shield in the back, the base input is the pin on the left. (Not all TIP120's are the same) The next post on this transistor is the collector and the last is the emitter. The battery high goes into the collector and the output current comes out the emitter to the fan motor."

  • @FlexRIO
    @FlexRIO  12 років тому

    Hello,
    Dave needed a transistor that could provide more current to drive the fan, since the analog output channel on that USB DAQ device can only drive up to 2mA. Using the TIP120 darlington pair transistor, you can increase that to several Amps so it works well for this applications which involves driving a DC motor.

  • @FlexRIO
    @FlexRIO  14 років тому

    Hello,
    All the code is available for download at the NI Community.
    Search for "6211 application code"
    The "Simple PID" function is used within the "PID Control" application.

  • @FlexRIO
    @FlexRIO  13 років тому

    @OndKrokus Hello. If you right-click on the block diagram and choose "Select a VI", you should be able to drop the "simple-pid.vi" sub-VI onto the block diagram and wire it up. It's possible you might need a newer version of LabVIEW.

  • @chrisru7744
    @chrisru7744 2 роки тому

    If you could share the simple PID vi it would be great! The link is not working any more....

  • @th3kid13
    @th3kid13 14 років тому

    great tutorial!

  • @Celhucireth
    @Celhucireth 13 років тому

    @Celhucireth forget it, i got it, its in the video, i did not hear it because i did not see it from the beginning

  • @shan00022
    @shan00022 8 років тому

    Thank you!

  • @FlexRIO
    @FlexRIO  14 років тому

    @djbazzsta Hello. It appears that you probably don't have the NI-DAQmx driver software installed. Installing that will install LabVIEW support, and add the DAQmx option in the Measurement I/O pallet. This dosen't require any speacial LabVIEW modules. You can download NI-DAQmx from ni.com.

  • @satendrakumarMATLAB-TUTORIALS
    @satendrakumarMATLAB-TUTORIALS 12 років тому

    Nice work..

  • @GeankDOORS
    @GeankDOORS 13 років тому

    Hi, nice project, but what kind of sensor you were using and how did u place it?? -any schematic would be helpful- because I'm trying to do the same using an LDR and a red led as a light source but I'm not sure about how to put all together. thanks

  • @djbazzsta
    @djbazzsta 14 років тому

    @FlexRIO What are the specific Labview Modules in use here?
    If I go to Measurement I/O in the conventional Labview Student Version,
    the DAQmx option does not appear even though the USB board is
    connected.

  • @msmilton7680
    @msmilton7680 9 років тому

    is it possible to do pid controlling in labview 7 version? in which version it is applicable

  • @sasoptimis
    @sasoptimis 12 років тому

    Hi, could you please list all the specific components used in this video, because i would like to build this myself and i don't want to buy a fan or sensor that isn't suitable.
    I was also wondering about the fun in particular. I am assuming that the battery power doesn't go directly to the fan motor, it goes through the power transistor first?

  • @MrStuntoneoone
    @MrStuntoneoone 12 років тому

    hey...how did you wire up the photocell with the voltage divider circuit (the resistor you used and the characteristics of the photocell)? can you give me a quick rundown if you dont mind...

  • @FlexRIO
    @FlexRIO  12 років тому

    Hello. Dave used a TIP120 darling pair transistor.

  • @alpha001ful
    @alpha001ful 13 років тому

    Hey how do you connect Op Amp to the the power supply and motor? Do we need extra resistors (i didn't see in the video)? Can you give me the circuitry ?

  • @lassehoei
    @lassehoei 9 років тому

    How does the PID VI know the sample rate?

  • @khouryjohn7923
    @khouryjohn7923 11 років тому

    Also where was the photocell exactly placed on the deflector?

  • @Torb91
    @Torb91 15 років тому

    awsome video man!! :D

  • @jnseiios
    @jnseiios 12 років тому

    nice video

  • @azimahghazali
    @azimahghazali 13 років тому

    Hey there, is there any limitation to this PID program? I calculated P and I parameter values of more than 5 (but output is only between 0-10V). I applied it to my system's approximate model (very close to actual response), and they work ok in MatLab simulation. But when i apply them to this PID program, my system oscillates very badly.
    is there any factor difference between this program and the regular PID block in Matlab? Hope u can help me out. Thanks!

  • @zubairhussain123
    @zubairhussain123 14 років тому

    Hi, where do u get the simple version of the PID module that you use?

  • @IngVasiu
    @IngVasiu 12 років тому

    how did you choose the transistor type? (I mean the transistor's parameters)

  • @余坤奇
    @余坤奇 4 роки тому

    cool!

  • @AlbertTorresG
    @AlbertTorresG 15 років тому

    hey man, what kind of transistor are you using?

  • @19Mrstormy
    @19Mrstormy 13 років тому

    Is it possible to show a rough circuit schematic ??

  • @pako0888
    @pako0888 12 років тому

    do you have the connection circuit of the protoboard?

  • @EzarKun
    @EzarKun 14 років тому

    nice vid.
    how to do ramping?
    say 4.35 to 4.5 @ 0.1/second
    thanks

  • @apeygvalidnyer
    @apeygvalidnyer 12 років тому

    hi,
    may i know what version of labview did you used in the experiment?

  • @FlexRIO
    @FlexRIO  13 років тому

    @sheerazdarkshadows Hello. 6211 application code is still up, so I'm not sure why it's not loading for you. Have you tried again recently? The link in the description section of this video seems to work fine.

  • @ladysman217f
    @ladysman217f 13 років тому

    Hi Dave,
    i was just wondering if there is code for this PID controller compatable with Labview version 8.5 because i followed the link above for the code and could not open it because i only have version 8.5. regards.

  • @undergr1
    @undergr1 10 років тому

    If you could share the simple PID vi it would be great!

    • @bigboateng2011
      @bigboateng2011 10 років тому +1

      check the description :)

    • @undergr1
      @undergr1 10 років тому

      DeDon Capogee
      oops! sorry!

  • @cariverajara
    @cariverajara 12 років тому

    What power transistor is used?

  • @joeasing
    @joeasing 15 років тому

    man, can you tell me what kind of transistor are you using? i need a code. thanks :)

  • @sheerazdarkshadows
    @sheerazdarkshadows 13 років тому

    @FlexRIO i Cannot access 6211 application code. When I click on it, the page says 'Unable to load the web page because the server sent no data'. Have you deleted this code now?

  • @TheMedinadenis
    @TheMedinadenis 13 років тому

    what is the transfer function of the system?

  • @OndKrokus
    @OndKrokus 13 років тому

    I can't add the VI to my project, does anyone else have this problem? I right-click, choose "Select a VI" and select "simple-pid.vi" and nothing happens, not even an error..

  • @winingram241
    @winingram241 12 років тому

    Is this first or second order?

  • @NjulitoG
    @NjulitoG 12 років тому

    hello, simple pid where I can download or get??

  • @awhanp
    @awhanp 15 років тому

    thanks thanks thanks :)

  • @Celhucireth
    @Celhucireth 13 років тому

    Excuse me wich USB Data Acquisition Hardware are you using?

  • @Inthesombrus
    @Inthesombrus 10 років тому

    why i cant download the code? :S

  • @khouryjohn7923
    @khouryjohn7923 11 років тому

    Can you implement this PID controller using NI USB-6008?