USB-6211 - Getting Error 50103 when attempting to use two counter method

I am using a USB-6211 and want to measure the speed of a motor by counting pulses coming back from sensors on the motor. Speed will vary from 0 to about 5k Hz.
My strategy is to use "Method 2" in the manual to measure using two counters.  To do this I am attempting to generate pulses of known duration with Counter 0, route these pulses to the gate of Counter 1, send the motor pulses into the source of the counter1 and letting the counter determine and report the number of pulses that occur during the "gate time".
To get the pulse generator going at 8,333 Hz I do this:
AGniDAQmx_CreateTask(instrHandle,"TimingPulses, Task_Handle8)
AGniDAQmx_CreateCOPulseChanFreq(instrHandle, Task_Handle8,"Dev1/Ctr0","Out",DAQmx_Val_Hz,0,8.333,0.5)
AGniDAQmx_CfgImplicitTiming(instHandle, Task_Handle8, DAQmx_ValContStamps,1000)
AGniDAQmx_StartTask(instrHandle, Task_Handle8)
This works fine.  (By the way, I do stop and clear the task before exiting.)
Now I add this code in a new task to try to use the Counter0 pulses to measure the input pulses with Counter1.
AGniDAQmx_CreateTask(instrHandle,"MotorPulses, Task_Handle5)
AGniDAQmx_CreateCIFreqChan(instrHandle,Task_Handle5,"Dev/ctr1",MotorPulses,0,10k,DAQmx_Val_Hz,DAQmx_Val_Rising,DAQmx_ValHighFreq2Ctr,0.12,10,"")
AGniDAQmx_ReadCounterScalarU32(instrHandle,Task_Handle5,10,E)
AGniDAQmx_ClearTask(instrHandle,Task_Handle5)
This function fails on the CreateCIFreqChan() call with an DAQMXError 50103.
Apparently Counter1 resources are being tied up by Counter0.  Is this true?
Any suggestions?
Thanks,
-CBJohnson

Hi Mallori,
Thanks for the great reply message.  I do appreciate your help.
Yes, I think you understand my application.  The motor can turn from zero to about 5K RPM and one pulse is generated with each turn of the motor.
This application is using Agilent VEE but the statements are "C-like" so that's why I posted them like that.  I can't "cut-and-paste" directly from the VEE statements and I have to type them.  I mis-typed the Implicit Timing statement.  It was missing an "_".  It should have been:
AGniDAQmx_CfgImplicitTiming(instrHandle,Task_Handle8,DAQmx_Val_ContStamps,1000)
I think I understand what you are saying about DAQmx_Val_HighFreq2Ctr using the resources from both counters  That explains why I get the message about resources not being available.  
I have tried to use Counter Method 1 and it *almost* worked.  A problem comes about when the motor speed is zero (stopped) and, since these motor pulses are being fed into the Gate of the counter, the zero value makes it simply time out.  Increasing the timeout value to infinite (-1) makes the entire program hang.  I need it to go on -- looking for other user input, reporting other data being collected, etc. If the counter is waiting for the Gate signal to rise to start counting and to drop to stop counting and do the calculation, it will not work since it just times out.  I went to this counter method (actually called counter method 3 in the DAQ manual) because then I am trying to generate the pulses of known period and send these pulses to the Gate.  Then I am feeding my pulses into the Source of the counter and letting it determine how many pulses occured during the "gate time".  In this case, zero pulses during the "gate time" should be OK; it should simply report that zero pulses were detected and start counting again on the next rise of the Gate pulse.  I thought I could simpy adjust the length the "gate time" to measure my range of frequencies.
Make sense?  Any way to do this with the two counters of the USB-6211?
Thanks, Mallori,
-Craig

Similar Messages

  • Getting file... does not exit error msg when attempting to use the setXSLT method

    I am attempting to use a PL/SQL procedure to generate HTML by using the DBMS_XMLQuery.setXSLT and DBMS_XMLQuery.getXML methods. When running the procedure, the following line
    DBMS_XMLQuery.SETXSLT(xsuQry, 'hmwebserver/Series47/Modules/Results_View/hmRVTemplateStyle.xsl');
    throws an ORA-29532 error with the message '... File... .xsl does not exit'. What does this actually mean, and more importantly, what can I do to correct the issue?
    Thanks in advance for any help.

    Hi
    In the dimension/Measure definition, you can select the table. Find the below screenshot.
    If you still getting the issue…Can you please share your screenshot, for better understanding the issue?

  • I am most likely in the wrong place again... I am getting error HRESULT80070035 when attempting to use Overdrive... can you help me?

    I've never been in a forum and I have no idea how this works?... does someone come and chat with me?

    When I go to the forum index https://forums.adobe.com/welcome I do not find a forum for Overdrive
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll
    So, I think you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Getting error message when attempting to access iTunes store. UNknow error occurred (0x800903318). make sure your netwrok connection is active.

    In iTunes software get error message when attempting to access iTunes Store. Could not connect. Unknown error occurred (0xx800903318). Make sure your network connection is active and try again...NG

    Hello there,
    Thanks for using Apple Support Communities.
    Since this error 0x800903318 combined with the network connection error message is occuring when you're trying to connect to the iTunes Store, I'd like you to please follow the steps in the article linked to below.
    Apple software on Windows: May see performance issues and blank iTunes Store - Apple Support
    Cheers,
    Alex H.

  • TS3694 iPod touch gets error -1303 when attempting to restore after update (W7)

    iPod touch gets error -1303 when attempting to restore after update (W7).  This error is not shown anywhere in the specific list.  Have done all recommended recovery methods (reboot, update iTunes, restart iPod) to no avail. What is next?

    Usually the 1303 error is in regards to a corrupted or missing backup of your iPod Touch.  Try removing or moving the backups to another location and then try to restore your iPod once again.
    See this article for information on where backups are stored.
    iTunes: About iOS backups
    B-rock

  • Error message when attempting to use scanner Canon model MP610

    Error message when attempting to use scanner Canon model MP610, any one have any fixes, suggestions?

    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, empty trash, reboot when complete.
    For the other problems...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab of Activity Monitor, are there a lot of Pageouts?

  • HT4623 iam getting Error -1 when iam restoring using itune

    iam getting Error -1 when iam restoring using itune

    Hi LordZc,
    Thanks for visiting Apple Support Communities.
    You can find more information about iTunes restore errors in this article:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/TS3694
    This information relates to error 1:
    Check for hardware issues
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
    Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
    Since you have already tried to restore more than two times, I recommend checking for issues between iTunes and security software using the steps in the article below:
    Resolve issues between iTunes and security software
    http://support.apple.com/kb/TS3125
    After doing so, see this article for the steps to restore when your device is in recovery mode:
    iOS: Unable to update or restore
    http://support.apple.com/kb/ht1808
    Best Regards,
    Jeremy

  • Keep getting error message when attempting to buy a song (Error 5002)

    This error message seems to pop up with just this one song (says there is an issue with the iTunes store and that it is an unknown error) and it has not changed this status for a month now. I have the latest iTunes and there were no problems in updating/getting other songs from the store.
    So what's up?
    Thanks,
    MH

    Hey SDGardella,
    Thanks for the question. I understand that you are receiving error 499 when attempting to download purchases from the iTunes Store. The following resource outlines this error message:
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    "Error 499"
    This alert occurs due to security software. Follow iTunes for Windows: Troubleshooting security software issues.
    Thanks,
    Matt M.

  • I installed Acrobat X Pro on a Windows 7 Laptop.  I get error 1602 when attempting to update the product. Does anyone have any suggestions to fix it?

    I installed Acrobat X Pro on a Windows 7 laptop and get error code 1602 when attempting to update it.  I have tried the Repair Acrobat installation function in the help menu.

    Hey fdciii,
    Please try renaming the ARM folder at this location:
    C:\ProgramData\Adobe\ARM
    Now try updating Acrobat from the Help menu.
    You can also try installing updates from the following link:
    http://www.adobe.com/downloads/updates.html
    Regards,
    Anubha

  • Getting error message when attempting to download the beatles box set itunes lp

    I am getting an error message when downloading the beatles box set/iTunes lp.  States the file isn't there.  please advise.    

    Hi,
       First of all, you have to identify the scheduler server in case you have a multiserver installation.(Server Managr->Options->Server options). Then you have to follow the steps:
    1. Go on Scheduler server, open Control Panel->Scheduled Tasks and delete all the jobs starting with DM_<appset>*
    2. Run the query into the appset sql db:
        delete from tblSchedule
    You can run the steps by application as well(if you have problem only for a specific application):
    1. delete all jobs starting with DM_<appset>_<application>*
    2. delete from tblSchedule where App='<application>'
    Best regards,
    Mihaela

  • I get error message when attempting to update apps on my ipad 1

    "Unknown error has occured" appears when attempting app update

    Try this.
    Sign out of your account, restart the iPad and then sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try to update again.
    If you are not using iOS 6 go to Settings>Store>Apple ID.

  • Get error message when attempting Photoshop CC Update

    I am trying to update Photoshop CC get error message
    Photoshop Camera Raw 9.0(CC)
    There was an error installing this update. Please quit and try again later. Error Code: U44M1I210
    Can anyone help.
    Michael

    See my reply #1 in your other thread http://forums.adobe.com/thread/1419961?tstart=0

  • EvaluatingTteststand 4.2.1: Null pointer access violation (error 17502) when attempting to use a mixed-mode std::map / boost shared_ptr class contained in a DLL through an interface from a different DLL

    Hi there.
    I have been working on a test system which will potentially have TestStand at its core, and downloaded/installed the 4.2.1 evaluation. Current details from the information dialog are:
    TestStand Engine version 4.2.1 (4.2.1.83)
    Sequence Editor Verison 4.2.1.83
    The system will drive mobile radio devices using RS232 serial interfaces, usnig a variety of serial protocols (Hayes, and a couple of proprietary binary protocols for other work).
    We already have in existence a soak tester, written in VS2005 with MFC unmanaged DLLs and also managed DLLs, which are mixed up together to provide different aspects of the functionality required for the binary protocols.
    I have created:
    1. a "master wrapper" DLL for the constellation of other DLLs - this offers up a simple C-API interface which I hope TestStand will use. It's called "SerialSessionMgr.dll""
    2. a mixed managed / unmanaged "IJW" (it just works) DLL which wraps up the binary logging protocol control interfaces, which are entirely in managed C++/CLI: the "master wrapper" DLL calls into this through an unmanaged interface to create instances of the CLI-compiled class which interfaces to the underlying managed DLLs imlpementing the logging protocol. This is called "WinTseInterface.dll".
    Before I started evaluating TestStand, I knocked up a test harness using CPPUnit / MFC, with which I was able to test SerialSessionMgr.dll and its' use of WinTseInterface.dll and verify they worked. The harness loads the DLL dynamically at run-time using AfxLoadLibrary() to try to emulate the way TestStand uses it.
    When we open a
    TSE session:
    The SerialSessionManager makes a call to the
    WinTseInterface.dll to "create" a logging instance. The instance is
    created in a std::map which is held by the CWinApp derived class, this map
    contains boost::shared_ptr of the class which works with a managed class. So we
    have a call trace: Client
    app->SerialSessionManager{TseStartSession()}->WinTseInterface{WINTSE_GetWinTseBridge()} - WINTSE_GetWinTseBridge()
    just creates a new instance of the unmanaged class which interfaces through to
    the managed CLI/C++ class beneath, and returns the address to the
    SerialSessionManager, which stores it.
    The SerialSessioManager actually initialises the WinTseBridge using a method of a C++ pure virtual interface class to the class in the std::map in the WinTseInterface DLL
    implements. The initialise call passes miscellaneous details and actually calls
    "gcnew" to create the managed class which interfaces to the
    underlying managed DLLs which implement the logging protocol.
    My logs of the DLL loading as seen in VS2005 debug output are attached this message as PDFs
    While trying to fix this, I have tried:
    Enhancing the WinTseInterface DLL so it manually loads all the other assemblies in the logging system, including the managed portion of WinTseInterface itself (no effect)
    All the different options for the way the C DLL adapter loads and unloads the DLL in the DLL adapter steptype in TestStand
    I've even tried calling directly into the WinTseInterface DLL before trying any SerialSessionManager DLL calls to try to load the WinTseInterface DLL completely beforehand
    and I cannot stop this exception.
    It seems like the object is created in the WinTseInterface DLL OK (I have debugged the creation step which runs for WINTSE_GetWinTseBridge() and the object is created OK) when the SerialSessionManager makes the call, but when it calls the first managed function, which creates the managed object, the DLL is reloaded as managed - I suspect this causes the object to be destroyed or overwritten, and thus the call to initialise bombs with null pointer violation.
    Have I done something obviously wrong, and what other approaches can I take? 
    Does TestStand 4.2.1 have issues with driving DLLs which use managed/unmanaged DLLs beneath them?
    My nuclear option is to throw the WinTseInterface DLL out completely and wrap up the managed C++ CLI code in a new interface, entirely managed, and use the TestStand ".Net" adaptor to drive that, creating my step library to run to that directly. This isn't ideal as I have some co-ordination of the protocols which is implemented in the SerialSessionMgr DLL.
    I hope someone can help. This one's low level, dirty and a stumper to me.
    Many thanks to the NI community. This is my first posting!
    Solved!
    Go to Solution.
    Attachments:
    CPPUnit Test Harness DLL load debug output.pdf ‏18 KB
    TestStand DLL load & crash debug output.pdf ‏43 KB

    Hi there Ray.
    First - many thanks for engaging with this thorny problem. Love the avatar BTW.
    I've been using the C/C++ DLL adapter: the original premise of the Serial Session Manager DLL was to provide a simple C type functional interface, using simple data types, so that TestStand would be able to drive the underlying functionality easily through a single DLL.
    Seeing as you've been kind enough to respond, I should explain the makeup of the DLLs a little more, I think.
    The SerialSessionManager (SSMgr) DLL uses C++ and MFC internally. This is the DLL which TestStand calls into directly through the C/C++ adapter. This DLL does have one odd feature though - because the it uses the Windows Multimedia Timer (implemented in WinMM.dll) I had to artificially create a scenario where it would load the .Net mscoree DLL _before_ it loads WinMM.dll - (http://connect.microsoft.com/VisualStudio/feedback/details/329819/freelibrary-in-the-winmm-dlls-modu...), basically WinMM.dll's init code gets rather upset when .Net DLLs load, which causes the entire executable to be unloaded with subsequent crashes.
    To work around this crash, the SSMgr has a single, completely empty, file which is compiled for CLR, effectively forcing a dependency into the DLL on the .Net subsystems and turning the DLL into a "IJW" binary. The resulting DLL doesn't actually have any executable managed .Net assemblies, but I'm guessing that it does contain enough .Net related stubs and information that when the DLL is loaded, mscoree.dll loads before WinMM.dll - and this means the system doesn't crash.
    Now, on to the WinTseInterface DLL. My initial description of this little software system was done in something of a hurry.
    This DLL is the C++/CLI "IJW" DLL which actually contains managed and unmanaged code. Underneath the WinTseInterface DLL is another system of (this time exclusively C++/CLI) DLL assemblies which implement the TSE protocol interpretation system.
    When the SSMgr DLL needs to start a TSE protocol session, it calls a C-API function in the WinTseInterface which creates a new CWinTseBridge class. Here's the steps in a little more detail:
    SSMgr DLL calls WINTSE_GetWinTseBridge(), passing in the name of the device which needs it (this is used to put the new WinTseBridge into a std::map in the WinTseInterface DLL) - this call runs just fine, and returns the address of the CWinTseBridge C++ object. This is stored in the SSMgr, because the CWinTseBridge class implements a pure virtual interface which is used by the SSMgr as a way of accessing the CWinTseBridge methods. 
    We now use the address from (1) to make a call to CWinTseBridge::Initialise(), passing some basic configuration details.
    I've run VS2005 debug on the Sequence Editor when running the test, and done F11 step-throughs of the code loading each parameter in the Initialise() call onto the stack, and what appears to happen is that when the call is made, the whole lot steps off into oblivion (a reference to 0x00000000 is made, I think).
    Do you think it's worth trying to get this approach to work? It would be useful to retain the control surface in the top of the SSMgr as there is co-ordination of the protocols within the logic of that component. If I move the Wintse control out into a separate managed DLL I may not have that co-ordination (this might be overcome with some design, as I've confirmed that it is possible to "reach into" the WinTseInterface DLL with TestStand and create and use managed objects from assemblies contained within).
    Are there any known issues with this version of TestStand using C/C++ CLI IJW DLLs? I haven't found much out there on the web.
    Attachments:
    Tse_Test.seq ‏7 KB

  • I keep getting error codes when attempting to publish using FTP...

    "The operation cannot be completed because one or more required items cannot be found. (Error code -43)." That pops up before I can enter my FTP password.
    The other one is not popping up right now, but when I finally was able to enter my FTP password, another error code pops up. It was -36. Can't remember the words.
    Please help me. I NEED(ed) to publish this website yesterday! Thank you!

    I got it to come up! The other error code says "The Finder cannot complete the operation because some data in "ftp://[email protected]" could not be read or written. (Error code -36)"
    This is the on that pops up only after I enter the (correct) FTP password.

  • I get error 3259 when attempting to download podcasts

    I am using windows 7 and in the last week I keep getting this 3259 error. I have check for new updates and everything. I dont know where to go. Help please.

    Update to the latest iTunes software version.
    Try turning off your Firewall to see if the issue is resolved (this includes the built-in Firewall or a third-party Firewall such as Norton Personal Firewall, McAfee, Symantec, etc.). See KB #HT1601 for steps if using Windows.

Maybe you are looking for

  • How to establish an Https connection from a html client

    Hi! I�m totally new to Java so my question is rather"stupid". I have an html page that sends a post to a servlet <form name="form" action="servlet/ServletLogOn" method="post"> I want to establish an https connection between the client and the servlet

  • Regarding ...How to register a serivce in Service Registry ....!

    HI All, i want to know about how we can register a serivce in Service registry from SAP and Third party ...? and how we can use that resistry in ESR(Enterprise Service Registry) of SAP PI 7.1...? Help would be appreciated ....! Thanks in advace , Azi

  • How to Open JPM files in Acrobat

    Is there is any option available for opeining JPM files (Image file with extension .jpm) in any version of Acrobat? Thanks, Rajasekaran A.

  • Acrobat Pro 9.0 and 9.1 crash using Portable Home Directory

    Installed 9.0 as part of CS4 Design Suite, and updated to 9.1. Runs OK for user on local machine but crashes when used by a portable home directory user on same machine, accessing user on OSX Server on local network. Safari also crashes when accessin

  • 500 Connection timed out when in SXMB_MONI in "Call Adapter"

    Hi, We are using SOAP as a receiver adpter. It is working fine all the time but some times we are getting "500 Connection timed out" error in SXMB_MONI in the "Call Adapter" then it retries again and it works fine but I want to know why we are gettin