Using a counter with FiniteSamps and one with ContSamps

I am using 2 counters on the NI USB-6229 (or USB-6259), case where a counter is implemented 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 an error-50103 "the resource specified 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 works very well.

Is this a bug in DAQmx or the use of double counter on M Series devices is limited to ContSamps?

VIC

Hey Vic,

It is actually planned on a device of the M series.  Here's a time diagram of the M Series user manual which might make this a little clearer:

The device uses actually one counter for the other door so the result is a generation of finite pulse.  If you can provide the door from another source, you can configure a generation of continuous pulses on two counters and their door (DAQmx calls it a "relaxing break") of this external signal.

You can also look at the use of the digital I/o correlated to generate impulses over multiple (up to 32 lines on your 6229 and 6259).  You could use one of the counters to generate a time base for digital lines and build the waveform as a result.

One thing to note is that our new X series cards can generate a generation of impulses finished on a "single" counter (it was actually a paired internal counter that allows this).  There are four accessible counters by the user on the X series devices, which means you could generate four pulse trains finished.

Best regards

John

Tags: NI Hardware

Similar Questions

  • setting 2 meters - one with FiniteSamps and one with ContSamps

    I try to use 2 counters on the NI USB-6229 (or box USB-6259), where a meter has FiniteSamps and another 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 an error-50103 "the resource specified 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 works very well.

    Is this a bug in DAQmx or the use of double counter on M Series devices is limited to ContSamps?

    VIC

    Hi Vicpik,

    What you see is not a bug, the problem here is that the finite pulse train generation requires in fact two counters for a single task. The details are pretty well in the following KB:

    Counters of how each Type of meter input or output task take?

    If you need to do two tasks you may need an additional data acquisition card, or you can try our new X series, with 4 counters available cards.

    Let us know if you need additional assistance.

    Thank you

    Scott M.

  • I start using adobe lightroom and photoshop with trial version and today I decided to use the creative photography of Cloud (one year) and after the purchase, I received email to confirm that, but my adobe lightroom and photoshop always demo how can I sol

    I start using adobe lightroom and photoshop with trial version and today I decided to use the creative photography of Cloud (one year) and after the purchase, I received email to confirm that, but my adobe lightroom and photoshop always demo how can I solve this problem

    Troubleshooting FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?

    [moved from the download, installation, commissioning creative cloud download &install]

  • I have an account, a download of CC I use at work and one at home, home a fair repeat test expired and yet I never saw computers with it and he's paid for

    I have an account, a doanload I use at work and one at home, home, we repeat myself fair trial exceeded but I never saw computers and it's paid for.

    I want to use photoshop quite desperately at home, I uninstalled everything, but he repeats I just test expired although I paid for it and it works on my work computer!

    Help, please

    FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?

    https://forums.Adobe.com/thread/1962238

  • How to increment and decrement a counter with a single button

    Is there anyway you can increment and decrement a counter using only one button?

    I want this counter in place so that when I leave the stage and go back to it, the visibility of my button will remain the same because of being linked to the meter number.

    What would be the best way to implement that it doesn't work when I do it this way.

    function show_hide_MC(evt:MouseEvent):void {}

    MC.visible =! MC.visible;

    (Counter = 0) = (counter = 1);

    }

    btn.addEventListener (MouseEvent.CLICK, show_hide_MC);

    Thanks in advance!

    You can use a Boolean value (true/false) rather than a meter to keep track / affecting visibility.  You can use the counter simply to determine if you are starting the file or not.   When you click this button, you set the mc.visible property, and then assign the Boolean value of the visible property of the mc.

    var mcVisible:Boolean;    These two variables need to extend the length off the coast of the timeline
    var int count;

    if(Count == 0) {/ / you just started things so set up}
    mcVisible = mc.visible;
    Count += 1;
    } else {}
    MC.visible = mcVisible; you refer then set the visibility of the mc
    }

    function show_hide_MC(evt:MouseEvent):void {}
    MC.visible =! MC.visible; Toggle visibility
    mcVisible = mc.visible;    Remember how you left it
    }

    You can just use the number of establishments, incrementing every time that you click the button and using the module to determine if it has been clicked on an even number of times compared to an odd number of times, and then have a conditional that tests, which affects visibility... something like...

    var int count;           will start with a default value of 0

    We need to increase the length of the timeline

    If (count %2 == 0) {/ / this is the same value}
    MC. Visible = true;
    } else {/ / this is an odd value}
    MC. Visible = false;

    }

    function show_hide_MC(evt:MouseEvent):void {}
    MC.visible =! MC.visible; Toggle visibility
    Count += 1;

    }

  • I use 4 windows with multiple tabs, but I 'don't know why one of them (window) always close when I restar computer

    I use 4 windows with multiple tabs, but I 'don't know why one of them (window) always close when I restar computer

    Hello, by default the firefox session restore feature only allows you to save last 3 windows open. to change this, type on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.sessionstore.max_windows_undo. Double-click it and change its value to 4 (or more).

    http://KB.mozillazine.org/browser.sessionstore.max_windows_undo

  • I have a problem with the history of Bing. I clear the history and turn it off. Later, when I use bing history is preserved and turns.

    I have a problem with the history of Bing.  I clear the history and turn it off.   Later, when I use bing history is preserved and turns.  How can I keep decommissioned and erased history?  What a Bing, IE8, Microsoft problem?

    Hello

    1. is the question confined to the history of Bing?

    2. what web browser do you use?

    3. If you are using Internet Explorer, which r version of Internet Exploreris installed?

    If you are using Internet Explorer 8, it gives you the option to automatically remove your browsing history each time you quit the browser. The type of data that is deleted is dependent on of which options are checked in the delete browsing history.

    one) to set up IE to delete browsing history on exit first click on the Tools menu, located to the far right of the tab of your browser bar.

    (b) when the drop down menu appears, select Internet Options.

    (c) click the menu Security , located to the far right of the tab of your browser bar. When the drop down menu appears, select the option delete browsing history... .

    (d) the window delete the browsing history should now be visible coming to overlap your main browser window.

    (e) check the options you want to remove and click OK.

  • How to use windows scan with the new canon printer is connected and the copy and printing, but can't seem to be able to use the technique of scan windows

    How to use windows scan with my new canon MX 922 printer.  It is conncected and copying and printing but can't seem to use the windows scan option, the cannon that which for me is slow thanks

    All in one, type printers (print, copy, scan) usually have a very specific set of instructions during the installation.  If not followed exactly the probability is that the scanner will not work.

    Canon: http://www.usa.canon.com/cusa/consumer

    Download and read the Setup instructions for your model, have you followed the instructions exactly, more precisely when to connect the printer / scanner during installation of the software process?

    J W Stuart: http://www.pagestart.com

  • How to avoid the stalemate between count with all and several calls from an EP getBackingMapEntry...

    We have a processor input, which initiates a transaction lite by calling getBackingMapEntry on several similar entries.  The same cache distributed these similar entries of accommodation also simultaneously services count with all call and we often a blocking scenario comes from the fact that the count with all call trying to access/key in the same cache block - but in a different sequence - date entry processor accessed (for example, the European Parliament access to similar input 1 then similar input 2 while the count with all attempts to block the same but entries in sequence 2) then the entry 1).  The obvious solution is to change the sequence entry processor accesses these entries to match the sequence used by the count with all operation, but we do not know what sequence consistency applies to operations NamedCache.getAll.  Anyone know?  We believe that we excluded (e.g., consistency does not consider wrt the count with all access sequence) the following:

    • The sequence in an ordered collection of keys such as a list that is passed as an argument to count with all operation
    • The hash code of the key value
    • Any use of Comparable on the keys

    We use 3.7.1 consistency where it varies between 3.7.1 and 12 c.

    Thanks in advance.

    We've thought of it (always happens shortly after the publication on a support site).  If anyone is curious, it seems that the binary class implements Comparable and that consistency sorts instance converted by binary key and access the Scriptures based on this order sorted.  If the entry processor converts the keys to binary instances, sorts and accessed in sorted order, there is no potential blocking (of our observations, at least).  It would be nice if Oracle should document this that people better understand how to write safe concurrent code.

  • Im trying to open the tutorial of 23 minutes on how to use different tools in photoshop and it continues to come with unable to resolve the DNS servers worked fine yesterday? Ive had creative cloud on my laptop for a week and still have not been able t

    Im trying to open the tutorial of 23 minutes on how to use different tools in photoshop and it continues to come with unable to resolve the DNS servers worked fine yesterday? Ive had creative cloud on my laptop for a week and not yet able to get past the basics make me very frustrated.

    I guess you meant the links when you open photoshop CC. I tested all four videos of the 23 min tutorial and they all played fine. If something between you and adobe does not work correctly.

    • Check that your firewall is blocking the net. Try to access youtube videos and see if they play very well
    • Go to the adobe tv site and try to play one of the videos here. Adobe TV
    • If youtube plays very well and adobe tv does not work, next is to check if you have flash installed. Some videos require flash, others are html 5. Sorry that I could not confirm what player has been used for this tutorial. I think that html 5 but not sure.
    • Next is to look at the properties of your browser and check multimedia settings are not disabled if it y in a. (this is totally dependent on the browser)

    If none of this helps, let us know.

  • using x220t digitizer with Photoshop and Illustrator

    Hi all

    I bought a x220t and love it. It's a dream come true for graphic designers. However, I have a burning question...

    How can I assign the hand (H) tool to the key on the digitizer?

    I have another wacom tablet that accompanies a digitizer with two buttons, and one of them is assigned automatically to the hand tool, which makes the work in photoshop and illustrator incredibly easy. It would be particularly handy with the x220t that you lose access to the physical keyboard when in tablet mode. (As a suggestion, buy a cheap compact keyboard, small functionality and efficiency tenfold when you work in tablet mode, of course)

    Currently, the button is indexed as the right click. Useful sorta, but not really. It would be much more effective to have the hand tool. How do I? !

    Thank you!

    -FleetCommander

    1 first, make sure that you use the latest driver of pen (wacom ISD 7.0.2.19 I remember correctly).

    2 open Pen Tablet control panel properties

    3. click on the drop down menu to the function button, it is currently acts as a right click

    4. choose the key combination, press h, name the function and press OK

  • Can I download the current that pay for the GI license, and I used in Microsoft with a Mac OS - MAC OS?

    Can I download the current that pay for the GI license, and I used in Microsoft with a Mac OS - MAC OS?

    You can install the software on two computers. These two computers can be Windows, Mac OS, or everyone. If you install on a third computer, you will be asked to turn off this feature on the other two computers. You can then re-enable one of the two previous computers and use Cloud Creative apps on it.

    Kind regards

    Hervé Khare

  • Count (*) with Group of and a join

    I have the tables below:

    Tables:
    EMPLOYEE 
    EMP_ID         LNAME             FNAME
    1000                 SLITT              JOHN
    1001                 SLITHER              STEVE
    1002                 JACOB              MARLYN
    1003                 STUFFEY     NOSE
    1004                 SLIPPY              MOUTH
    -----
    ACCESS_TYPE
    ACCESS_TYPE_ID     ACCESS_DESCRIPTION
    1                         EMPLOYEE
    2                         EMPLOYEE_ADMIN
    3                         CONTRACTOR
    -----
    EMPLOYEE_ACCESS
    ACCESS_ID      ACCESS_TYPE_ID     EMP_ID     ACCESS_EFF_DATE     
    1               1               1000              01-JAN-13
    2               1               1001              10-FEB-13
    3               1               1002              18-FEB-13
    4               2               1003              10-OCT-12
    5               3               1004              10-MAR-08
    -----
    I'm trying to appear on the behalf of the Group of employees by their type and whose name does not begin with SL
    I wrote the following query and I get a missing Expression 00936. What I am doing wrong? Thank you

    SELECT EA. COUNT (*), ACCESS_TYPE_ID
    OF EMPLOYEE_ACCESS EA, USED E
    WHERE ACCESS_EFF_DATE > = 31 December 12 ' AND E.LNAME NOT LIKE '% SL.
    ACCESS_TYPE_ID GROUP;

    Published by: parsar on March 25, 2013 15:54

    >
    FAM COUNT (*)
    >
    You have a column named "COUNT" in your table? NOT! You probably intend to use the COUNT function: ditch the prefix aliases, functions use a prefix.
    >
    WHERE ACCESS_EFF_DATE > = 31 DECEMBER 12 '
    >
    Don't use strings to DATE values. Use the dates and the TO_DATE function if you need to convert a string to a date literal.

    This Cartesian join between the tables is unlikely to be what you want to do.

  • Should I use spring Framework with JSF2 and Hibernate?

    Hi all
    I'm starting to put in place a web portal and I would use JSF2 and Hibernate.
    Now, I don't know JSF2 so I looked for a tutorial.
    I found a tutorial on JSF2 who seems very complete, but in this tutorial, I found an article where the author use Hibernate to the "model section", JSF2 for 'view' section and one is from the "controller" section
    Now I have a doubt, if I can develop a web portal without Spring MVC or I can't develop component of any controller with JSF2?
    Thank you very much for your answers!

    Filippo Tenaglia wrote:
    Now I have a doubt, if I can develop a web portal without Spring MVC or I can't develop component of any controller with JSF2?

    Yes, you can do so without Spring MVC. You can develop the portal without using any framework, but if you use the style mvc framework, it will be much easier and simpler. Likewise, you can use framework JSF itself.

  • Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.

    Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.

    You have placed your beam to insert at the end of your text on page 13 and then apply Insert menu: Page Break? In the v5.6.2, Pages I just add a new page to a section of four pages to this approach.

Maybe you are looking for