How do I simultaneo​usly measure two frequencie​s using the two counters on a CompactDAQ chassis?

I am using two encoders as speed wheels to compare two different speeds simultaneously.  I have the encoders connected to the two counter inputs of my CompactDAQ chassis using NI 9423 cards in order to measure the frequencies produced be each and then I convert that data into speed.  How do I efficiently measure these frequencies simultaneously?  I say efficiently because the only way I can get it to work right now is to create a task for the first encoder, gather my frequency data, clear the task for that encoder and then move onto the next.  This is a slow process and therefore the measurements are not exactly simultaneous.  If I try to measure them simultaneously I get resource errors.

Hey Kevin,
Thank you for the information. The cDAQ-9172 has two counters on the chassis itself.  There are no counters on the actual module.  What this means is when you access Counter 0 using a module in slot5 (for example), you are actually accessing Counter 0 on the backplane of the chassis.  This is why you are getting the resource is reserved error.  If you have the other input frequency connected to the second counter of the chassis, you just need to access it using Counter 1 instead of Counter 0.
In your code, for the Counter 2 input, you have "cDAQ1Mod6/ctr0".  If you just change that to "cDAQ1Mod6/ctr1", this will get rid of your "resource is reserved error.  Also, to get both your tasks to be a little more closely synchronized, you should probably use a sequence structure to be sure that they start together. In the code below, I have used two seperate counters on two different modules and synchronized them.  If you are using the same module you would just need to change the counter inputs to represent the two different counters on the same module.
Hope that helps.
Regards,
Message Edited by Raajit L on 04-02-2007 11:00 AM
Raajit L
National Instruments
Attachments:
Counter Parallel Tasks.jpg ‏66 KB

