Sending/Re​ceiving Signals using DAQ

I'm new to Labview and having some difficulties. I'm looking for some simple examples or tutorials that will take me through the process of sending and receiving both analog and digital I/O's. I've read through the user manual and searched on-line but haven't been able to locate anything very simple. I'm looking along the lines of creating a simple light switch. Any help or advice will be greatly appreciated.
Thanks

Couple of questions for you -
What multifunction daq board are you using?
What version of LabVIEW?
What operating system?
Basically, the best examples that you're going to find will be in the LabVIEW Example Finder. You can find this by opening LabVIEW and then clicking on Help >> Find Examples... The shipping examples with LabVIEW are very extensive and in depth, but they are more vertical meaning that you probably wouldn't find any that did both AI and DIO at the same time.
To find examples such as AI and DIO at the same time, or at least AI and DO at the same time, you will want to search through the example code library. If you give me some more informa
tion, I might be able to help you find something if you are not able to.
Jared A

Similar Messages

  • How can I play an audio signal using DAQ or other way?

    I'm designing a Voltage control amplifier. as shown in the attachment, I have a speaker connected to the power amplifier but all i have is noise. I like to know how can I put an simple audio to my circuit. My audio input is generated by the function generator. I only have a simple labview program which control my voltage input as attached.
    Attachments:
    Untitled.png ‏78 KB
    DAQOutputControlVCA.vi ‏45 KB

    No problem, your questions are not stupid. I just want to be sure you're digging into the examples and learning from them (they're a great resource).  
    The sound card outputs should be good enough to drive your circuit.  Most cheap cards or built-in audio chips have a jack for line out and headphones (which is just the line signal through a buffer amp so you have volume control).  Either on should work for your purpose.  The line out should give you a volt or more at reasonable current levels. There also MIGHT be a low frequency filter on the output meaning that you won't be able to output DC levels or very slow (<20Hz) AC.
    The jacks themselves usually have the signals (Left and Right) on the center conductors and the return is the barrel but you might want to look up your card's specs or probe the outputs before you connect anything to your circuit.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • How to use scb-68 board to send a trigger signal

    I am using Labview 8.5. Our DAQ card is scb-68. I want to send a trigger signal out by using the DAQ. Could anybody tell me how to do that?

    There is a program in another computer waiting for the trigger signal. We don't need to worry about that computer.
    We had a program which can collect data from a temperature controller. When the program start, it also sends a trigger singal out so that the two computers can work simultaneously. But now our temperature controller is changed to a new one. I've built a program to collect data. All what I need now is just sending a trigger signal when the program starts.
    One attachment is the former program (writted by using Lab  windows), another attachment is my new  VI for trigger signal.
    Attachments:
    trigger4.vi ‏28 KB
    diode_scan3.c ‏12 KB

  • I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assistant i am able to log data from one signal at a time only.

    I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assiatant i am able to log data from one signal at a time only.I am trying to get all 4 input data to logged in a single file againt time. I am new to Labview, I need to sample this data within a couple of days can someone help please.

    Naveen
    Check out the info in the Analog Input section of the document linked below.  (Ignore the part about Global Channels.)  In Figure 5, notice that you can select multiple channels while holding <Ctrl> or <Shift>.
    Developer Zone Tutorial: NI-DAQmx Express VI Tutorial
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • Using WRE to send a wireless signal rather than expand a signal

    Hi all, I'm hoping you might be able to help me out on this. I have a Linksys router and a WRE. The router does not have wireless, but i was curious if it's possible to trunk the router to the WRE, and have it send out a wireless signal, rather than pick up on and expand an existing signal. If so, what would i have to do to achieve this.
    Thanks!

    If the router does not have Wireless then you cannot use your Range Expander...In other word's, what you want to establish is not possible with the Range Expander...
    However, this is possible with a Wireless Access Point(WAP54G)...You can connect an Access Point(WAP54G) to your router to send a Wireless Signal...

  • Sending analog signals using SCXI bus to SCXI-1600 for digitizing

    I want to measure a signal generated in the SCXI-1181 custom bread board module.
    Is it possible to send the signal using SCXI bus to SCXI-1600.
    The signal is less than +5V & is positive.
    Is it possible to use AB0+ & ABO- in SCXI bus for this purpose?
    I have a SCXI-1001 chassis installed with SCXI-1600 in slot 1 & SCXI-1181 in slot 2.
    I have 4 more switch modules (SCXI-1160s) installed from slot 3 to 6.
    Will the above has an interference when you want to control the switches?

    see here:
    http://forums.ni.com/ni/board/message?board.id=250​&message.id=20644

  • How can I set the sampling frequency in Labview if I am not using DAQ?

     I am working with bluetooth to send my four signals from my circuit to the computer. So, I am using VISA to acquire the data in labview. Since as you know its not possible to use DAQ while using bluetooth. 
    anyway after getting the signal I need to filter ir for analysis part and I am using filter express VI from signal processing's functions. However, I am getting error, since I dont have the sampling frequency set and I am not able to set it in my filter function either.
    I was wondering If there is a way of making labview recognize the clock-timer as the sampling rate or any other way to set the sampling frequency somewhere before the filters. 
    here is the program, you can take a look at it.
    Attachments:
    shift final - Copy.vi ‏363 KB

    Sender side is sendng 2 bytes of FF in the begining of the loop and 2 bytes of zeros between each signal, I am attaching the code as ICCV8 file (I will also attach it as a notepad file), so you can see what I mean. I had written some solutions for that as well in my program before but not sure if it was correct or not. I tried to search for  FF bytes as a string, after getting each 18 bytes. But apparently it doesnt find the FF, I reckon because of wrong conversions beforehand, so it stops the programm there. Im attaching the that program now as well. could you please take a look?
    Attachments:
    main.c ‏2 KB
    bluetooth code.txt ‏2 KB
    ok - Copy.vi ‏159 KB

  • Subtracting two waveforms, one aquired using DAQ analog voltage input, and the other one being internally generated

    Hello NI Community,
    I am new to LabView and was hoping someone might be able to help with a question I have. Right now, I am using a DAQ unit to sample an externally generated sinusoid and I would like to alter that signal by adding to it another signal that I could control using the front panel. Whenever I try to just connect the input with something like the sine waveform vi and put a subtraction sign between them it doesn't work (I get an empty waveform graph). To get around this, I have resorted to sending out a signal (through an analog output) and then reading the signal on the Daq, and then finally I add the two together. Doing it that way works, but it wastes two channels and I imagine there is a better way. I have attached my VI, and I labelled the location of interest  "Where the Signals Get Subtracted", which is currently shown using the two inputs.
    Thanks,
    Leo

    What a mess.  I have no idea where you are trying to do the subtraction.  Can you make a very small VI (one whose Block Diagram fits on a single screen) that shows what you are trying to do?  Include the Sine Wave Generator, and you can include a "Black Box" that says "From DAQ".  But thank you, at least, for posting code, not a picture.
    Here's a suggestion that may help make things less messy -- do you know about the Diagram Cleanup tool?  See the icons at the top?  The right-most one looks like a broom next to a VI.  Save your VI first (in case you don't like what it does), Select All (Ctrl-A), then click this button -- you may like the result.
    Bob Schor

  • New project using Daq Assistant or not ?

    Hi everybody,
    I need to create a software to do some realtime acquisition & analysis.
    I trained myself a little bit on c# lessons to get use to this programming language; I’m also discovering Measurement Studio & Visual Studio. (I’ve background in C++).
    My software will have 2 modes :
    Continuous acquisition, signal plotting + signal processing & plotting (fft, 1/3 octave band filter)
    Triggered acquisition, signal plotting + signal processing & plotting (fft, , 1/3 octave band filter)
    I have examples in my National Instruments directory which don't use daq Assistant and code is different from generated files with daq Component.
    If I use Daq Assistant ( http://www.ni.com/tutorial/4652/en/ )
    I know that the code to create channel is stored in DaqTask.cs
    Plotting :
    NationalInstruments.AnalogWaveform<double>[] acquiredData = daqTaskComponent1.Read();
    waveformGraph1.PlotWaveforms(acquiredData);
    When I look to examples, like "MStudioVS2010\DotNET\Examples\DAQmxWithUI\SpectrumAnalyzer\cs "
    all code to create channel is generated in Mainform.cs, there is no Daq Assistant (http://www.ni.com/tutorial/5409/en/ )
    and there is a slight difference between acquired type :
    private AnalogWaveform<double> data = new AnalogWaveform<double>(1000);
    data = reader.EndReadWaveform(ar);
    acquiredDataWaveformGraph.PlotWaveform(data);
    Questions :
    What is the difference between AnalogWaveform<double> and AnalogWaveform<double>[] ? why it's not the same type ? I need to do some signal processing with this signal, so what type should I use for my application  ?
    I didn't succeed to configure my 2 modes in daq Assistant (continuous and triggered acquisition) is it possible or should I create 2 Items in my solution, one for continuous acquisition and on for triggered acquisition ?
    Kind regards,

    Check out the downloads section of iLounge.com. There are a handful or two of applications that will help you transfer songs from the iPod to the computer.
    Another option is to network the two computers together and transfer the iTunes folder to the new Mac. All you need is an ethernet cable and to turn on file sharing in the Sharing preference panel. Depending on how old your "older" Mac is, you might need a crossover ethernet cable.
    A third option is to hook up the two computers using a Firewire cable. On the older Mac make sure it is shut down, hook the two computers up, turn on the older Mac while holding down the "T" key. On the new Mac you should see the old Mac's hard drive show up. Just find the iTunes music folder and copy it over. You could also use the Migration Assistant which will be in the Utilities folder of the new Mac.
    Hope this helps.

  • How to use DAQ Assistant to display two analog channels in a XY Graph

    Hi,
    I am new to LabVIEW. I have been assigned a project in which i have to display two analog signals from an analog potentiostat i.e. voltage and current (also a voltage signal) on a graph using labview. I am using a myDAQ device to acquire these analog signals and I am using labview 2013 to display these signals on a graph. I am using DAQ assistant to configure these signals. Rightnow I have separate graphs for each channel. However, I want a single XY graph to display one voltage as a function of the other i.e. I want to have voltage on the X-axis and current output on the Y axis. Any kind of help is greatly appreciated.
    I have attached a screenshot of the VI. that I have made.
    Regards,
    Max
    Attachments:
    New Microsoft Word Document (2).docx ‏32 KB

    Thanks for the quick response. I was able to make a X-Y graph. However, I can only see a dot floating around. It's not drawing anything. I want to see it making a plot as it collects data. Also, I want to see the complete waveform formed when I stop the VI.
    Thanks,
    Max

  • How to send a ttl signal with a good exactitude less than 10ms?

    i have a pci 6013 (8 input channel) and pci 6711 (4 outpout channel).Then i need to send a ttl signal to a camera ccd to take a photo when a waveform sinus is equal at zero (rising), but when i send this TTl signal with dasylab using generator pulse or combi trigger and readind this signal, i have difference between dasylab pulse(that is exactly) and measurement pulse that is approximate 40ms after.But i need to have less than 10ms is it possible?
    Frequence rate =1000hz and block size=512 the waveform sinus is 0.2Hz.i have already try to increase the sampling rate but nothing happens.Thank for your help.

    Yes, it's possible.
    You just have to reduce your block size to 10 !
    For more informations, visit Forum Dasylab en français at http://forum.aceboard.net/?login=128657
    Frédéric Miqueau
    MD Electronic, France
    http://www.mdelectronic.fr
    French Dasylab Forum : http://www.dasylab-forum.de/forum/index.php?showforum=43

  • How to send a modulate signal by the NI PXI-5441?

    How to send a modulate signal by the NI PXI-5441?
    I am using NI PXI-8108 / PXI-5441.
    I want to send a binary signal modulated (FSK) by the 5441. I tried to use, without success, the modulation VIs with the Fgen VI.
    Thanks

    Hi Mauro,
    the code structure is similar to any structure of I/O. You need open the communication channel with the hardware (using VI Open), use VI Write/Read to send/receive data and close the reference (VI Close). You can look the structure in LV examples.
    Nevertheless, if you cannot, post your code that I analize to you.
    Regards,
    Ricardo Ramos
    Engenheiro de Vendas - Sul
    National Instruments Brasil

  • When using DAQ assistant to read frequency

    When using DAQ assistant to read frequency and Task timing is set to:
    N Samples, Clock settings to read 26,
    Frequency setup to rising edge,
    1 counter with 10 kHz to 1 kHz range.
    I get back a single number.
    Can I assume this is an average reading of 25 samples with the first sample unused?
    What is the base clock used?
    Is the “26” 26 cycles of the frequency to be measured?

    Hello,
    If you choose to acquire N samples from the DAQ Assistant then it will acquire all of these samples and return them to LabVIEW as an array.  However, when you use the DAQ Assistant it outputs the data in the dynamic data type first.  This data type makes it easy to graph and run the data through other express VIs.  If you were to create a Numeric Indicator from this data type it would just display the last element from the dynamic data array.  To display this data properly in a numeric format convert the dynamic data to an array of doubles by using the Convert From Dynamic Data function in LabVIEW.  Then you can select to convert it to a 1D array of scalars and when you create an indicator off of the output of this function all of the data should be displayed.
    The timebase that is used for lower frequency measurements is the onboard clock, which is internally connected to the Source.  Then you connect your signal to be measured to the Gate of the counter.  Since the frequency of the onboard clock is known it can be used to calculate the frequency of an unknown source based on when the counter is on and off (determined by the Gate). 
    Have a good day,
    Brian P.
    Applications Engineer

  • Sending and receiving Signal through Internet connection

    Hello,
    I want to send data that is a continuous generated signal through internet.
    I want to transmit this signal live through internet technology.
    I don't have any background of web development
    Can anyone suggest me how could I send and receive data using internet.
    Regards

    Hello,
    I have made a basic VI using Network Stream, it send Random Number generator which i want to plot on a waveform chart on the other side.
    But when i run the VI on continuous mode it gives an error as End point broken on the client side.
    Kindly guide where i am lagging.
    Regards
    Attachments:
    streams.vi ‏14 KB

  • Splitting one signal from DAQ

    Hi I m just working on my project and part of this is also build interface in Labview to use DAQ device 6008.
    DAQ device serves to acquire Voltages from thermistors and my interface should split this signal for example like this:
    =if(and(x>=8,D65<=8.54),-33.1*LN(D65)+46.12,if(and(x<8,x>=7.12),-40.1*LN(D65)+34.11,if(and(x<7.12,x>=6.15),-51.2*LN(D65)-0.28,"Out of Range")))
    but this is just excel equation that works. I tried to do something similar in quation node because that would be the simpliest way for me, signal that enters the node is x and leave as y and goes to the waveform chart, but it didn`t work.
    Then I built this interface thanks to the greater, lower icons and it was working fine till I was using number indicators icons as my input, but when i replaced them with DAQ device there was lot of issues with data types I was using and even after I fixed them there was all of sudden other problem with my equation node (because I needed to write condition somehow I used node) DAQ didn`t like it.
    Any help please. I m new in this world then if someone will know what to do, please try it in simple world.
    thank you in advance

    Hi and thank you for your answer.
    First file is the interface I created without DAQassist because I was told it will be the same when the numeric controllers will be replaced with DAQ assist, and this interface works.
    The next file is with DAQassist and there is many errors regarding the wires types and even when I add "convert from dynamic data" after signal is split then I get next error, and even when I ad "index array" that is recomended for this error when I run simulation I m getting next error regarding my functional node.
    If you can help I would really appreciate it.
    I have to find my very first file which include only functional node and I will forward it to you.
    Best regards
    Tino
    Attachments:
    Tino_equation_node.vi ‏124 KB
    Tino_equation_node_DAQ.vi ‏176 KB

Maybe you are looking for

  • Expense Report Summary page does not show any totals - only zeros

    Hi All, On creation of Expense Report in the portal  When entering a billable expense report, when you get to the summary page is does not show any totals - only zeros for other two schema's its working fine like displaying totals we are surprised th

  • PO cancellation issue

    Hi, Can we cancel a fully matched PO. If no,, then i did that. Now the question is this: Q1: in my PR worklist, one line is from that PO . If i will return this line then the status will be returned. Q2: If i will perform above activity, is it affect

  • Deploy Java Classes to the Database 2

    Hi, I have made a program with JDeveloper, and with the function deploy I can store the code in the Oracle database. But now I want to use the loadjava tool. I put all the class files in one jar file and used the following command: (when I put the .j

  • IPhoto '11: How can I save my red-eye correction changes?

    iPhoto '11: I'm not able to save red-eye correction changes in my photo. In edit mode, the red-eye correction takes place automatically and according to the help documentation, the automatic changes (or manual changes) are saved when I press "Done".

  • Help with missing font matter

    The problem started after adopting Windows 7 OS.  I have many manuals written in previous version of InDesing which some Type 1 fonts were used. In my Windows 7, there is no type 1 fonts  (furthermore, Type 1 fonts are not compatible with Win 7).  So