Using one counter with FiniteSamps and another with ContSamps

I am trying to use 2 counters on the USB-6229 (or USB-6259), where one counter is set up for FiniteSamps and another for ContSamps. I have the following MeasurementStudio code:
ErrChk DAQmxCreateCOPulseChanTicks(hCnt0, "Dev1/ctr0", "", "20MHzTimebase", DAQmx_Val_Low, 0, 400, 400);
ErrChk DAQmxCfgImplicitTiming(hCnt0, DAQmx_Val_FiniteSamps, 100);
ErrChk DAQmxStartTask(hCnt0);
ErrChk DAQmxCreateCOPulseChanTicks(hCnt1, "Dev1/ctr1", "", "20MHzTimebase", DAQmx_Val_Low, 0, 400, 400);
ErrChk DAQmxCfgImplicitTiming(hCnt1, DAQmx_Val_ContSamps, 2);
ErrChk DAQmxStartTask(hCnt1);
When I run it, I get a run-error 50103 "The specified resource is reserved". If I change the FiniteSamps to ContSamps on the first counter, everything works fine.
If I use only one counter with FiniteSamps, everything also works fine.
Is this a bug in DAQmx or the dual counter use on M-series devices is limited to ContSamps?
Vic
Solved!
Go to Solution.

Hi Vic,
This is actually expected on an M Series device.  Here's a timing diagram from the M Series User Manual that might make this a bit more clear:
The device actually uses one counter to gate the other so the result is a finite pulse generation.  If you can provide the gate from another source, you may configure a continuous pulse generation on both counters and gate them (DAQmx calls this a "Pause Trigger") from this external signal. 
You might also want to look into using Correlated Digital I/O to generate multiple finite pulses (up to 32 lines on your 6229 and 6259).  You could use one of the counters to generate a timebase for the digital lines, and build the waveform accordingly.
One thing to note is that our new X Series boards can generate a finite pulse generation on a "single" counter (there is actually a paired internal counter that allows for this).  There are four user-accessible counters on X Series devices, meaning you could generate four finite pulse trains.
Best Regards,
John
John Passiak