Similar Messages

  • How can we share and transfer data at Labview using the internet

    How can we share and transfer data at Labview using the internet
    Dr. Eugene Berman, Moran Kamilyan and Ravit Bar

    [email protected] wrote:
    How can we share and transfer data at Labview using the internet
    Check these links:
    Basic TCP/IP Communication in LabVIEW
    Data Sockets
    Integrating the Internet into Your Measurement System

  • How can I set up an older airport express using the newest airport utilities?

    How can I set up an older airport express using the newest airport utilities? Seems like there isn't an option to set this up.  Normally you could add/set up this in the airport setup assistant- but that doesn't exsist any longer.
    Thanks for any suggestions 

    How can I set up an older airport express using the newest airport utilities?
    Unfortunately you can't, since Apple dropped support of the older AirPorts with AirPort Utility 6.x.
    Using some workarounds....not supported by Apple.....you might be able to download and install an older version of AirPort Utility that would allow you to administer the older AirPort.
    See this thread for more details and instructions:
    https://discussions.apple.com/message/21397085#21397085

  • How do I scan multiple pages into one document using the CanoScan LiDE 200?

    How do I scan multiple pages into one document using the CanoScan LiDE 200?
    I can't seem to find a way to get them to scan continuously, or a way to stitch them together afterwards.

    Hi dagda24,
    You can scan multiple pages into a single document with the scan to PDF option.  Use the following steps to do so:
    1.  Open MP Navigator.
    2.  Click One Clcik.
    3.  Click Save to PC.
    4.  Change the File Type from PDF to PDF (multiple pages).
    5.  Make any other changes as needed, then click scan.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !

    I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !
    I also tried resetting settings all to no avail ...I looked up some advice and watched utube video advice on how to fix without success..
    The volume control button on side does not work ,I got the iPad last August and wonder if it is a fault that means I must return it for replacement from where it was purchased ?

    The Retrospect you used way back when is no longer around. The company was sold and that company produced a new version of Retrospect - Retrospect 8.x
    So, as you've been told, you would have to be running a Tiger system with an old version of Retrospect software (5.x or 6.x - you would need to know) assuming you can find the software.
    As best I can remember you cannot extract files from a Retrospect backup except using the software since Retrospect did not normally make a file by file backup rather it created an archive of the files in the backup. I'm assuming that the EMC/Retrospect people have told you that old Retrospect backups are not accessible by Retrospect 8.x?

  • I bought a used iPhone and found him email iCloud does not affect me so how can I deleted this email in order to use the device freely and privacy

    I bought a used iPhone and found him email iCloud does not affect me so how can I deleted this email in order to use the device freely and privacy
    help me please

    You can't. Return the phone for a refund, if you can, because without the previous owner's Apple ID/Password, you will not be able to re-activate the phone. It will be useless to you.
    Apple can't/won't help you with this.

  • I bought an iphone 4 used. I installed ios7 before I realized that the previous owners e mail and password are still in the phone. How can I remove this so that I can use the cloud and "find my phone " features?l an

    I bought a used iphone. I installed ios 7 before I realized that the previous owner's email and password are still in the phone. How can I remove them so that I can use the icloud and "find my phone" feature?

    Thanks so much! It will be kinda weird to contact the person directly, but I guess I will give it a try. Is there anything that I can refer her to in this discussion to let her know I am legit, and not a creeper? Also, I don't know if you can answer this or not. When I plug my phone into itunes, and it says that it is backing up, does that mean that it is going into the other person's cloud, since I cannot access it?

  • HT5312 forgot my security questions, how do i reset answers to these questions by using the rescue email?

    forgot my security questions, how do i reset answers to these questions by using the resuce email?

    If you have a link to send the answers there, use it, wait a few hours, and check the address's spam filter.
    If you can't get it reset that way, go back to the article you asked this question from and use the link to contact the iTunes Store staff in the 'Additional Information' section. Ifn this case, you can't reset the questions yourself, and nobody on these boards can reset them for you.
    (92571)

  • How do I create a slide show within iPhoto using the flagged photos?

    How do I create a slide show within iPhoto using the flagged photos?

    Select them, create an album (You do9 not absolutely have to create teh albume but it will make life easier), select them and create a slide show form them
    LN

  • How do i change my iPhone to another iPhone using the same sim but keep all my photos ands everything?

    How do i change my iphone to another iphone using the same sim but keep all my photos and everything?

    Old Phone to New Phone
    http://support.apple.com/kb/HT2109

  • How do I force Acrobat 11 Professional users to use the "save as" verses "save"?

    How do I force Acrobat 11 Professional users to use the "save as" verses "save"?  I want the users to type in a fillable form, but not save their edits on the original form.  I want them to be able to save with a different file name.

    You can't really force it, but you can encourage it... For example, you can set the file as read-only and add an instruction to do so before the file is saved using a script.

  • I live in Afghanistan how can I have a free Apple ID to use the free app

    I live in Afghanistan how can I have a free Apple ID to use the free app

    Try to go into the App Store and try to download an app. When you have the option to sign in or create an Apple ID, choose to create one and you should see a 'none' option under payment.

  • Please can someone tell me how to set up FaceTime between 3 devices all using the same apple ID ( 2 iPads and a iPhone)????, Please can someone tell me how to set up FaceTime between 3 devices all using the same apple ID ( 2 iPads and a iPhone)????

    I am trying to set up FaceTime on all my apple devices so I can FaceTime each device but all 3 devices are using the same apple Id and I have no idea how to sort this???

    Facetime only works with two devices at a time. You can have the same Apple ID, but the two devices can't have the same email address. Get a new gmail account. Normally you use wifi for connection, however, with iOS 6 and an iPad 3 you can use cellular.
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
    I saw one post where a user said dust got inside the small microphone hole. Using a vacuum cleaner removed the dust and restored the audio.
     Cheers, Tom

  • How to have different music library's on iPods using the same Apple ID

    Hello.
    Me and my sister both have iPod 4th generations. Because of the timing of the purchases of our devices we use the same apple account. I would like to know how to have a different iTunes music library to her and if it will still keep the libraries separate.
    Please help.
    ~ Harry

    The Apple support document How to use multiple iPods with one computer suggests a number of ways for managing the media content. I use method two (Sync with selected playlists) with a slight twist. Rather than regular playlists I set the grouping field to indicate which users should receive which tracks and create smart playlists based on the content of this field.
    e.g.
    "Alice's Tracks" is "Grouping contains Alice" + "Kind contains audio"
    "Bob's Videos" is "Grouping contains Bob" + "Kind does not contain audio"
    Tracks that both Alice & Bob want on their iPods have the grouping set to "Alice/Bob"
    etc.
    I currently manage our family's five iDevices using this system, each getting a different selection to suit their tastes and the capacity of their device. An advantage of using the grouping field is that it is stored in file tags (for non-wav audio files anyway) so that it is relatively easy to recreate the playlists should the iTunes library get trashed and need rebuilding. Also useful if you move files about manually as playlist membership is preserved when you delete & re-import the tracks.
    To make sure your apps don't inadvertently merge turn off Automatically sync new apps from the apps tab when you connect your device.
    Or you can opt for completely separate libraries... Disable automatic downloading of purchases and turn off the display of iTunes in the Cloud purchases from the Store menu. You still get the benefit of being able to freely download something the other has purchased that you also like.
    tt2

  • How do I crop a 4x6 aspect portrait photo (using the 4x6 built-in) from a landscape photo?

    I have Lightroom 2, 2.7. 
    I have read I can just type "x" while in crop mode, but I get a message "Set as rejected" and nothing helpful happens.
    I have a nice landscape photo with two people... I want to take the left half of the photo and make it a vertical/portrait with a 4x6 (exactly... no approximations) ratio, using the settings in the LR crop menu, but every time I use them it flips me back into landscape.  X doesn't work.  I can manually create a crop box, but what good does that do me if I can't tell if it's 4x6 or grow/shrink it with a locked ratio?
    I am using the "Develop" menu, using the crop tool (dashed box), and I cannot for the life of me figure out how to do this... it's very frustrating.  Google searches yield (just press X)... but that doesn't work.  Even with aspect unlocked. 
    Please help!
    Thanks,
    Andrew

    It's a long time since I used 2.7 so this may not be available to you, but...
    do your crop options look like the screen grab? (this is v5.3).
    If you do have this then click the drop down to the right of 4x6 and you'll find "Enter Custom". If you save an input of 6 x 4 you should have what you want - if I've understood you correctly.

Maybe you are looking for

  • Can't boot windows 7 installed by bootcamp

    On my iMac I installed windows 7 x64 professional by bootcamp. I did the instalation with 4GB RAM. Windows boots perfectly! After that i change my RAM for 16 GB (4x4GB same plates). OS X booting is still perfect, but windows cant boot and it shows me

  • Addition in XSLT

    hi gurus, this is my input file in XSLT mapping. <?xml version="1.0" encoding="UTF-8"?> <ns0:out_mt xmlns:ns0="http://cog152516/xsltmapping2">    <item>       <mark1>13</mark1>       <mark2>13</mark2>    </item> </ns0:out_mt> i want to get the output

  • Setup wired airport extreme (A1408) as repeater for TC (A1470)

    How do I setup an airport extreme (A1408) as a wired repeater for TC (A1470)?

  • How to use a page created in the VC in the portal?

    Hi    I have created a page in VC having different iViews in it.I want to preview that page through portal without opening individual iviews . Thanks in advance.

  • Document Security API Issue

    I have developed a web application through which I can apply a policy to a set of documents present on my server's file system,(using APS and DSS API's ) and it is working fine on my jboss.I want to develop an application through which i can apply po