I get two different outputs with "Digital 1D U8 1Chan NSamp"

I have two variations of a program that I am using to try and synchronize data collection at different rates.
Version A:
I have an anemometer attached to the DAQmx Create Channel (DI).vi
The Create Channel VI enters a while loop, and connects to DAQmx (Digital 1D U8 1Chan NSamp).vi, collecting 2000 samples
This create an output that feeds into a Build Waveform
The output of the waveform goes into NI_MAPro.lvlib:Extract Single Tone Information.vi to determine the dominant freqency of the pulses from the anemometer
The frequency gets multiplied through by a constant to determine the reading off the anemometer.
When I run this version of the program, I get that the windspeed is approximately 4-4.5 mph
However, I then needed to coordinate this 2-second collection rate with a photogate that is measuring rpm of a gear (60 teeth, approximately 20rpm, so pulses on about a 50ms cycle).  I then created version B of my program
Version B:
Utilizes two While loops.
  While loop #1: Just as in version A, but the reading off the anemometer at the end gets fed into a global variable (which is initialized to zero at the very start)
  While loop #2: Uses a series of nested Case Structures to determine if the photogate has detected a new pulse, and if so, updates all outputs derived from the photogate data to determine what tooth we're on, the rpm, the time since the program started, and pulls the current value of the global variable.
