How can I Synchronize two counters in CVI using NI-DAQmx

Hi, I am new to NI-DAQmx, and I would like to program counting of random digital pulses using two counters in LabWindowsCVI and a PCI6229 multifunction card. I have the evaluation copy for CVI 7.1
I would like to set counter0, to count pulses from the 10MHz clock, to generate a single pulse (duration in the few ms timescale), that will gate counter1 in the same card.
When I try to route the output from counter0 to the gate of counter1 I get an error code
(-89137, "The specified route can not be satisfied because it requires resources that are currently in use by another route").
How can one do the equivalent of the "Select_Signal()" in the traditional NI-DAQ?"
I have also a hard time seting the counter0 to actually count a number of clock cycles from the 10 MHz clock.
What is the NI-DAQmx equivalent of the function "GPCTR_Change_Parameter()" to program a counter to count a predefined number of clock cycles?
Any suggestions are welcome.
Fundadero

Hi Fundadero-
It sounds like you're programming for an M Series card with counter operations and need a bit of help with DAQmx functions.
In order to count edges of the 10MHz reference clock you will need to use a format similar to that found in the CVI shipping example "CntDigEv.prj." This is found in the NI Example Finder (Help>>Find Examples) under Hardware Input and Output>>DAQmx>>Counter Measurements>>Count Digital Events. In order to measure pulses from a source rather than the default input terminal (ctrXsource where X is the counter number), you will need to use the function DAQmxSetCICountEdgesTerm(taskhandle char[] counter, char source terminal) as follows:
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateCICountEdgesChan(taskHandle,chan,"",edge,initialCount,countDirection));
DAQmxErrChk (DAQmxSetCICountEdgesTerm(taskHandle, "/Dev2/Ctr0", "/Dev2/10MHzRefClock"));
What type of operation are you trying to perform on counter 1? The strategy for routing signals will change based on this. If you're trying to perform gated counting you can specify the the task similarly as above and use the terminal "/DevN/Ctr0InternalOutput" as before. If you are trying to perform frequency measurement you will need to use the DAQmxGetCIFreqTerm function.
Other channel properties are listed conveniently in the NI-DAQmx C Reference Help found at Start>>Programs>>National Instruments>>NI-DAQ on your start menu. A search for "channel properties list" returns this list.
Please let us know if you have any additional questions.
Thanks-
Tom W
National Instruments