Similar Messages

  • Setting 2 counters - one with FiniteSamps and another with ContSamps

    I am trying to use 2 counters on the USB-6229 (or USB-6259), where one counter has FiniteSamps and another has ContSamps. I have the following code:
    ErrChk DAQmxCreateCOPulseChanTicks(hCnt0, "Dev1/ctr0", "", "20MHzTimebase", DAQmx_Val_Low, 0, 400, 400); 
    ErrChk DAQmxCfgImplicitTiming(hCnt0, DAQmx_Val_FiniteSamps, 100);
    ErrChk DAQmxCreateCOPulseChanTicks(hCnt1, "Dev1/ctr1", "", "20MHzTimebase", DAQmx_Val_Low, 0, 400, 400);
    ErrChk DAQmxCfgImplicitTiming(hCnt1, DAQmx_Val_ContSamps, 2);
    When I run it, I get a run-error 50103 "The specified resource is reserved". If I change the FiniteSamps to ContSamps on the first counter, everything works fine.
    If I use only one counter with FiniteSamps, everything also works fine. 
    Is this a bug in DAQmx or the dual counter use on M-series devices is limited to ContSamps?
    Vic
    Solved!
    Go to Solution.

    Hi Vicpik,
    What you are seeing is not a bug, the issue here is that finite pulse train generation actually requires two counters for a single task. The details are outlined quite well in the following KB:
    How Many Counters Does Each Type of Counter Input or Output Task Take?
    If you need to do both task you may need an additional DAQ card, or you could try our new X series cards, that have 4 available counters.
    Let us know if you need any further assistance.
    Thanks
    Scott M.
    Applications Engineer
    National Instruments

  • I have two problems. One with LTE and another with iCloud terms and conditions.

    I haven't had some of the bigger problems with the 6 as some. But I am having two issues that are getting annoying. One is a pop up every 5-10 minutes that says I cannot use icloud without accepting terms and conditions. However it won't let me accept any. The other is lte is not working on my phone, but is fine with my husbands. Any ideas? Thanks!

    klawson88 wrote:
    I have 3 classes fully defined: GameWindow(extends JFrame...parameter: FileLoader f) NumberOfPlayersDialog (extends JDialog and implements ActionListener...parameter: GameWindow g), PlayerRollDialog(extends JDialog and implements ActionListener...parameters: GameWindow g and NumberOfPlayersDialog n).Word of advice: avoid having your GUI classes implement Listener interfaces as this makes for the creation of [low cohesion classes,|http://en.wikipedia.org/wiki/Cohesion_%28computer_science%29] and this is a "Bad Thing".
    PlayerRollDialog has one button that has an action listener. The user rolls dice for several player objects by pressing the button and the result (which player object has the highest roll) is displayed on the screen. At that point, the button text changes to "Start Game!". What I WANT to do is have a subsequent click on the button close the dialog (to reveal the gameWin underneath). Is it possible to do this? Wouldn't this require two actionPerformed for one event? No, you could do this with a single ActionListener. You will change the button's text and possibly its actionCommand String. Simply query the button for its text and perform the appropriate action based on this.
    How can I implement a second actionPerformed for the same event?Again, you don't need to do this.
    My second problem is that I want to be able to close the entire program if the user exits out of either dialog without performing an action (clicking on the X button). I try specifying EXIT_ON_CLOSE as their default close operations, but it can't compile. It gives me:Yeah, you can't do that. You can give the classes that hold the dialog a state, say exitOK, and initialize it to false. If the proper buttons were pressed you would change exitOK to true. Then after the dialogs have closed you could then use a public getter, isExitOK(), to check this state and then have your GUI behave accordingly. These dialogs are model, correct?

  • I have two pc, one with windows 7 professional and another with windows 8.1. I'm the only owner and user of both. One works with 32 bits and the other (windows 8.1) , 64 bits. Can I use acrobat standard XI in both pc's being the only usuary?

    Just in case. I have two pc's one with windows 7 professional (32 bits) and another with windows 8.1 (64 bits). Can I use, with one license, as I'm the owner and only user, acrobat standard XI?. Thank you in advance
    Francisco

    Yes, the license allows 2 installs for the owner's personal use. You can check this in the license agreement if you wish.

  • When i hover on stuff with my mouse, i have to double click it for it to actually work, one click to hover and another to click on the link... can someone help me ?

    When i hover on stuff with my mouse, i have to double click it for it to actually work, one click to hover and another to click on the link... can someone help me ?

    What system are you using?

  • Does Apple make/sell the new "Apple In-Ear Headphones with Remote and Mic" with a one sided configuration? So that a person that is deaf in one can hear both sides of a stereo recording? Also, since the "other" bud is not necessary/useful...it's removed.

    Does Apple make/sell the new "Apple In-Ear Headphones with Remote and Mic" with a one sided configuration? So that a person that is deaf in one can hear both sides of a stereo recording? Also, since the "other" bud is not necessary/useful...it's removed.

    As far as I know, Apple sells no such configuration.  However, under Settings > General > Accessability, there is an option to play back audio in monoural mode, which would then play both halves of a stereo mix in each earbud.
    Hope that helps.

  • Can I use one phone number on two iphones with two apple ids?

    My carrier allows multiple sim cards with the same phone number for usage on different devices. I would like to use a second sim card for my phone number on a second iphone, but with a different apple id.
    Is it possible to use one phone number on two iphones with separate apple ids? How does this affect facetime/imessage?
    I can only find answers to using the same apple id on multiple devices. This works fine, but is not what I want to do here.

    You may be able to change the suspicious account activity message alerts
    in your Gmail settings, and check that side of it, since I can use several
    means of accessing my Gmail and Google Accounts; and in the past had
    shared an account (not google) with another party half a world away when
    her email server went down for a month.
    The Mail software should not know the difference, unless the setup in there
    is not correct; if this is so, then more than what she says would be wrong.
    The Google mail Support help site pages should cover this adequately.
    Gmail Help - Google Help
    https://support.google.com/mail/?hl=en

  • Bought my hubby an iphone4 and I registered it and opened an apple account for him.  I have an iphone 5 (under my own Apple account).  I use icloud to sync calender and contacts with outlook 2007.  How do I add my hubby's phone (account) to icloud ?

    Bought my hubby an iphone4 and I registered it and opened an apple account for him.  I have an iphone 5 (under my own Apple account).  I use icloud to sync calendar and contacts with outlook 2007.  How do I add my hubby's phone (account) to icloud so I can sync the same contacts and calendar?

    On his phone, sign in Settings>iCloud and enable Mail so that he can have his own email address. Then add your account in Settings>Mail, Contacts & Calendars and enable Contacts and Calendars. They will then appear on his phone alongside any syncing he has set up. This will keep your emails separate, or you can add Mail as well so that you can both access that if you want. You can add his account in the same way on your phone and enable any data types you want to sync.

  • Can I use CC on my desktop and laptop with an individual membership?

    Can I use CC on my desktop and laptop with an individual membership?

    Hi arskhach ,
    Welcome to Adobe Forums.
    Yes, you can install and activate Creative Cloud desktop applications on two computers (desktop / laptop) , regardless of operating system.
    Please reply for any assistance.
    Thanks

  • Why is my airportxpr only working with Itunes and not with another music program

    why is my airportxpr only working with Itunes and not with another music program??
    I can not select/see other outputs in my sound selector.

    You have not indicated which OS or which music program you have so I have listed a program called Airfoil to try for both Windows and Mac - it may work for you
    for Windows - http://rogueamoeba.com/airfoil/windows/
    for Mac - http://rogueamoeba.com/airfoil/mac/

  • Can I use InDesign cs6 to open and work with PM6.5 files?

    Can I use InDesign cs6 to open and work with PM6.5 files?

    Lrak wrote: "It sounds like I should to that before endeavoring to transfer the manuscript?" (re-link)
    It should be much easier to re-link in the Pagemaker file, as, with any luck, you can get the filenames from the Graphics Manager.  After conversion to InDesign, any out-of-date linked images get their names converted to something like "image 123.jpg", and are themselves converted to an embedded low res representation of the image.  Even vectored art.  Pretty hard to figure them out, unless you are VERY familiar with the file, which you may be.
    It may be that any cropping gets lost, too?  I do prepress work, we do some set up for our customers, but most comes in pretty much ready to go, so I don't often have to did too deep into fixing such issues. On the other hand, any problem that can happen has probably crossed my desk, or it seems that way some days!

  • Use one account for apps and other for itunes match

    Hello everybody
    My question today is quite simple. I use one account for apps and tv shows, but inwant to use a different itunes account for purchasing itunes match. How can I use them both on my devices? Will it be asking for my user-pass each time i play a song? What other thing should i consider?
    Thank you in advance

    I would strongly recommend you not do this.  You will regret it.
    I have played with this issue a lot.  You have to remain signed into match in order for it to show up on your phone. If you sign out to purchase an app or redownload one from your appstore id you use then match will be removed from your phone and when you go into your music app the icloud will not be there.  You then have to go sign back out of the store id you used for your app purchase and then sign back into match and everything will have to go though the download to your device process again.  This really is not what you want to do.
    Sign up to match with the apple id that you know you will use the most or has the most purchased items and use that for all purchases, i.e. books, apps, movies, and music.  You don't want to go though the other process.
    Plus apple will start not letting you sign into match because you signed out and back in, in to short a period of time.
    all store purchases on an iphone are linked to the store id.  if you sign out of your match id on the appstore and sign into another account to purchase an app then itunes match will sign out in the music app.  You can't have two store id's signed into your iphone at the same time.  They are all linked together.

  • Can I have two Time Capsules in the same network, use one as Time Machine and other to expand network?

    I need to purchase a divice to expand my Wi-fi network. I was looking at the AirPort Extreme, but a friend has a brand new Time Capsule for sale. So, for the same price of the AirPort Extreme, I´m getting the Time Capsule.
    I already own one and using it as Time Machine and wireless router. If I decide to purchase another TC would it have any conflict with the one that I already have?
    Is it possible to use one as Time Machine and wireless router and the other to just expand network and storage only (not as Time Machine)?

    If I decide to purchase another TC would it have any conflict with the one that I already have?
    No
    Is it possible to use one as Time Machine and wireless router and the other to just expand network and storage only (not as Time Machine)?
    Yes. The important thing to remember is that the "extending" Time Capsule must be located where it can receive a strong wireless signal from your "main" Time Capsule.

  • GR/IR Account - one for internal vendor and another for external vendors

    Hi Experts,
    Can I have two GR/IR accounts - one for internal vendors and another for external vendors?  Please let me know.
    Thank you.
    with regards,
    Muthu Ganapathy.

    Hi Muthu,
    GR/IR accounts are not dependent on Vendors, they are dependent on Materials, to be precise on Plant/Valclass.
    You can post to 2 different GR/IR accounts if you set up 2 different classes. then it is possible.
    For setting up the same. Go to T.code : OBYC, Transaction : WRX.
    Here Setup different GR/IR accounts per val.class.
    Letme know if you need further info
    Thanks
    Kalyan

  • Matrix with CFL and RecordSet with DoQuery

    Hello Experts,
                            How to use Matrix with CFL and RecordSet with DoQuery

    Hi Manish,
    Refer to SDK sample on CFL at ...\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\17.ChooseFromList
    Go to SDK Help, Developer's Guide -> DI DPI -> Reference -> Overview -> Objects -> Recordset
    see the Example "Recordset Operations sample" at the bottom of the page
    HTH
    Aravind

Maybe you are looking for

  • Error in B1DE during creation of a professional installer (VS2005/SAP2005)

    Hi, few weeks ago, I created a professional installer for my add-on with the B1DE for SAP 2004. Now, I have to create exactly the same professional instaler for SAP 2005 (and VS2005), but I have some problems. First: When I execute the 'VB B1 AddOnIn

  • Assets transfer using ABUMN and getting error already retired.

    Hi AA Gurus I have two assets and want to move to sub assets of another asset.e.g asset 201,202 to be transfered to 203-1,203-2. I created sub asset using AS11.I am transferring to sub assets using ABUMN. I get ever time error as "Transaction on asse

  • How to print the data  if we take different fields from diffrent tables

    Hi ABAPers, I take diff fields from 3 tables. Those are these fields from EKBE        EBELN        EBELP        BELNR        BUZEI        BWART        BUDAT        AREWR        REEWR        WERKS        MWSKZ these fields from EKKO        BUKRS      

  • Safari not responding..freezing

    is this normal?..i got the browser to freeze twice this last weekend...i'm new to mac...just switched...so dumb question thanks

  • Tried so many solutions to error #34506, HELP!

    I am a 29 year old woman who has just walked 2,650 miles on the Pacific Crest Trail from Mexico to Canada. I don't give up on anything easliy. I get home and have a brand new computer waiting for me, an Ibook G4, download my photos and begin making m