PID with digital output

Hi,
I have the application.
I do not clear about PID function but, I would like to ask you about my application.
I have a sensor water level and a few motors to control gates
I measure water level and control motor via digital output(using the fieldpoint system)
I would like to hold water level at level, so I use PV indicator  and SV control. when I change SV then will  control Motor (RW or FW motor).
Can we use how technology to hold water level PV=SV  ?.
Please let me know your comments.
Thanks
Nguyen Van Hung

Hi Nguyen,
There are several examples in CVI under Help » Find Examples that may be able to help speed up the development of your PID program (assuming you have purchased the CVI PID Toolkit).  These examples can be found by going to Toolkits and Modules » PID and Fuzzy Logic Control » PID.  Depending on how familiar you are with PID algorithms, I might suggest that you look at the GeneralPid example first.  Additionally, the PID Control Toolkit User Manual t is also a great place to look at the algorithms and the library functions.  Finally, in case you aren't aware, you can double click on any function that you find in the Libraries folder located in the bottom left of CVI to open a functions panel which will show all inputs and outputs of a given function.  Then, you can right click on any parameter to view details about that or on the function panel (outside an input box) for more information about the function in general.
I hope these resources help you design an algorithm that works well for your situation!
Regards,
Trey C.
Applications Engineer
National Instruments