Similar Messages

  • How can I synchronize two iphones and two ipods on one MAC

    How can I synchronize two iphones and two ipods on one MAC. My wife and i each have our own iPods and iPhones but share one MAC.

    What do you mean by synchronize; music, apps, calendars, email, etc? Do you two share the same Apple ID on all devices? An Apple ID can support up to 5 computers and many iDevices.
    I hope this helps.

  • How do I synchronize two counters?

    Hi,
    I am using NI-PCI 6115 & BNC 2120. I want to generate two continuous pulse trains using the CTR-OUT0 and CTR-OUT1. I hope these two pulse trains have exact same rising edges, how can I synchronize these two counters? I attached my program here.
    Any suggestion will be greatly appreciated!
    Stephen
    Attachments:
    test.vi ‏33 KB

    Stephen,
    In order to generate two pulse trains on the two counters of your 6115, then you will need to provide a trigger to start both of these counters simultaneously. The counters on the 6115 are controlled via the DAQ-STC counter/timer chip.
    In order to perform these operations you will need to use the more advanced counter/timer VIs in the LabVIEW palettes. I would recommend taking a look at some of the shipping examples, such as Generate Pulse Train (DAQ-STC), in order to get a better understanding of how a single pulse generation works.
    Also, please take a look at the following websites to get a little more information as well:
    Triggering Multiple Counters with a Single Pulse
    http://exchange.ni.com/servlet/Redirect?id=10358279
    Using the Hardw
    are Start Trigger for Single Pulse Generation
    http://zone.ni.com/devzone/conceptd.nsf/webmain/7B2CAD8DD522049386256802007B8B51?opendocument
    If you have any other questions then please let us know.
    Regards,
    Michael H
    Applications Engineer
    National Instruments

  • How can I synchronize two iTunes Libraries on two platforms (Windows & Mac)

    I have a MacBook running both Windows XP Pro (Boot Camp) and Mac OS 10.4.9 and I have installed iTunes on both platforms. I have my iTunes Library and songs on an external drive (which I can "see" in Windows via MacDrive), and which I wish to keep in place to save space on my MacBook. Trouble is I cannot get my Windows iTunes to recognize the song files on my Maxtor external drive, even when I point iTunes to these files in the "Advanced" pane of Preferences.
    How can I utilize the one song folder by synchronizing the two sets of iTunes so I can listen to music on whichever platform I happen to be working on?
    I have tried placing an alias of the iTunes song folder in my iTunes folder in "My Music" in Windows but this does not work.

    I agree with Chris CA that this is the way I would *expect* iTunes to behave.
    When I look at iTunes from my account (my music is in ~/Music/iTunes/ and not available to my spouse's account), I can see in my music library all my rips and my purchases, just as I would expect. I can use Store>View My Account (<myAppleID>) and all is as expected. Home sharing is NOT on.
    Doing the same from the other account is not much different, actually. Nothing in the library yet, of course. Store>View My Account (<herAppleID>) also works. I CAN authorize my computer to play her music. I CAN view her iTunes purchases. When I attempt to download the purchases to HER library, though, I get the following dialog box:
    Now I interpret this to mean that this computer (mine) will not download from a different AppleID (also mine) for 90 days. Is that [interpretation] correct?

  • How can I synchronize two itunes mediatheks

    including the information, how often a titel was played in one of the two mediatheks.

    you will probably need something like TuneRanger.

  • I've update my music using an external disk; now I uploaded agin the music  but it doesn't appear in Itunes. How can I synchronize the music folder with Itunes?

    I've managed my music downloading and uploading it from an external disk; I put the music into the Finder MUSIC folder and copyed it into Itubìnes but it does't appear. What Do I have to do? How can I synchronize the Musice Folder with Itunes?

    Chris, thanks for the reply.
    That's what I'm confused about. I did exactly what you said. I copied the entire music folder from the old computer and put it in the music folder on the new computer. I've tried that two or three times now. And, I've checked, and all of the files are there (that's what I meant by 'clicking on Itunes Media'--when I click on the iTunes media folder in music/itunes in Finder, all of the files are there). But, when I open iTunes, nothing shows up--no movies, no music, no tv shows. It seems like it should be so simple, but it won't work for me.
    Any ideas?
    Thanks so much.

  • How can I have two itunes accounts on one computer?

    How can I have two itunes accounts on one computer?

    Not sure what you mean.
    An account is a user name and password.
    Sign into whichever account you want to use for purchasing.
    Authorize the computer for both account to listen to the content.

  • How can I combine two itunes accounts into one?

    How can I combine two itunes accounts into one?

    Items purchased from the iTunes Store are permanently associated with the account from which they were originally purchased.  Apple provides no way to change this.
    However, if you wish to put content from two accounts into a single iTunes library, you can easily do so.  Use the command File > Add File (or Folder) to Library.

  • How can I share two differents Itunes accounts in my Apple TV ? I have one and my wife has another account and we want to share both in our apple tv. How can I do this ???

    How can I share two differents Itunes accounts in my Apple TV ? I have one and my wife has another account and we want to share both in our apple tv. How can I do this ???

    I assume you have different iTunes collections on different PC's, or on different logins on the same PC?  If that's the case then just enable "Home Sharing" in each iTunes using the SAME iTunes username and password as you enabled home sharing on the Apple TV with. The account used for home sharing is NOT the same as the account used to access the iTunes store, so as long as you use the same account (pick one, doesn't matter which) then you should see both of yor iTunes libraries on the Apple TV. Note - each iTunes has ti be running in order for the Apple TV to see the library.
    Here's some details on how to do it:
    http://support.apple.com/kb/HT4363

  • How can we have two different Itunes libraries on one computer?

    How can we have two Itunes accounts on one computer?  I found info on the itunes help page but I do not know how to follow the steps given because I am not prompted with what it says I should be prompted with? Please help I don't want to delete one of our libraries

    Launch iTunes with the Shift key held down as needed, or use different Windows XP user accounts.
    (74282)

  • HT1660 How can I maintain two separate itunes accounts on one single device without erasing either set of data?

    How can I maintain two separate itunes accounts on one single device (iPhone 4) without erasing either set of data when syncing with itunes?

    Hi,
    Depends on what you trying to setup but for purchases, you can roll down at the very end of the iTunes/AppStore pages to logout of your current account and then login into a different one.  Then your purchase will be billded to this new account.  Everything will sync as you used to but in order to use the purchased content in iTunes or other devices, you will need to authorize them (you can have up to 5 devices authorized for an account).

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

  • HT204053 How can I sync two different email accounts?

    How can I sync two different email accounts? All of this Mobile Me and cloud stuff got me all flustered and now I have two accounts possibly 3.

    How to use multiple iPods, iPads, or iPhones with one computer

  • How can i upload two different logos for 2 sub sites [which falls under one super site ] in share point 2013 ?

    hello,
    How can i upload two different logos for 2 sub sites [which falls under one super site ] in share point 2013 ?
    thanks,
    Jay

    Hi,
    I understand that it applied first logo to all other sub sites.
    Please make sure that you change the logos in the subsites.
    If we change the logo in the root site, the logos in the subsites will be changed at the same time.
    However, we can change the logo in the subsites separately.
    We can go to a subsite, click the Site Sitting-> Look and Feel-> Title, description, and logo->Insert Logo->select a picture, then it will has a different logo than the root site.
    Then go to the other subsite, click the Site Sitting-> Look and Feel-> Title, description, and logo->Insert Logo-> select another picture, then it will has a different logo that the first subsite.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • My iPhone has two computers in (iTunes wifi sync), how can I remove one of them without using it ?

    Hello everyone.
    My iPhone has two computers in (iTunes wifi sync) how can I remove one of them without using that computer?
    because that PC stopped working so I had to recover it. Now everything is gone on that PC.
    Also I bought a new computer (MacBook Pro) and I use iTunes on it in the mean time. Now I want to remove the old computer!
    here is a photo of my (iTunes WiFi sync)
    is there any way that I can use to do that?
    Thanks

    Hello,
    Did you ever find a solution for this ?
    I have the same issue and i dont know how to fix it.

Maybe you are looking for

  • Flash Color Picker HELP

    Im using Flash Pro 8. I've got a delima.. I need to take a pic of a t-shirt and allow users to click on the collar, select a color from the color picker, and then it will change the collar to that color. The same idea will be put forth to the t-shirt

  • 2.2 + error (0xE8000001)

    Hi, Earlier today i just got my app loaded onto my iPhone (running 2.2). I was going back and forth testing, no problem. All of a sudden, when I try to Build and Run, I get an error: "Your mobile device has encountered an unexpected error (0xE8000001

  • Materialized View - How can we change the Refresh_mode?

    Hi All, I have created a materialized view on a table in another schema. The refresh mode has been automatically set to "Demand". Therefore, when changes are made to the base table, they are not automatically copied to the Materialized View. Two ques

  • Help!!! Changing contentType in Servlet Filter

    Hi, I am trying to change resrponse.ContentType() to text/xml in a Filter but output is still text/html. please tell me where i am going wrong.. it is really urgent!!! anything wrong with this my doFilter method goes like this public void doFilter(Se

  • Not able to to see interfaces after doing export import of the Business sys

    Hi Gurus,     I am exporting an business system associated with CRM system from Dev system of XI 3.0 to dev PI 7.1 system client 500. After taking the export from XI 3.0 , when I import the business system in PI7.1 and associate it with the correspon