Why is the DAQ outputs distorted?

I am trying to output two voltage sine waves(90 degrees out of phase) from my DAQ card. I use a for loop to create two arrays of 1000 samples each. I then send each of these arrays to my DAQ card for sampling of 5000S/s. One of the outputs(measured on an oscilliscope is perfect while the other clips and is distorted. Why am i not getting twp perfectly good sign waves?Is this a hardware issue?
Please find attached my LabView file.
Thanks,
Gilly
Attachments:
Sine_forloop_nearlydone.vi ‏91 KB

I haven't looked at your vi yet, don't have 8.6 on this machine (please identify the version when attaching vi's), but do have some questions. Are they both set to the same amplitude? Are you looking at them individually (re: single channel scope) or both channels at the same time? Are they both connected to the DAQ inputs in the same way. Usually, if there isn't an actual hardware problem with the outputs, distortion and clipping are caused by; 1) trying to output a waveform of an amplitude greater than allowed, 2) trying to drive a seriously mismatched load. In the later category hooking up to the DAQ incorrectly might cause a problem.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion

Similar Messages

  • How can I stabilize the DAQ output to four decimal places

    I have a daq 6009. I sent a optical signal. DAQ provides a output which varies in 3rd  decimal place. I done averaging all using a program which I'am attaching with this. So can you please help me in this regard 
    Attachments:
    data acquisition 2 (SubVI).vi ‏71 KB

    You need to find a DAQ with a lower Absolute Accuracy.
    Also, looking at the spec, you can get a better accuracy with a Differential measurement than you can with a RSE.  Apparently the RSE only works in the +-10V range.  By changing to a differential, you can get down to a +-1V range.  That will help your resolution a little bit.  Just wire the ground to the - terminals on the DAQ.
    Another issue could be noise in the system.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Why is the BinaryFormatter output's size so high

    Hi there,
    given this example:
    class Program
    void Main(string[] args)
    myFoo = new foo(string.Empty,
    string.Empty);
    BinaryFormatter bf = new BinaryFormatter();
    MemoryStream memstream =new MemoryStream();
    bf.Serialize(memstream, myFoo);
    byte[] bytes = memstream.ToArray();
    Console.WriteLine(bytes.Length.ToString());
    Console.ReadKey();
    [Serializable]
    class foo
    private string foo1;
    private string foo2;
    public foo(string s1, string s2)
    foo1 = s1;
    foo2 = s2;
    Why do I get an Arrylength of 142 bytes although I am serializing a simple class with two empty strings. And wouldn´t it be much more efficient to write my own serializer with Encoding.ASCII.GetBytes , etc...
    Thank you for your answers
     

    Ok, I think I expressed myself in a wrong way. I didn´t consider my approach to serialise an object to be more efficient than the BinaryFormatter class. But the resulting byte package is much more smaller in my approach in terms of size. So when I use encoding.ASCII
    I get 1 byte for every character of the strings. Wouldn´t that be better in case I have to send this package over a network for example. Of course I have to make sure that there are some kinds of seperators between the strings and I have to provide a deserialise
    and serialise methode on both sides. Please correct me if I am wrong.
    But anyways thank you for your answer

  • Why is the print output including spaces between every letter?

    All printed output has spaces between each letter. Example:
    A l l p r i n t e d o u t p u t h a s s p a c e s b e t w e e n e a c h l e t t e r .

    Caused by a Bug in 4.0b12, Was fixed in the 02-28 nightly, and the fix will be in the 4.0RC version due to be released next week.

  • Why is the headphones output jack so loud?

    The output from the headphone jack on the left of my MacBook Pro 15" (base model, latest as of 16/07/11) is incredibly loud. Even when my Mac has the volume on one 'bar' or 'block' when using the volume buttons, it's still extremely loud and almost deafening. I fear how loud it must be over two blocks, because I simply can't listen to it.
    Is there any change the min/max volumes that are possible? This MacBook Pro is only 2 days old.

    blakei21 wrote:
    Changing the output volume in Settings yeilds the same result, still very loud. I also performed a PRAM reset and it's still very loud.. this is a really weird problem :\
    Hmmm. Agreed, very weird. There have been many and varied issues with MBP audio out ports. I would try another set of headphones, if possible, and if same issue there, contact Apple. 90 days free phone support, 1 year hardware warranty, 14 day return/exchange period.

  • HELP! Why is the music sounding distorted

    Hi there, so i put on all music on the ipod, and two days later it is sounding all distorted and garbled, do i have to take it all off and start again? This ipod nano sure has its imperfections...thanx

    The equalizer might be on.
    On the nano, even if the equalizer is set to off in the iPod settings, the equalizer setting in iTunes is used. If you have a track in iTunes with a custom EQ set to, say, "rock" the iPod will use rock. It may sound fine though the computer speakers but not so good though the earbuds.
    Not all iPods are consistent about how they use the per track EQ settings from iTunes. On a 5G iPod, for example, setting the EQ on the iPod to off means it plays everything flat.
    You could try setting the EQ on the iPod nano to "flat" while the song in question is playing. If that clears it up you should set that song to use a flat EQ in iTunes. Then it will always play like that on the nano.
    Most modern music doesn't need equalization and adding it usually makes music sound distorted and garbled.

  • HT3986 Why does the sound output not work on Windows 7 Bootcamp?

    The internal speakers work fine, but I want to use my surround sound and can't seem to get it to work. It doesn't even work with headphones. Is there an update I need to install or what?

    Alll I can offer is what I bookmarked, that you can access, other threads, and of course Google and what others have found works.
    A simple instruction manual I can't offer but a few words of wisdom, Apple provides driver to enable a chip or device but that is not the end, just the beginning.
    "Cirrus+audio+iMac+Windows"

  • At the end of test, how do you set the DAQ driver output to zero.

    I'm a new LabVIEW user,I'm reviewing an existing program that has a clearall.vi which supposed to set the DAQ output 6025E to zero volts at the end of each test. But after turning the power supply off to UUT, the Vcc on UUT still measures between 2-3.5v I checked some of the output Port A-C and DIO still puts out 5.1v. I checked the output port bit status in the program and says it sets at zero logic. Confused and thanks for your help.

    Hello,
    Unfortunately, I am unfamiliar with the clearall.vi. If it was not a VI that was created by National Insturments, then we will not be able to support it. If it was, maybe you could direct me to where I could find it.
    What it sounds like you want to do, however, is to ensure that your digital outputs are placed at 0 when your application completes. Are you using a digital I/O device, which one? When a digital line is written to, it will retain that value untill it is written to again or reset. Therefore, I think what you want to use is the Device Reset.vi. This VI will return your digital lines to their default value. The knowledgebase titled "What is the State of My Digital Lines After Performing a Digital Output Operation?" and located http://digital.ni.com/public.nsf/websearch/E309E3FCC758DB1586256C8600702CE1?OpenDocument talks more about this.
    By the sounds of it, you have your digital lines from your device connected to the Vcc line on your UUT, and that a voltage is still being provided even after no power is supplied to that unit. What you may want to do, just as a test, is to manually tell the device to write a zero, and then measure the same readings that you currently are to compare them.
    Post back to this forum if you have further questions after reading this discussion.
    Sincerely,
    Jared A.

  • Fourier Transform and the DAQ Assistant

    Hi,
    I'm trying to take the fourier transform of a analog voltage measurement in Labview 8.6 and I'm having a problem with the data.
    The measurement is an anaolog input voltage signal taken using the USB-6211 box.  I am acquiring the signal on ports 15 and 16 (differential) with the DAQ Assistant at a rate of 5KHz, 200 samples.  The setup works perfect thankfully, and a very nice waveform plot is generated on the VI.  I would now like to add a fourier transform of this plot to do some frequency analysis.
    I found the FFT function, but when I tried to add the DAQ output to it, I got an error about dynamic data.  It takes me to a screen which I don't understand about dynamic data conversion, and I'm not sure what to do from this point.  My FFT graph is basically just a flat white line, which is wrong.
    How can I just take the basic fourier transform of a waveform in this setup?

    Hi
    Your thinking is not bad. You have only some scaling problems. You may toy with the vi I am sending. Change the log/linear control and see the result.
    You will find all information you need here http://zone.ni.com/devzone/cda/tut/p/id/4541 and http://zone.ni.com/devzone/cda/tut/p/id/4541. The dt value is the reciprocal of the sample frequency(1/x) The unit is second, and it will give you the time interval between two samples.
    Also note how I use the "Dynamic To Waveform Array.vi" to convert the dynamic data. This VI is not documented by NI, but you find it here ...vi.lib\express\express shared\transition.llb\Dynamic To Waveform Array.vi
    Good luck
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    Spectrum Analyzer.vi ‏32 KB

  • When I send a 5v from the DAQ, the voltmeter shows 5V, but when i connect a "normally open valve" from parker to the DAQ, the voltage automatically decreases to .14 V. It seems like it is being grounded. Why is this happening?

    We are sending 5v to the DAQ using a voltage generator. We hook this up to a voltmeter and we see 5V. When we connect the voltage generator to a "normally open valve" from parker, the voltmeter shows .14V. It seems that when we connect both wires from the valve to the voltage generator, the wires are acting as a ground. We wish to control the voltage that flows to the valve through Labview. We checked the wires of the valve and they are working fine becuase if we send a constant 5V from the DAQ and grounded it, the voltmeter shows 5V. Does anyone know why the wires are acting as a ground and dropping the voltage to .14V?

    nsatpute wrote:
    Our DAQ is NI USB 6259. The valve only requires  a max of 5V and our DAQ does provide up to 5V. However, after connecting the valve to the DAQ, the voltage drops to almost 0. We are assuming that the wires somehow act as a ground, but we are not sure if this is the case. 
    The issue here is not how much voltage the valve wants, it is the current the valve needs.  The 6259 can only put out 5mA through an analog output.  Your valve very likely needs a lot more than that.  So you need to add in an amplifier circuit that can supply more current to operate your valve.

  • How can I start a loop before the DAQ Assistand outputs a value?

    Hi everybody,
    I created a VI (See attachment) to Measure the speed of a turning wheel. (A optical detector outputs pulses which are proportional to the speed) The DAQ Assistant measures the frequency and the values are written to a log file. To log every 100 ms the value into the table, there is a while loop with should be executet 10 times a second.
    The first question:
    I want to start measurement as soon as I press "RUN". In fact, my VI first begins to run and log data when the wheel turns and the frequency is not "0". But I want to log data too, if the speed is "0". How can I programm that in Labview?
    The second problem:
    Labview writes not continuely the values: Sometimes 7 values a second, sometimes 11 values.... (I can see that because i log the time too). But if the programm runs for some seconds its getting better and better.
    How can I force Labview to run the loop exactly tacted? Is my Computer too slow? Or is my method to log continuely data simply wrong? I am relative new in Labview and would be thankful in getting help.
    Markus
    Attachments:
    Measure Frequency and Log data.vi ‏63 KB

    I would say right off hand from what you describe that the issue is not related to computer speed, but choice of operating system. Windows is not a deterministic operating system - this means you can't count on how long it will take to do anything.
    Mike...
    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

  • How to control a digital output signal using the DAQ assistant?

    I am using a USB 6251 DAQ board and would like to control a switch. I am gathering airflow, pressure, and acoustic data on the same board (analog input) and would like the switch to trigger when the airflow value is within a pre-determined range. Finally, I would like to reverse the polarity of the switch (to off) about a second after the initial digital signal, all of which is during continuous data acquisition.
    I am able to actuate the switch only when pressing the "run" button in the DAQ assistant window. I am proficient with data acquisition but have never tried programming an output... Please help!
    Thanks!
    -a troubled researcher
    P.S. I am running LabVIEW 8.5 as well.

    blsmith4,
    You probably won't get the control of the digital port on your card by only using the DAQ Assistant. One of the following examples should provide you the functionality that you would like out of the box:
    Digital - SW - Timed Output (Simple)
    Digital - Continuous Output (More Complex)
    Continuous Write Digital Port - External Clock - Non Regeneration (Most Complex)
    Let me know if these work better for you.
    Best,
    Jason M.
    Applications Engineer
    National Instruments

  • Need to graph one DAQ output vs. a second DAQ output on the same graph.

    I am having trouble graphing two DAQ assistant outputs on the same graph.  One output vs. the second output.

    Hi there,
    You have to convert the DDT signal that comes from the DAQ Assistant to get or data in two arrays.
    Then bundle them into a cluster and use a XY Graph.
    See attached example:
    Hope this helps,
    Paulo
    Attachments:
    XYGraph.vi ‏101 KB

  • Why is the Analog signal from the FPGA is distorted?

    Hi,
    I am using the PXI-7831R board with LabView 2010. I'm trying to transmit TDMS files from the computer hard drive via the analog output of the 7831R.  I've used the "Basic DMA output - R series" example and replaced the generated signal with a TDMS file. When I tried it on a synthesized pure sine file, it transmitted the positive part of the sine wave (which was a little distorted) but instead of the negative part I saw 0V DC. When I tried to use a "real" TDMS file (that I sampled earlier) the signal came out completely distorted. In both cases I used a graphic output in the host VI and checked that the data coming from the file is ok. Can anyone help me with that?
    I would also appreciate some explanations on the "Update Rate" block (I suspect that he's the one causing all my trouble) - how am I supposed to use it and is it mandatory?
    Thanks in advance.

    It sounds like when you are using the sine wave, you are clipping the data.  I am assuming that this is because you are sending it negative values.  R-Series cards can not handle fixed point values, so try to offset the signal so that the lowest point of the signal is at 0.  See how that works for you.  As far as the Update Rate goes that controls the speed of your loop.  If you do not set it high enough, the loop will simply run as fast as it can.  I hope you find this helpful.
    Brandon Treece
    Applications Engineer
    National Instruments

  • Why does the published swf output from Presenter 10 fail to play when the zip output is uploaded to my LMS?

    On Win 7, using Presenter 10 the published output .swf (and associated files in the .zip collection) produces only a blank browser frame (both IE10 and Chrome) on upload and launch from the LMS. The index.html file is referencing two .js files that do not exist...
    <script src="./data/html/Project.js"></script>
    <script src="./data/resources/ha/wr_/OpenAjaxManagedHub-all.js"></script>
    Also, seem to be missing a presenter.css file in ./data/html I think the presenter.libs.js file is referencing.
    Are these files required for playback and correspondingly that's why only a blank browser frame is presented on the LMS launch?
    Is it possible that when I publish to my local these files are not being populated in the output .zip for some reason?
    Any help isolating the cause is much appreciated!
    -Ken

    @Willam I am wondering if the first problem has not been properly described. When viewing generated help if you right click and select View Source, as you know, you will get the HTML for the tripane window. I think Rtrown wants to see the code for the default topic. If so, that is something like View this frame.
    Turning to the last paragraph, there is also some confusion there.
    When this first happened, I wondered if the project was corrupted, and I tried a technique I picked up a while ago, involving removing the xpj and cpd files from Windows Explorer, and attempting to restore from the *.FPJ file. However, I get a message saying 'This file is not an HPJ file. Please select an HPJ file to open'. The project does not have an HPJ file! So I had to rebuild the project.
    First, you should only delete the CPD file in most scenarios. See Opening Projects on my site. Deleting the XPJ should not be done other than in a few situations. Secondly, you then restore from the HHP file, not the FPJ file. Not sure how you would do that. Finally an HPJ file is related to RoboHelp for Word and is its equivalent of the XPJ file in RoboHelp HTML.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • Follow-up question for Chris H on longtext in BDC for IW31

    Chris - Here's the relevant part of my code: PERFORM DYNPRO USING: 'X' 'SAPLCOIH'          '3000',            " ' ' 'CAUFVD-KTEXT   '   SCRN_PROBLEM1,     " 1st line problem text ' ' 'CAUFVD-ANLZU   '   CAUFVD-ANLZU,      " System condition ' ' 'BDC_

  • Can no longer send email from my pop accounts or my .mac from iPhone

    My phone won't send any email anymore. In fact, when I compose a message and hit send it just disappears. No record of it anywhere. All my mail accounts used to work perfectly! I've checked all my settings and have tried from both wifi and the ATT Ed

  • Querying Cubes on Update Rules?

    I have an update rule that currently queries an ODS to get the value of a key figure and then apply that key figure to the cube the update rule is intended for. Basically, this is the select statement I use in the routine: select defect_quantity from

  • Presenter 7, 8 and 9

    Waht is the difference between presenter 7, 8 and 9

  • Issue Mac OS 10.7.2 with Lotus Notes 8.5.3 menus

    Is anyone having a problem with Mac OS 10.7.2 and Lotus Notes 8.5.1 or now 8.5.3 where the menu items and Apple Menu no longer drop down? All other items on the main window of Notes seem to work, just can't select any of the main menus at the top of