Similar Messages

  • Help with DIgital Output Array with 6062E DAQ CARD...

    Good morning, folks... I need some help with digital output of the 6062E PCMCIA card... I can output 1 line without problems... I need to control a 4066 with my digital outputs... I am doing this without greater problems... but there's something... I need that when one of my outputs is high, the others become low, unchangeably... so I tried to use an array to control my output and I couldn't do that... some errors showed up... can you help me please? Maybe there's any errors at my software, then I thank you if you help me... the vi is anexed...
    Best Regards...
    Attachments:
    Untitled 3.vi ‏20 KB

    See below for one of many methods. Change the "lines" string for your setup.
    Also, please explore the Examples that ship with LabVIEW, and read your card's manual.
    Richard

  • USB-6009 pulse train generation with digital output....

    Hello!
    I've bought a new USB NI-Card (USB-6009) and now I'm trying to adopt an old vi that uses traditional DAQ drivers. I wrote that vi for a PCI NI-Card (PCI-6024E), which has two counters to generate two pulse trains simultaneously. Now I've only one counter and that's why I'm searching for a good way to create pulse trains using a digital output! The pulse trains are both ranging between 100 Hz and 100 kHz.
    I'm sure somebody has an idea how I can solve the probem in the best way
    Kind regards,
    Peter

    You can't do it with this low cost board. Both digital and analog outputs are software timed only. The analog out is rated at only 150  samples/sec and the digital is about the same. You can't even use one of the counters because it is not a hardware timed counter output. It is an event counter only as an input.

  • Problem with digital output and microph

    Hello! I recently bought a new motherboard MSI K8N SLI Platinum that have onboard Sounblaster Li've 24bit, with coaxial and spdif and also the standard outputs. I ve connected via a fiber optical cable to my amplifier and i checked the digital output only box to the advanced settings on the mixer. I am hearing sound very well from my amplifier but when i connect headphones to with microphone to my soundcard , i don't hear anything at all from my headphones. Also i cannot speak via microphone. If i uncheck the box digital output only i hear sound from my headphones and also i can speak to microphone. Is there some way to have them both enabled? In my previous motherboard i didn't have that problem. I could hear sound from my amplifier with pcm signal and from my headphones and microphone analog at the same time.
    Thanks!

    Thibaud,
    The clue is here: " i take acquisition with one sample on demand."
    You are apparently using software timed output. To maintain accurate phasing at 80 Hz you need timing which is accurate to better than 4 milliseconds. This is not likely to occur with a desktop operating system. Sometimes it will be good and other times OS latencies will throw the timing way off.
    If your board supports it, use hardware timing. The timebase sources on most boards are far more precise and accurate than software timing.
    Lynn

  • HP Headphone jack with digital output

    OK, so HP customer service is officially garbage. Everyone knows that, i just had to get it out of the way before anybody responds "Just ask customer service".  I have a HP Pavillion dv6724ca notebook with 2 headphone jacks.  I heard that one of them is a digital output jack for 5.1 surround and my sound card specs say that i have digital output capabilites (go DXDIAG.exe - Realtek Digital Output), but I cant get it working.  I have a 3.5mm mini TOSLINK to TOSLINK connected, i have enabled my digital output in Realtek HD Audio Manager, i have checked the supported formats in my Realtek Digital Output properties.....but still nothing.  Am i missing something?
    thanx

    I don't think your model HAS the headphone/mini-toslink SPDIF jack, RE: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01443331&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US... .  The HDMI port is SUPPOSE to support BOTH digital Video AND Audio... however I BELIEVE that there was/is some problems with the Audio side on some HP models.   BUT to be sure however, use the search facility to search on HDMI.  If everything is working according to spec (on the PC AND on your  >>>TV<<< ), you should ONLY need a single HDMI cable to do what you want ... but I fear you are going to run into problems.  Report back your findings.
    Good Luck.

  • Digital stimulus-f​requency response: Need to drive with digital output trigger. Using counters for response.

    I need to drive stimulus-response with a software driven digital trigger and NI-TIO counter based response. No analog I/O is really relevant, although I have a PCI-6035E multi-function DAQ as part of my gear. I intend to use the analog, but its timing is non-critical and can be software timed.
    The real trick is that I want to set the basic timing of the system (in the range of 1 - 50Hz) from the timer0 on the 6035E. This signal needs to be replicated to drive a trigger pulse and to route through RTSI (or a PFI) to trigger frequency counts using the four possible groups of counter/timers on the 6602.
    What I need is:
    while( enabled )
    Repeat at (
    software controllable rate = 1-50Hz)
    Trigger Sets a PFI line for 10-20us
    same trigger sets an RTSI line
    - Software Set Delay (usually zero)- stable is more important than the delay time!
    Count for software set time on 4 counters
    analog samples
    Post-process
    I want to do this in LabView. I have checked out the Advanced sychronization demos online, but the examples all use analog triggering and buffered digital I/O. This doesn't really address what I need to do.
    I have made some failed attempts which relied on software to sync up the trigger and the response frequency acquisition. This is definately flawed. I need to start the counting right after setting the digital output trigger, and stop the count after a fixed interval for frequency calculation.
    I am having trouble working through the signal routing to get the timing to trigger off the digital stimulus output pulse.
    Any help would be appreciated
    Thanks,
    Joe

    Joe
    What are you using the trigger from the 6035E for? I do not know what you mean by, "to trigger frequency countes."
    If you are having problems just routing the signal to the 6602, here is a vi that shows you how to route a signal through the RTSI cable to use as the source of a counter.
    Brian
    Attachments:
    Route_RTSI_to_Source.vi ‏67 KB

  • Trouble with Digital output on Live Value under Windows

    I have a soundblaster li've value card in my system using the digital output in win98se and all works fine. I just upgraded to WinXP. The windows drivers worked fine once i switched them to digital output. However, i lost the Creative mixer and wanted it back. I then downloaded your Unipack driver for the Li've card for winXP and lost the digital output even when i toggled to digital output control. I then downloaded the li've value from the Gateway site since they OEM'd the card in my system and the digital is working again. However, they do not provide the Creative mixer. Is there anyway I can get the Creative Mixer to work in XP wiith the li've value card? Thanks
    Soundblaster FAQ states:
    Some name brand systems shipped with a special Li've! Value card that was made to work with digital speakers. If you system shipped with a Li've! Value and you have digital speakers you will need to use drivers provided by your system manufacturer. If you use the drivers on the Creative website your card will no longer work with your digital speakers.
    Boston Acoustic Digital Speakers or Prebuilt System With a Digital Li've! Card
    If you have a set of Boston Acoustic digital speakers that came with your system and they are not working with your sound card, make sure you have it connected to the digital out on the card. Also make sure that the digital out is enabled.

    I still always get the value 0.0 returned for minA. I
    know that the data is being correctly stored because I
    have a seperate report frame that displays all values
    for all entries.
    Any ideas where the flaw is?
    Thanks!
    Hey, there. It's unlikely that your users are entering negative numbers which are the only numbers that will be less than zero. You need to initialize your minA to be some quite large number.

  • No Sound Output with Digital Output Mac

    Hi There,
    I normally use my Blackmagic card for sound output on my Mac with Premiere CS6.  I want to work with the digital output on my current project but when I try switching to digital out under Preferences>Audio Hardware the audio still comes out of the Blackmagic card but not the digital audio out on the Mac.  I'm testing with the bars and tone in the browser and my timeline sequence.  FCP 7 works as expected when digital out is selected, and I know digital out is working properly on my computer.
    Any suggestions?
    Thanks!
    Gerry

    OK, sorry it was that I had to switch audio device under plackback.
    Perhaps this should be added to the FAQ under No Sound During Playback, which doesn't include the Preferences>Playback as part of the troubleshooting for MAC.
    Thanks!
    Gerry

  • Help with Digital Output software

    Hey people. I need your help to improve my software. I need to use some digital outputs. The software does this:
    - Choose which one battery to monitor
    - Activate only one digital output at a time
    Ok, I have done this, but I guess it's not the best solution. I've tried to make it a lot of different ways, mainly because I am using the VI's several times and it is not an "optimal code". Well, beyond that, I can't have two digital outputs HIGH at the same time, i mean, I CAN'T have LINE2 and LINE3, for example, at HIGH (true) at the same time. 
    Does anybody have any idea on how to help me?
    Thank you very much!
    Attachments:
    Medidor Bateria.vi ‏65 KB

    Thank you very much, Jeff. I know my solution is not the best, but I need to ensure that only one of my outputs be at HIGH level. I am trying to use the RADIO buttons, and the program is attached here. But there is this problem, that is I repeat all the VI's. Please check this for me, if you can. Thank you very much, your help is very important!
    Attachments:
    Medidor com Radio.vi ‏28 KB

  • Synchronous LED display with digital output

    hi,
    In the experiment I want to control a relay, so I use the MAX to generate a digital output task and then transfer it to example code in labview as below. How can I amend  this code so that when the module ouput 1 there is a synchronous LED display on the front board.
    Thanks~~~

    Use single sample digital writes inside your loop.  Use a shift register to hold the state (T or F) and invert each iteration.  Now you can just wire the state wire to a front panel led and be sure that it is sync'd to the digital output.

  • IPod with digital output?

    We all know that the iPod only offers an analog audio output and the quality is limited. It does not matter what you hook it up to, it still sounds just like the analog outputs.
    But I just read this products, seems very interesting. Keen to get one (if it proves work - but review available yet)
    http://www.sound4sale.com/index.php
    The iLink System costs $1,995 !!!!!! may be not worth, I am looking for the iPod Upgrade which costs $199 and I can still connect it with my DAC in digital
    By the way, I believe that some of the users may not heard this MSB company before, but I must say that it is a well know audiophile company

    A Zune was an Microsoft product that was similar to an iPod.  Microsoft terminated producta year or so ago.
    Zune - Wikipedia, the free encyclopedia

  • Need help created state machine with timed digital output

    Hello everyone I'm new in LabView especially about how to make a state machine. I want to make simulation about state machine with digital output. In Front Panel there are volt_in as an input slider (0-10 V), two numeric control (upper limit and bottom limit), a waveform chart to plot those 3 value, and three boolean (P0.0, P0.1, P0.2) as an indicator. Boolean indicator will on if input from slider exceed the limit in certain situation. This simulation will work as follow:
    1. Define the upper & bottom limit (ex. 8 & 4V)
    2. Make an input from slider (0-10V)
    3. If input (2) exceed the upper limit but less than 10 second (ex. you have 9V input for 8 second, but after 8 second you change the slider back to normal between 4-8V) then the boolean indicator P0.0 & P0.2 will stay off
    4. If input (2) exceed the upper limit more than 10 second (ex. you have 9V input for 4 second, change to 8.5 V for 3 second, and then change to 10V for 3 second) then the boolean indicator P0.0 will turn on for 5 second, turn off, then follow by indicator P0.2 for 5 second, and turn off
    5. Wait 15 second, then repeat process from (2)
    Same process for input that exceed the bottom limit (P0.1 and P0.2 as indicator).
    Can you help me make the block diagram of this process? I will appreciate any of your help.
    Best Regards
    juventom 
    Attachments:
    State Machine Digital Output.vi ‏28 KB

    I would highly recommend you to open the template in LabVIEW to design state machines. You can the Standard State Machine template if you go to File -> New.. and Browse to VI -> From Template -> Frameworks -> Design Patterns.
    Also, here is a good explanation of one:
    https://decibel.ni.com/content/groups/northeast-oh-labview-users/blog/2009/09/08/state-machines
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Dtt3500 and Audigy Gamer, digital output only 2 channel unless its D

    Ok I recieved a response concerning my last comment but unfortunatly it did not answer my question at all. I have a DTT3500 and a sound blaster Audigy Gamer hooked up with the digital out to the /8 din adapter. I try the advanced 3d demo that came with the Audigy software and I only hear the front 2 channels, no center and no rears. The demo where you move the little icons and sound moves along with it. I have 5. activated in my windows control center along with audioHQ and digital out only is selected. my DTT3500 has 4./5. digital selected along with dolby digital/pcm audio and digital in. I am not getting the effect of multisurround at all. My center works and my rears work because playing music I can use all 5 speakers. When I use the analogue outputs I hear multisurround from the advanced 3d demo but my center doesnt work. The analogue setup sounds better but without a center channel its useless to me. Am I doing something wrong? I am using the adapter and digital DIN, what gives? The only reason I noticed I wasnt getting surround was while playing games nothing comes from behind you even on 5. games. The goldmine demo doesnt even work right, when the bird flys behind you it disappears but there is still sound from the rears. Analogue fixes this without a center but the manual and setup say to use the digital din. Do I just have a setting wrong? I would like to experiance the full capacity of multispeakers in my games.

    Dennis,
    With these speakers the connection that I would suggest would be to use the Digital out on the back of the sound card into the DIN Input on the DTT3500's. This will require a converter cable for /8'' Minidin to standard DIN which can be purchased from here:
    http://us.creative.com/products/prod...0&product=0375
    You will also need a standard DIN cable (one should have shipped with your DTT3500's).
    This should give you 5. with digital output only enabled on the Audigy.
    Jeremy

  • Digital output NI 9474

    Hello,
    I am trying to learn labVIEW DAQ, and right now I am trying to figure out how to use NI 9474 with labview. NI 9474 is a device with digital outputs. I have attached a (poorly drawn) schematic of how I have my real circuit wired. For some reason, the voltage across the resistor is 9v instead of whatever the digital output should be when i set daq assistant to be 1 sample on demand. When I change daq assistant to continuous samples, it reads 4.6v. So I am wondering what am I doing wrong and what should my digital output be?
    I have attached my vi file, so can someone please help me figure out how to use NI 9474 with labview?
    Solved!
    Go to Solution.
    Attachments:
    DO example.vi ‏44 KB
    schematic.png ‏16 KB

    You are supplying 9V, so you should have 9V going across the resistor.  I'm thinking what is happening with the Continuous Samples is that it is toggling between High and Low.  If you measured that with a DMM, you will get around 4.5V.  Measure with an oscilloscope to make sure what is happening here.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • System Identification with Digital System

    Hey,
    So when using the system identification toolkit, the user excites the system with a analog signal. After they're finished with the entire process they're able to get a plant model of their system. So what if they're system will be using digital inputs/outputs (e.g. a digital amplifier on their proportional valve), can their system be excited with digital outputs and then achieve a digital plant model? Or must their system be an analog system to use the toolkit?
    Thanks

    If your search didn't turn them up, then you probably have the base package of LabVIEW and the functions are not included. The search function is at the top of the functions palette.
    You can use either function provide data to a DAQ output. If you want to use an analog output, you just have to wire the waveform to a DAQmx Write. Look at any of the shipping examples for DAQ output. Most of them use waveforms such as a sine wave but it doesn't matter. Waveform data is waveform data.

Maybe you are looking for

  • Phone service out - repair is no show

    My father's house phone has now been out a week.  It went out last Tuesday.  He tried to call service last Wednesday but was cut off after waiting an hour.  So I reported it over the internet  last  Thursday and requested a repairman.  Verizon schedu

  • How can i call a CGI script from java?

    The subject pretty much says it all. I want to call a perl cgi script so i can read from/write to files on a server. I don't know how to sign applets and this would be the easiest way for me, if someone could please tell me.

  • How to create a restore 10.6.8 starup on an external drive

    I would like to create a restore disk on an external HD for my OS 10.6.8 I have arrive that is partitioned; one being used with Time Machine for a backup, another for OS 10.8 as a startup. I'm just trying the 10.8 for a while to see if I like it, and

  • When upgrading from Abobe Acrobat Pro 9 to XI, is it possible to save Headers and Footers in documents?

    I support a law firm that users headers and footers in their documents.  They are upgrading from Adobe Acrobat Pro 9 to XI.  when they did an install on one PC, the headers and footers in a PDF did not show and had to be recreated.  Is there a way ar

  • Question about par file...

    Hi, There are two followin par file in pcd root directory I don't know their uses...so give me answer for which purpose they use/ 1> com.sap.portal.runtime.flash.flashanywhere 2> com.sap.portal.runtime.flash Thanks in advace