Code for acquiring data not working like i'd expect

Hello everyone. I posted my code that collects voltages from an NI 9215 DAQ card. I'm wondering why it acts so interestingly. For instance, at frequencys that are multiples of ten the waveform graph is frozen in place, and at lower frequencys (2-3 Hz) the data is changing faster rather than slower. Take a look! I'd like any input you have.
Attachments:
Voltage Reader that displays increasing voltages.vi ‏23 KB

You are acquiring 10,000 samples at a rate of 100,000 samples per second.    So you are acquiring data 10 times per second.  If you acquiring signals that are a multiple of 10 Hz, then you are gathering integral number of cycles and it will look stationary on your waveform graph.
If you are looking at frequencies that are not a multiple of 10, or less than 10 Hz, then you are getting fractional or incomplete cycles in any given capture, and it will look like your sine wave is walking across the graph.

Similar Messages

  • Pasting code for HTML Widget, not working!

    Hello,
    I recently watched the support video for widgets and Adobe Muse, and the video stated you simply copy the code for HTML Widget, and once you paste it into Adobe Muse, Muse would be able to automatically recognize that it is a widget and it would paste correctly. However, when pasting my HTML code into Muse I literally get the code. Nothing appears!
    Any help would be greatly appreciated! Thanks!
    Brandon

    Brandon,
    If the code you're pasting appears  to Muse to be valid HTML to embed, it should automatically paste as an HTML page item. If it's pasting as text, it may not be valid HTML, or Muse might not recognize it.
    You can also choose 'Insert HTML...' from the Object menu, and then paste your HTML into the dialog box.

  • Generated Code for Button Bar - Not Working

    Hi all,
    I'm working with LightSwitch 2013 (Visual Studio 2013 Update 4), and I noticed that when I view my HTML5 client in Internet Explorer 11 and switch between tabs (in the HTML5 client), the buttons become barely visible (like they were disabled, but they're
    still enabled). Is there a quick fix for this, like regenerating the javascript that was generated to do this?
    Thanks,
    Gareth
    Edit: Here's a picture of what I mean. The button looks disabled, but is actually enabled. Any buttons that are disabled just show up as even less visible. Also, if I switch between tabs enough times, it'll fix the issue and look enabled again. Any advice
    would be greatly appreciated. Thanks!

    Have you added the button to the command bar for each tab or only the first tab?
    If you want 'Add OS' available in more than one tab then you need to add buttons to all relevant tabs, but wire up to the same command and event handler in code behind.
    Dave
    Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

  • Code for flash movie not working?

    ok, I have searched hi and low for this and found lots of great info from Wyodor on this forum but I just cannot get this to work! I have tried the code, replaced the paths and sizes relative, I have everything (swf flv) in the same directory on my server (not mobileme) but still nothing. All I see when I visit site is a grey box. What am I missing? It seems pretty straight forward. Please help! Thank you

    The URL appears in two places in the code. The most important one is after
    <embed src=
    Enter the URL to your flash file into the browser and it should play full screen on a page of its own if it is correct.
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve rsion=6,0,40,0"
    width="640" height="480"
    id="MovieName">
    <param name="movie" 
    value="http://www.mywebsite.com/FlashFolder/FlashFile.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="http://www.mywebsite.com/FlashFolder/FlashFile.swf" quality="high" bgcolor="#ffffff"
    width="640" height="480"
    name="MovieName" align="" type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer">
    </embed>
    </object>

  • Javascript code for showing time not working

    hi Gurus,
    i am changing the standard masthead of portal with the following java script. it comes for the first time, there is an auto refresh in the code. it refreshes once and then only the javascript is visible . All other parts of masthead goes off. What is wrong with this code
    <script language="JavaScript">
              var timerID ;
           function tzone(tz, os, ds, cl)
                this.ct = new Date(0) ;       // datetime
               this.tz = tz ;          // code
                  this.os = os ;        // GMT offset
                  this.ds = ds ;        // has daylight savings
                  this.cl = cl ;        // font color
           function UpdateClocks()
                   var ct = new Array(
                     new tzone('TYO: ', +9, 0, 'violet'),
                     new tzone('HKG: ', +8, 0, 'cyan'),
                     new tzone('MIL: ', +1, 0, 'yellow'),
                     new tzone('NYC: ', -5, 1, '#FFAA00'),
                     new tzone('LON: ',  0, 1, 'silver'),
                 new tzone(' LA: ', -8, 1, 'pink'),
                     new tzone('MUM: ', +5.30, 0, 'red')
          var dt = new Date() ;   // [GMT] time according to machine clock
          var startDST = new Date(dt.getFullYear(), 3, 1) ;
          while (startDST.getDay() != 0)
                startDST.setDate(startDST.getDate() + 1) ;
          var endDST = new Date(dt.getFullYear(), 9, 31) ;
          while (endDST.getDay() != 0)
                endDST.setDate(endDST.getDate() - 1) ;
          var ds_active ;         // DS currently active
          if (startDST < dt && dt < endDST)
                ds_active = 1 ;
          else
                ds_active = 0 ;
          // Adjust each clock offset if that clock has DS and in DS.
          for(n=0 ; n<ct.length ; n++)
                if (ct[n].ds == 1 && ds_active == 1) ct[n].os++ ;
          // compensate time zones
          gmdt = new Date() ;
          for (n=0 ; n<ct.length ; n++)
                ct[n].ct = new Date(gmdt.getTime() + ct[n].os * 3600 * 1000) ;
          document.write('<font face="verdana,arial,helvetica" size="-3" color="#000000">')
          document.write(ct[0].tz+ClockString(ct[0].ct))
          document.write(' ! ')
          document.write(ct[1].tz+ClockString(ct[1].ct))
          document.write(' ! ')
          document.write(ct[2].tz+ClockString(ct[2].ct))
          document.write(' ! ')
          document.write(ct[3].tz+ClockString(ct[3].ct))
          document.write(' ! ')
          document.write(ct[4].tz+ClockString(ct[4].ct))
          document.write(' ! ')
          document.write(ct[5].tz+ClockString(ct[5].ct))
          document.write(' ! ')
          document.write(ct[6].tz+ClockString(ct[6].ct))
          document.write("</FONT>")
          document.close()
                setTimeout("UpdateClocks()",1000);
        function ClockString(dt)
            var stemp, ampm ;
              var dt_year = dt.getUTCFullYear() ;
              var dt_month = dt.getUTCMonth() + 1 ;
              var dt_day = dt.getUTCDate() ;
              var dt_hour = dt.getUTCHours() ;
              var dt_minute = dt.getUTCMinutes() ;
              var dt_second = dt.getUTCSeconds() ;
            dt_year = dt_year.toString() ;
          if (0 <= dt_hour && dt_hour < 12)
                ampm = 'AM' ;
                if (dt_hour == 0) dt_hour = 12 ;
          else
                ampm = 'PM' ;
                dt_hour = dt_hour - 12 ;
                if (dt_hour == 0) dt_hour = 12 ;
            if (dt_minute < 10)
                dt_minute = '0' + dt_minute ;
          if (dt_second < 10)
              dt_second = '0' + dt_second ;
            stemp = ' ' + dt_hour + ":" + dt_minute + ampm ;
          return stemp ;                
    window.onload=UpdateClocks()
    //  End -->
    </script>
      Regards
    Venkat

    Hi Venkat ,
    I guess you are refering to the code at
    http://www.devasp.net/net/articles/display/403.html
    Tel me the requirement so that i can code and send you the javascript.
    thanx
    Pankaj

  • Purchased Activation Code for Aperture does not work

    I just installed Snow Leopard and experienced the issue with the old version of Aperture. So downloaded the trial version then bought the Activation Key for £69 but the Activation key they email ed me say "Invalid Code".
    I cut and paste and retried the install but to no avail. Emailed Apple Support and they sent me here to the forums because I quote
    "Hello Simon, My name is Brittany and I understand that you have not been able to activate or run Aperture. Please know, I can appreciate your concerns and I'm here to address them for you.
    As an iTunes Store Customer Support representative, I handle issues related to billing, downloading, customer accounts, and the items available on the iTunes Store. *The question you asked falls outside of my area of specialty*, but Apple does offer some resources that should help you...blah blah forums."
    How do I get a HUMAN to tell me how to get my money back or fix my problem. This is getting way too expensive.

    Since you paid in Pounds, I assume that you're in the UK. It appears that there's a toll in the UK.
    United Kingdom (44) 0844 209 0611**
    ** £0.05p per minute when dialled from a landline within the UK. Call charges may vary when calling from a mobile phone.
    http://www.apple.com/support/contact/phone_contacts.html

  • Link for source code for add-on not working

    I followed this link: https://addons.mozilla.org/en-US/firefox/addon/sabnzbdfox/?src=search (with the source download) and got a "404" (https://addons.mozilla.org/en-US/firefox/files/browse/76042/)
    Can I find the source code somewhere else and when I do, how do I update the broken link?

    Hi,
    You can also try after some time. To check for possible temporary network problems please see: http://status.mozilla.com/
    If the problem persists, please also try [https://addons.mozilla.org/en-US/firefox/files/browse/76042/ the link] in a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile].
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]

  • Redemption Code for PSE11 does not work - cannot obtain serial number

    What do I do if my Photoshop Elements 11 Redemption code doesn't work? I am trying to find a proper contact number and I can't. I need to use this code in order to get the serial number and install the product. Does anyone one have a solution? or a phone number?

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • Serial Key code for Adobe Audition not working

    I purchases Adobe Audition CS6 last week and I keep getting the message “The serial number you entered is invalid. Please try again. Customer Service" The company Leximart that I bought CS6 provided me  with a cserial key code that doesn't seem to work. Leximart is impossible to get a hold of by phone and there is nobody live to talk to at Adobe. Any suggestions?
    Thanks.
    Brad

    Brad you can try registering the serial number to determine if it is valid.  You can find details on how to register the serial number at Find your serial number quickly.  If the serial number is unable to be registered then please contact the party which you purchased Creative Suite 6 from.

  • My iMessage for ios7 is not working like it stopped working on 11-5-13 I need help trying to activate it again !

    I need help with my iMessage I don't have time to take it to an apple store! I need my iMessage to start working or at least let me activate it.  It's so annoying please somebody help me.

    Hello Jamienix,
    We've an article that can help resolve most issues you may encounter with activating Messages.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Cheers,
    Allen

  • TS1702 Skype for iphone 5 not working like it does on iphone 4s

    its intermittent, always hanging , unable to click the voice call, after restart device, uninstall the skype app then reinstall. Then it will work the skype. any suggestions please

    Basic troubleshooting is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Help! Simple function not working like you would expect

    So I have a bunch of Aux channels in my mixer window and am trying to use the hand tool to grab them, one at a time, and move them into an order that makes more sense to me within the mixer window and I am not able to get this to happen. No matter how I have the hand tool set- as the left click tool or the command click tool. I try to get the hand to "Close" somewhere within the aux strip so I can move it and it just wont happen.
    Anyone???
    Thank you in advance!!!

    Thanks for the reply! I understand this however the channel strips I am trying to move are aux channels and as such are not in the arrange window. I have concocted a "work around" but really, this seems like one should be able to move around the aux channels as one sees fit.
    ??

  • My passbook on my iphone 5 works the same as it did for the iphone 4, its not working like it should. why?

    my pass book on my iphone 5 does not work like it should, it works just the same as it did on the iphone 4, i tryed the date an time trick like 5 times an still nothing. i tryed factory reset an nothing. i know it workds different on the iphone 5 then the 4. but i dont know what else to do.

    Can you be more specific about what isn't working?  Are you running iOS 6 or iOS 6.1?
    Did you read the support page on Passbook?  http://support.apple.com/kb/HT5483

  • Siri is not working like it should i ask it to play songs and it just says sorry i cant do that any ideas y

    siri is not working like it should i asked it to play songs and it just says sorry i cant do it any ideas y

    Debbie:
    deborahfromwindsor wrote:
    he advises restarting by inserting the OSX disc and pressing down the C button to reboot from there then selecting disk utility, hard disk and repair.... Does he mean me to hold down the C key on the alpha keyboard or the ctrl key?
    Should I just ask for my money back??? If it is a simple repair do I just literally push the disc in, push the power button and hold down the C button?
    That's where I would begin, too, with
    Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.TStatus of HDD at the bottom of right panel, and report if it saysanything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need touse autility like TechTool Pro,Drive Geniusor DiskWarrior
    First we need to determine if the issue you are experiencing with the computer is software or hardware based. Once we have gotten things sorted out there should be time enough to make you decision about keeping or returning it.
    cornelius

  • The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I'm very computer literate and am pretty sure the problem is on your end.

    The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I've tried it multiple times and continue to get the same message: "NOT FOUND The requested item could not be found". I also tried through the Market application on the phone but ended-up with the same result.
    I'm very computer literate and am pretty sure the problem is on your end. If this is the case then no one can download the app. I considered that perhaps because it's still in Beta that it was removed due to some other type of software issue. I would really like to use Firefox on my new Droid (2.0); when with this be available?

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

Maybe you are looking for