How do I use a daq analog input value to output a voltage based on if/then statements?

I am the first one here to start using labview and am not familiar with any of it. I am pressed for time and need simple solutions to accquire two analog signals from turbidimeters in volts and use them to turn an alum pump on or off in order to automate a pilot water treatment plant. If someone could correspond with me via email or instant messaging, I would greatly appreciate the assistance. I recognize the power of labview but have been tinkering with it for a week now and have no luck producing results. I do not know if there is already a VI out there that does this, but that would be a tremendous help. Again, someone to correspond with would be the ideal solution.
Thank
s,
Jack

Basically the job isn't very difficult. All you have to do is use the built-in comparison fucntions to generate a logic level based on the value of the meter output. This boolean value (a green wire on the diagram) can drive the selector input of a case structure. In the case structure you put the code to turn the pump on or off as needed.
Contact me directly at [email protected] and I can give you more details if you need them or have more questions.
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
Attachments:
demo.vi ‏13 KB

Similar Messages

  • To test how can we use the opt  'logical file name' to name the file based

    Hi Sir/Madam,
               to test how can we use the opt  'logical file name' to name the file based on the selection made in the dtp run for extracting data as flat file.

    Hi Vishali,
    In the DTP select the file location as application server and give the logical file path. The actual file and logical path can be created using transaction "FILE" and "AL11".
    Rest of the process is same as that of extraction from local file.
    Regards,
    Durgesh.

  • How do I use two DAQ cards in one Labview code? Current I'm getting error " error 200558 occurred at DAQmx Create Channel.vi. One task cann't contain multiple independent devices". Can someone help me?

    The two DAQ cards are NI PCI-6070E & NI PCI-6052E. The Labview I'm using is labview 7 Express and the Window system is Window XP. I'm using NI SCXI-1000 chasis and SCXI-1102 & 1102B two modules plus a feedthrough SCXI-1180. 1102 is connected through SCXI-1349 cable to DAQ card 6052E while 1102B is connected through SCXI-1349 cable to DAQ card 6070E. SCXI-1180 is connected to 6070E through SCXI-1349 adaptor on the back of 1102B.

    Sarah, thank you for replying my question. It seems that I'm making progress everyday (smile). I'm able to run the test using both daq cards in my code now. But as I'm moving forward, I'm getting new questions too. How do I use one STOP button to control both tasks and how can I save data into one single file?
    I attached my code here hoping you can get the specifics on my application by looking at the code. Thanks very much!
    Thanks.
    Attachments:
    DAQmx_Task_Example_plus_voltage_2.vi ‏416 KB

  • How to you use more than one input with an audio interface

    Looking at the PreSonus FireStudio Mobile. Nice little box. It says that it has 10 inputs, 2 are the usual XLR/-1/4" type and there are 2 gain control and 2 meters. But there are 6 other inputs on the back. How would one use those? With only 2 gain pots on front? Also how do you configure LE to take those all in? I generally record on track (input) at a time. But what if I want to record more? How do I do that?
    Thanks

    Yes. If you are in the Photos app in thumbnail view (i.e. the photos are not full screen), then if you tap the icon top right of the box with the arrow coming out of it, you should be able to select up to 5 photos and be able to then tap the Email button top left to attach them to an email

  • How to enable 2 or more analog input pin in arduino uno labview simultaneo​usly for voltage analysis?

    Hi everyone,
    i am new to labview and using arduino uno board for measuring microwave analysis in my project. i want to measure the refflection coefficient by dividing two analog input received to arduino (Vref and Vin) to obtain so. problems come where i just can analyze only one analog input pin only. please, kindly helped to figure it out.i've try the others solution where i create two while loops for different analog pin. u can refer to my circuit in the attachment below.i really2 appreciate ur help, thank you.=)
    Attachments:
    reflection coefficient and Vswr.vi ‏665 KB
    front panel.PNG ‏66 KB
    block diagram.PNG ‏40 KB

    Try this if you have a POT around hook it up to the arduino than use the AnalogInSerial.pde and  load it to your arduino exit out of the arduino platform and  than try my VI see if this helps you.
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    TalkToArduino.vi ‏28 KB

  • How can i use an ao card (pci 6723) to output data and to trigger an ai o acquire the data coming from the ao card?card (pci 6254) t

    Hello
    I am trying to perform AO (pci 6723) and to trigger my AO card (pci
    6254) to read the data coming from the AO card. I am using LV7,1,
    win2000.
    Is an RTSI cable necessary or I can connect the trigger signals externally ?
    I am using the LV example " multi function - synch ai-ao.vi" but i can't for some reason configure the trigger lines.
    thank you in advance for your time.
    Yiannis

    Hello Yiannis,
    If I understand you correctly, you want to synchronize your analog input and analog output that are started by a trigger on the analog input board. If you don't want to use the RTSI lines, your best bet is to export the AI Sample Clock and then read it in to the AO board. There is an example on ni.com called DAQmx - Synchronized AIAO Shared Clock. It appears to be having techincal issues so I have attached the example below. To export ai/sampleclock, use DAQmx Export Signal.vi after Get Terminal Name with Device Prefix.vi. Export Sample Clock to PFI3 (There are only connections between the sample clock and PCI3/4/8/9). Connect PFI3 on your AI board to PFI0 on your AO board (with a wire). Then change the source for the AO Timing.vi to Devx/PFI0. If you want to do triggering, stick the DAQmx Trigger.vi between the Timing property node and the DAQmx Start.vi on the AI task. I have shown how to do this in the modified version below. Please take a look at it and let me know if you have any questions. If you still get an error please take a screenshot of it and post to the forum. Have a great day!
    Sincerely,
    Marni S.
    Attachments:
    Synchronized_AIAO_Shared_Clock[Modified].vi ‏140 KB

  • How can I use comma in the return values of a static list of values

    Hi all,
    I want to create a select list (static LOV) like the following:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN','NY'
    I write the List of values definition is like this:
    STATIC:both are "Y"; 'YY',one is "Y";'YN', 'NY'
    However, it is explain by htmldb like this:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN'
    / 'NY'
    I tried using "\" before the ",", or using single or double quote, but all these do not work:(
    How can I use a comma in the return values?
    Thanks very much!

    "Better still, why not process the code of both Y with 2Y and one is Y with 1Y? "
    Could you please explain in detail? thanks! I am quite new to htmldb
    In fact I have a table which has too columns "a1" and "a2", both the values of these two columns are "Y" or "N". AndI want to choose the records that both a1 and a2 are "Y", or just one of a1, a2 is "Y".
    So I write the report sql like this:
    "select * from t1 where a1 || a2 in(:MYSELECTLIST) "
    Thus, I need to use "," in the LOV, since expression list in IN(,,,) using ",".
    Any other way to implement this?

  • How to create Graph display depends on input values/

    hello,
    I want to show moving line graph that changes depends on input values.
    If I get input as wireless device receiving signal strength, I want to display the receiving signal strenth changes in graph.
    Is it possible in java.
    what class shall I use for this graph display.
    pls give any information regarding this.

    www.jfree.org

  • Using all 3 analog jacks for stereo output on xfi extreme aud

    Hi guys, hoping you can help. I know that you can hook up two devices and use a 4. configuration with stereo surround but is it possible to have 3 devices hooked up (sixphonic instead of quadraphonic...does that make sense?). I have jack to my headphone amp, jack 2 going to my computer speakers and was hoping that jack 3 could be used for speakers in another room.
    cheers,?

    I don't know the card you have there but normally by setting
    - speaker mode to 6. and
    - CMSS to stereo surround
    should do the job --> all stereo pairs outputs the same audio as stereo then. Check from the User's Guide of your card, if you need some special jackplugs there.
    It's even possible to stream audio from two or three separate playback software to separate output channels by using ASIO and WDM/KS capable playback software in combination + above mentioned settings.
    AFAIK, your card does not supportASIO nati'vely so your only choice is to use WDM/KS but, as there aren't audio player that suppors WDM/KS as needed (Foobar, Winamp, MediaMonkey as for an example supports WDM/KS through output plugins but there's no channel mapping available). By using ASIO4ALL, you might want to try this but unfortunately, you need to find two or three nati'vely ASIO capable software for playback (some players may allow you to run multiple copies as separate players.
    Nati've Instruments BeatPort Player (maybe not available anymore) and SYNC can be used,
    Foobar 0.9.x -> supports ASIO channel mapping but, I don't know if this mapping works just as neded like it does on those nativly ASIO capable software.
    jutapa
    Message Edited by jutapa on 06-29-2008 0:03 PM

  • How can I use the HDMI through input thunderbolt?

    I have a fire stick TV from Amazon I would like to use it on my macbook pro retina .

    You choose them to be used in the lens correction panel in Develop:
    Beat

  • Embedd excel in browser, use excel interface for inputing values.

    Embed excel sheet in browser and give application same functionality as excel sheet gives. We can use the excel sheet for input and able to update the values in database.
    Please provides the solution as how to do it. Is there any reply...........

    you can use applet to do this work.
    Jxcell spreadsheet somponent is a excel compatible spreadsheet.
    It can be embed in java applet.support cell format,formula,pic,chart etc,
    all these can exchange with Excel.
    http://www.jxcell.net

  • How do I use the same bluetooth device with different iOS devices without having to "Forget" then "Pair" every time?

    Hi,
    I have bought a pair of Sennheiser MM100 wireless headphones and they are great, however, I'm having trouble switching between devices.
    I have an iPad2 and an iPhone 4s and the headphones connect to both with no problems. My issue comes when I want to switch from using the headphones with my iPhone (listening to music on the walk to the train station) to using them with my iPad (to watch a movie on the train). The iPad still shows that it is paired with the headphones but will not connect saying that they must be turned off or out of range. Even if I turn the headphones off then on again, they immediately reconnect with the iphone.
    I've tried deselecting the headphones as the source for audio from the airplay icon before I make the switch and have also done this before turning them off and then back on again.
    The only way I can make the switch is to turn the headphones off, tell the iPad to forget the device, turn the headphones on (by holding the on button for 5 seconds it automatically goes to Pair mode). I pair up the iPad and it connects fine. But I have to go through the same process when the train pulls into my stop to be able to use the headphones to listen to music to walk to work!
    Is there an easier way? I thought I would just be able to use the airplay icon to deselect it on one device and select it for the other.
    Any help would be much appreciated. I'm going to miss my stop on the train some day!!!

    Here's the trick.
    turn on the headphones.
    It will connect to the device it last connected to ...assuming that its' on.
    go to the bluetooth menu of your phone or ipad (if it's a computer you want to connect to I'll tell you that trick in a second.
    and so now, hold down the S button on the headphones for about 4 or 5 seconds (the same button you use to turn on the headphones) ...the light goes from blue to blinking red....now you're in the pairing mode...which is good...now in the bluetooth menu simply select the mm100 and it will connect...
    you won't have to type in the 0000 or tell it to forget the device..
    but by holding down the button and putting it in pairing mode it frees it from being connected to the device it automatically connected to and lets it connect to the device you choose. this is true of any bluetooth headset.
    if you want to connect to your computer, again...hold down that button on the headphones for 4 or 5 seconds till it enters pairing mode, then on your computer if you have a speaker icon in the menu bar, hold down the option key while selecting the speaker icon...you'll see a list of devices ...select the mm100 and your good to go.
    if you don't have the speaker icon there..go to system prefences and choose the mm100's there.

  • NI daq 6008 simultaneously analog input

    Hello;
    For the NI 6008 card sampling frequency equal to 10 kS / s and it has 8 analog inputs, but if I will use the 8 analog inputs simultaneously, what is the value of the new sample rate for each input analog obtained during an acquisition in labview?
    best regards.

    Duplicate post - http://forums.ni.com/t5/Multifunction-DAQ/NI-Daq-6008-and-Labview/m-p/3095362

  • 6025e Analog Input not shown correctly

    I use a 6025e on the Analog input channel 0 are 7 volt connected. The Testpanel show this Voltage but if i read this channel via AI_VRead(DAQ_Devicenumber,DAQ_force,1,&force)
    i receive only 4.99 Voltage.
    why ?
    what should i do, to solve the problem

    SuperWolfi,
    If you look at the 6025E User Manual, in the Specifications Appendix A, you will see that for a gain setting of 1 you will have an input range of +/-5V. If you use a gain setting of 0.5 then your input range is expanded to +/- 10V.
    In your call to AI_VRead you are using a gain of 1, instead of 0.5. For information on how to set the gain for your board, please reference Appendix B:
    Analog Input Channel, Gain Settings, and Voltage Calculation of the NI-DAQ Function Reference Manual. You will find that -1 translates to a gain of 0.5.
    6023E/6024E/6025E User Manual
    http://digital.ni.com/manuals.nsf/websearch/0C88F40FFE7F28CD862569AE00574AC1?OpenDocument&node=1065_US
    NI-DAQ Function Reference Manual for PC Compatibles
    http://digi
    tal.ni.com/manuals.nsf/websearch/1630A0B68738B269862567C1007A2912?OpenDocument&node=132100_US
    Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • Difference in analog input and analog output values

    i am using 6014 DAQ card for providing motor speed reference voltage to Driver and reading back speed
    feedback voltage using LabVIEW 6.0. For this i have used AO Single Update and AI Single scan. Both are in the same while
    loop.The loop has a Wait timer of 50ms. When i take a plot of Analog o/p and input, i get a shift
    between input and output. Why is the shift or the time not synchrnised..please help..When the while loop wait timer is 200ms instead of 50ms, the shift is not there.

    I believe the problem is 2 fold. First if you are using traditional DAQ, or DAQ 6.9.3 or before, the driver is single threaded. Therefore the 2 VIs will not run simultaneous. Try DAQmx and you may be more successful.
    The other is that you are using higher level 1 point VIs. In general they are not the best to use in a time sensitive loop. You are better off using hardware timing, rather than software timing. With hardware timing you have more control over the synchronization of the 2.

Maybe you are looking for

  • Help needed in upload command

    Can anyone please help me in finding out the meaning of the field values of second APDU What I try to say is how the value " C4 82 03 81" is calculated. I am able to figure out rest of the values of the upload command. cm> upload -b 250 "C:\....\app\

  • My speaker are not working?

    Speaker are not working

  • MANUAL SYNDICATION

    How can I do manual syndication using with MDM PI Adapter?  I open a map, but it prompts me where to save the XML file.  For FTP you need to point the XML to the ready but for an MDM PI Adapter, what would I be needing to direct the XML file for the

  •   javax.microedition.io.ConnectionNotFoundException 

    Hi, I'm using j2me wireless toolkit 1.0.3 for testing a small program.. it is working fine for http connection.. but when i'm using socket connection.. i'm getting the following error.. with all the devices.. i would b thankful to u if i u can advice

  • Why does iDVD crash every time

    I am using iDVD 7.1 (1145) on my iMac (OSX 10.6.5 / 8GB). I can start iDVD, create a new project and select a theme, but as soon as I click the media button in iDVD the program quits. Nothing else appears to be affected. The same version of iDVD runs