Both While loops are slaved to a Wait Until Next ms Multiple delay of 1ms to try and synchronize the two loops.
Now, when I run this program, in the exact same conditions, I get a windspeed of about 8-9mph, and the values from the global variable update about every 4 seconds (which seems to imply that there's a related problem). 
Can anyone help with this?
-G-

I'm sifting through the results for Time DIO (thanks for the quick suggestion).  In the meantime, here are the two versions of the program.  From what I've seen distant professional colleagues do, it should be fairly straightforward
Attachments:
Simple - Wind.vi ‏32 KB
RPM, Angle.vi ‏60 KB

Similar Messages

  • Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    The link is to a discussion started on 12/18 in the FiOS Internet forum.  Here's the link I get now, however it is different than the link I pulled a few hours ago.  If this system changes the link again, it may not work.
    http://forums.verizon.com/t5/FiOS-Internet/Frustration-and-just-confused-with-internet-help-please/t...
    You can also look for the topic, "frustration and just confused" in the FiOS Internet forum.
    Here's a link that is in the thread that gives more detail.
    https://secure.dslreports.com/faq/15984
    Good Luck!
    P.S.  "Copper Contributor" is my "rank."  gs0b is my user name.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • I have two different accounts with I-tunes and I want to link both purchases for my music to one account. How can I do this?

    I have two different accounts with I-tunes and I want to link both purchases for my music to one account. How can I do this?

    You are going to need to change the email address you use with your old ID. Once you have got access to your old account you will then log into both accounts at the same time on your Mac and transfer your data to a single account. We can do this later, but need you to get access to your old account first.
    My Apple ID

  • Why do I get two different results from the same coefficients?

    I am getting two different results from the Polynomial Evaluation function.
    For the first one, I am getting the coefficients from a Polynomial Fit function.  I feed the coefficients from the Fit function into the Poly Eval function and get the correct result of 12.8582 when I evaluate 49940.
    For the second one, I create constant array of the SAME values that were returned from the Polynomial Fit function (i typed them in).  However, I am getting an incorrect result of -120.7913 when I feed the constant array into the Poly Eval function when I evauate 49940.
    How can this happen when I am using the same array values?
    Attached is an image of what I am explaining.
    Solved!
    Go to Solution.
    Attachments:
    polynomial_evaluation.jpg ‏213 KB

    Hi Altran,
    are you sure about using the "same" coefficients?
    Did you compare them? Did you (atleast) set the display properties to 17 significant digits?
    Please attach a VI instead of a picture...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • IPod Touch stuck in restore. I keep getting two different error messages.

    Forgive me if you've seen this question before and if it's already been answered.
    I recently purchased an iPod Touch. It turns on but, you can barely see it. The Apple logo appears and then it goes straight to the restore screen. I updated my iTunes and everything and when I go to restore and update my Touch, I get two different error messages. The first one I get states "Error Message (21)." Now, when I go to unplug the USB cord and plug it back into my Touch, I hold down the Home Key. When I go back into iTunes, it starts the update, it now goes into "Preparing to restore". That's when I get another error message with the numbers "2009".
    I went to the Support page and tried the troubleshooting steps but, none have been successful.
    Has anyone had this problem? And if so, what was the solution?
    Any suggestions/advice would be greatly appreciated. Thanks.
    **Also, I never used a jailbreak. The only reason why I mention this is because no matter how high or low I search the net...every one comes up with a "jailbreak" solution. I don't even know how to go about doing that and I'm not gonna even trust myself trying either.
    Message was edited by: asher11
    Message was edited by: asher11

    Make sure the iPod is directly connected to a high-speed USB2 port on the Mac, using the cable that came with it. Also try disconnecting all other USB devices, other than the keyboard and mouse.
    Try restoring the iPod touch on another computer.
    If the iPod does not restore from another computer, request repair online, make a reservation to have a Genius at a local Apple retail store take a look at it or call AppleCare.
    https://selfsolve.apple.com/GetWarranty.do
    http://www.apple.com/retail/geniusbar/
    U.S. iPod and Mac technical support: 1-800-APL-CARE (1-800-275-2273)
    -Jason

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • Can you have two different users with itune accounts on the same computer?

    Can you have two different users with separate itune accounts on the same Ipad?

    Yes, create another user profile on the computer and each user can log into their own profile that way.

  • My wife and I have two different accounts with apple, and want to share a database.

    Let me start by saying that we both just moved from under a rock and started using Apple and Itunes. 
    I have a 4S she has a 4.  We both created an account before using Itunes.  I set up itunes on our home pc (XP) without thinking about her wanting/needing to share the pc for syncing and loading music to our phones.  I dont want to plug her in until I am sure we wont mess anything up. 
    Is there a way we can use one pc and two different devices with two different accounts without a divorce.  The majority of cds were hers, so i'm already on her bad list
    Please help
    Len Adams

    You're welcome.
    Happy Holidays to you and your family.
    Please note the items listed under Legend in the right sidebar of this page.

  • I have 2 copies of Firefox open (two different windows with lots of tabs), if I reboot can I restore both sessions?

    I have 2 copies of Firefox open (two different windows with lots of tabs), if I reboot can I restore both sessions? I am familiar with clicking history/ restore previous session, but don't want to reboot to let windows update to do it's thing unless I can restore both sessions.

    If they are running different profiles, then yes.

  • Can I have smart print eprint on two different computes with only account

    Can I have smart print eprint on two different computers with only one account???

    Are you talking about accessing an ePrint account from various computers? Or having  HP Smart Print on multiple computers?
    ePrint account information is kept at the site. You can log on it from anywhere, from any computer. Just go to the sire and click on Sign in and enter your password and email address. You can have multiple printers on one user account at ePrint Center (EPC). But printers can only be registered on ePrint Center to one user account.  If you have an ePrint cable printer you can create an account at this link here. 
    HP Smart Print does not require an account you can download to an Internet Explorere browser (versions 6-9) and use it with no registration. 
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • I am getting two different versions of the App Store in iOS 6.

    I am getting two different versions of the App Store in iOS 6.  One is the new one and sometimes when I open it it goes to the old one and says cannot connect to the App Store.

    I am having the same problem, but I think I might know what's causing it.  I just updated my girlfriend's iPhone 4S (same phone as mine) to iOS 6 and was surprised to find that her app store is working just fine.  When I opened hers, however, I did notice that the "Categories" and "Top 25" buttons are totally different; and those happen to be the two buttons that are not working for me.  Mine shows the same that yours does, while hers has the "Genius" and "Charts" buttons in the place of the two that are not functioning for me.  I believe these old buttons are no longer active and therefor are bombing out when attempting to access them.
    Now I said I think I may understand the problem, but unfortunately I have no idea what the solution may be.  Hopefully this tread doesn't fade away and our problem gets addressed.

  • I have published two different blogs with different usernames and passwords

    I have published two different blogs with different usernames and passwords. When I want to publish one, it goes through the whole process of publishing the other blog as well - and takes too long.
    How can I publish each blog separately?

    I have published two different blogs
    I think you need to ask in the iWeb forum rather than this one (for iWork/Numbers):
    http://discussions.apple.com/forum.jspa?forumID=1309

  • Why am I getting two different conversations when the same person txts me and sends me an I message? I thought they should be in the same conversation?

    Why am I getting two different conversations when the same person txts me and sends me an I message? I thought they should be in the same conversation?

    I'm experiencing something similar. My conversations are kept together but if the screen is opened to a conversation and I receive a text from that person it doesn't show up on the screen. The message alert in the upper corner indicates a new text but I have to back out of the screen and go back in to read it.

  • Two counter outputs with 90deg phaseshift

    Hi,
    I have NI PXI-1042 chassis and two NI PXI-6513 digital output cards in it.
    Task is to create two pulses with 90degrees phaseshift.
    Is there function in labview 7.1 which generates pulses descriped above. I`m meaning that if I tell function to count up, signal A is ahead signal B and if A is 90 degrees behind B it means counting down?
    Is there way to do this by connecting 3 (signal A, signal B and GND) counter wires all in one counter and controlling only one counter to "count output down" or "Count output up"? 
    - Santtu

    Hi Santtu,
    I think I understand what you are trying to do. 
    Essentially you have two counters, but you want to be able to control their
    phase relationship to one another.  This is definitely possible to do;
    however, there are not many examples dealing with it.
    I did find one Traditional DAQ Example (non- M-Series) that
    might help you out with this: Twin
    Pulse Train Generation with Variable Phase Shift Control
    Traditional DAQ uses an older API, so I would recommend you look at the
    attached example over this example.  Just wanted to give you more
    than one option.
    As far as it 'counting' up or down, that really would have
    to be done by a counter input task.  Since the input would be the same as
    that for a quadrature encoder, then you would use the methods described in my
    previous post.  As the output it will simply look like two different
    counters.
    For the best solution though, I went ahead and created an
    example for you.  It shows how to generate 2 different counter pulses that
    are out of phase with one another by a specified amount of time. 
    Hope this helps,
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments
    Attachments:
    Gen Dig Pulse Train-Continuous-Dig Start-Phase Shift.vi ‏82 KB

  • How to work with two different backend with same MI Server and war file

    Hi All,
    We have a requirement that we need to work with one Middleware for two backends. For that we had to copy MAM30 sync bo's to zsync BO'S with the name ZMAM30. Now both sync BO'S will point to different backends.
    I have a standard war file which was working well with standards sync bo's. Now to work on zsync bo's what all the changes do I have to do in the standard war file(code).
    As per my knowledge we have a file called "syncbonamelist.properties" which maps the sync bo keys. Also there is another file called "mapping.xml" file which maps the package name with BO name.
    Can any body please tell me, are there any other files needed to be change like "meRepMeta.xml", other than any existing code like java objects are also needed to be changed.
    Your help in this regard is highly appreciable.
    Regards
    Murthy

    Hi Murthy,
    I try to get my head around the question:WHY?
    The reason for my question is, that this influences the answer!
    Because of several reasons it is NOT possible to handle MAM and zMAM Bos at the SAME TIME on the SAME MACHINE in the way you describe it - and it makes no sence to do so at all! But anyway......
    Lets say you have two backends, cause you have two different areas of the company. But both want to use the same MI server - but the client should be independend.
    So you need two apps. One uses the MAM BOs and the second one uses the zMAMBos.
    If this is the case, dev should be straight forward I think and you solution should work already......... so I ask myself, what is the problem you have? Do you get an error?
    - First create a new MEREPMETA-XML with just the zMAMBOs instead of the MAM BOs.
    - Change the two files you mentioned above.
    This should be all then.
    If you have a look into the implementation for MAM001Impl for example, there you find a line like:
         private static final String SYNC_BO_NAME
              = ResourceBundle.getBundle("com.sap.mbs.mam.bo.impl.syncbonamelist").getString("MAM30_040");
    This takes the name from the properties file and maps it to the real BO. So changing the name in the property file to
    MAM30_040 = zMAM30_040
    will result in MAM uses the zMAM BOs.
    Be aware: after you place the WAR file in the WEBAPPS folder and do a restart to deploy the file, you need to do a data reset to make sure the new MEREPMETA.XML is read.
    AND: two apps! one for MAM and one for zMAM BOs. One APP is not possible! Cause if you have something like that in the properties file:
    MAM30_040 = MAM30_040
    MAM30_040 = zMAM30_040
    if will only take the first reading.
    But I think this is clear to you anyway
    Regards,
    Oliver

Maybe you are looking for

  • Check for null field

    I have a FormCalc script that checks to see if TextField1 == TextField 2 and if it does then set a value of 1, if they're not equal, then 0. However, the form is setting the value to 1 even though there is no entry in either field. I'm thinking I nee

  • Re-arrange the flat file out put in APD

    Hi Guys, I am loading data in APD,soruce is Query and target is Flat file.i want to re-arrange the out put file. Let me know what are the possible ways to re-arrange the columns in the out put flat file. Regards, Jayapal

  • Looking for a lightbox style extension for Quicktime Videos

    Hi guys, I am looking for a lightbox style extension for Quicktime Videos. I can't find anything on the net. Can anyone recomend something easy? Bare in mind I am not good with scripting.more of a designer. Thanks everyone.

  • IMP Problem - Synonyms missing

    Sir, I am doing an IMPORT. Database - 9.2.0.1.0 OS:Windows 2000 I create all the 9 users MHUBADMIN, MHUBUSER, MHUBARCHIVE, PPA, PPAUSER, SLIDE, SLIDEUSER, leads, wmc and assigned default tablespace and CONNECT,RESOURCE privilege to all users. Import

  • Translations in Portal30

    Hi, I have build a portal website in english and would like to translate it into other languages. The help talks of Creating a translation against a Content Area. In the Content Area properties, Translations Tab IT says Default Language English and s