Invalid values for negative counts using DAQmxReadCounterF64 for edge counting

I am seeing this issue with using DAQmxReadCounterF64 with
simple edge counting. If the counter reads a negative count value, it
returns a number that looks like an unsigned 32-bit number rolled over
(~4294967295).
I am using DAQmx v8.9.5. PXI-6602 with Windows XP, programming in C++.
Is this a bug in the driver?

Hi Mroche,
You're correct that the number you are seeing is the rollover of an unsigned 32-bit integer.  Newer DAQ products use a 32-bit count register (e.g. M Series, TIO, X Series).  In this register, the value -1 is represented the same as 232-1. 
I wouldn't call this a bug exactly.  The value you are reading is what is in the count register, and I don't think it makes sense to necessarily assume that 4294967295 should be scaled to -1 for all cases.  Making this assumption would result in undesired behavior for anybody trying to count to 231 or higher (at which point the count would roll over to -231).
Having said that... position measurements are treated differently starting in DAQmx 9.0 due to the behavior reported on another thread which was in fact deemed a bug (which I notice you have seen already).  The driver casts the raw count to I32 before scaling it to a position.
Now, I'm not so sure it makes sense to treat the two measurement types differently, but I think the reasoning behind the decision was that negative values make sense when talking about position, but for counting edges not quite as much (what exactly is a negative number of edges?).  In the count edges case, I think it makes the most sense for DAQmx to allow the user to handle rollovers himself.  At the end of the day, all the driver can do is change where the rollover occurs (either at 0 = 232 or 231 = -231).
In your case, if you want to read (-) values on your count edges task, the easiest way to accomplish this is to read the data back as U32 (DAQmxReadCounterU32) then type cast it to I32.  This will give the result that I think you are looking for.
If you have any suggestions to help improve usability, please feel free to post to the DAQ Idea Exchange.  Some preliminary ideas to make this experience a little more intuitive might include a property node to set how the data is cast, or perhaps have the driver cast the data to I32 if the Count Direction is set to anything other than Count Up.  Although, the 2nd idea has the potential to break existing applications so it might not be as viable of an option.
Best Regards,
John Passiak

Similar Messages

  • My Company was mistakenly sent CS6 for Windows.  May I download CS6 for Mac and use serial # for win

    my Company was mistakenly sent CS6 for Windows.  May I download CS6 for Mac and use serial # for windows?

    Unless things have changed, there are separate S/N's for the PC and the Mac versions.
    I would immediately contact Adobe Customer Support (not Technical Support), and explain the error. I feel that they will be able to help you with replacing the PC version.
    Good luck,
    Hunt

  • Why the App Store ask for sq.after using it for years and how do find the answers

    Why the App Store ask for sq.after using it for years and how do find the answers

    Reset security questions
    http://support.apple.com/kb/HT5312
    If you do not have a Rescue email, you need to contact apple support, they will guide you through the process of resetting your security questions.
    https://ssl.apple.com/emea/support/itunes/contact.html

  • Net value showing negative in excise billing for free goods items

    Dear All,
    Need value suggestions in business scenario.
    While issuing Free goods to customer in excise billing ,Net  value of ZTNN item showing negative
    Inserted R100 % condition type above Tax condtions.
    MRP is statistical and accessable value is calculated on MRP.
    How to  solve the above issue.
    Due to the Net value showing negative for Free of charge in excise billing,qty value  displaying twice the unit price value in printing
    Thanks & Regards
    H V Kumar.

    Hi
    It is depends on your pricing procedure how you defines.
    Kindly check once again in your pricing procedure.
    Test the cycle once again without entering the R100 condition type in sale order line item and check the next value.
    After enter the R100 condition type check the base value to calculate the Amount.

  • This is a bit of information for folks that use Robohelp for Word.

    I know this is all a day late and a follar short but for those folks that still use Robohelp for Word:
    If your company is going to Windows 7, X5 will not work.  You need to bump it up to at least RH8.
    Even after you upgrade, if you use the tripane (winhelp_2000) view in RH for Word, it will not work on Windows 7 even with the microsoft patch.  With the patch it will look like an older version of RH in winhelp_4.  At least I have not been able to get it to display.
    What will work is if you compile it in Webhelp.  You will loose some links.  I know I should be moving to Robhelp Html and I tried, but when I did that I got a lot of garbage at the top of all my topics, I lost all my external links and I would have to retrain my partner...
    Now about links.  My only complaint about Robohelp for Word was it's limited external linking capacity.  If you use RH for Word you know you can only brouse to the net or to an htm or html document.  It doesn't mean you can't link to a PDF or an excel spread sheet.  You just can't brouse to it.  You can manually enter the path.  I just changed 740+ htm links to pdf links (pdf in same file as htm and the names were the same except for extension) and it worked.  If you intend to try this back up.
    Anyway, if this helps anyone great..if not thanks for letting me babble.  I like my Robohelp for Word in Webhelp format.
    Peggy Theo.

    Thanks for posting this Peggy.
    It is worth adding that there is another way of continuing to work with Word - using Linked Documents in RoboHelp HTML. You create Word documents entirely independent of RoboHelp and then create topics by linking those documents in a RoboHelp HTML project.
    You cannot create WinHelp that way but WinHelp is on life support and requires users to download a viewer, you cannot distribute it. It really is time to move on from WinHelp.
    RoboHelp for Word is not getting much development and does not get the new features being added to RoboHelp HTML.
    Linking is covered on my site.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Need documents for how to use OAM for APPS DBAs

    Hi All,
    Need documents/pdfs, how to use OAM for APPS DBAs.
    Thanks a lot in advance

    Hi,
    For R12 ,refer the Oracle E-Business Suite System Administrator's Guide - Configuration part no:E12893-03 (http://download.oracle.com/docs/cd/B53825_04/current/acrobat/121sacg.pdf)
    For 11i version pls chk :
    Oracle Applications System Administrator's Guide - Configuration (zipped)      B13925-06 (http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115sacg.zip)
    --Rk                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to passing lowercase values to RFC/BAPI using webdynpro for JAVA

    Hi Exerts,
    When we sending values to RFC/BAPI through webdynpro (JAVA), the values are sent in capital (uppercase) letters to ECC.
    So if we fill xxxx, it is send like XXXX. Why? and how to avoid this?
    Thanks in advance,
    Joeri

    Hi,
    There could be two possibility if you are storing this value in ABAP table.
    1. You are entering value in UPPERCASE in your webdynpro application.
    2. The data stored in ABAP table, converts value in small to upper case.
    1.  Can you tell me how you are passing this value, is user entering value in some input field which is binded to some context and this value are you passing to RFC/BAPI...???
    Or else before passing value to RFC/BAPI you can use toLowerCase string function and the npass this value to RFC/BAPI
    e.g String name = wdContext().currentContextelement().getName().toLowercase();
    Now pass this name to RFC/BAPI is should go as lowercase only..
    This is from webdynpro java side..
    2. If you are storing this value in ABAP table, check the domain/type of variable in ABAP table for which you are storing the value. Ask ABAPper, so that this value are stored in small case letter.
    There is one tick in domain which you need to remove so that it stores in lower case. I dont have exact information but you can consult this with ABAPer.
    Hope this information helps guy ..!!!!
    Regards,
    Jigar

  • What Performance Load for simulationg end-use load for Power View and Excel Services?

    I have SQL Server 2014 DW, OLAP Cube, SharePoint 2013, Power View(Silverlight) and Excel Services.
    I would like to monitor performance with perfmon and analyse results with PAL.
    But how to generate end-user load for 1000 users? We would have several end-user roles to simulate each clicking differents slicers in reports.
    What tools are capable for this?
    Any experiences about HP Loadrunner or Neoload with MS BI tools?
    Does Microsoft have any compatible load generation tool?
    Kenny_I

    Simplest:
    Write an MDX script with randomized parameter to be executed in a loop using SSMS.
    Run the script in 50 SSMS query windows. Run it on 20 machines (20x50 = 1000).
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Help for views regarding using Liferay for an already developed project.

    Hi all,
    I don't know if I am posting this question in the right place. If I am then extremely sorry. Guide me to post in right place. I have already posted in Liferay forum but still no reply!
    First of all, let me tell you what I am or my company is intended to do. We have already developed a project using Java, JSP and Servlet. We want it to integrate with Liferay so that we can change logo, css, images, themes or any other UI related component at run time using Liferay admin panel. But backend should be what we have developed. In short, UI of our project is controlled by Liferay but control of data displayed on UI or submitted from UI should be from our developed backend code.
    Now I have a few questions regarding above said approach of fulfilling the requirement:-
    1) What we are trying to do is possible?
    2) Is this approach recommendable for what we intended to do?
    3) Or do we need to develop our project from scratch to fit into Liferay? Like developing portlets and deploying in Liferay or other approach that has been given in Liferay documentation.
    4) What about database integration? We have around 15 columns/fields in user table in database of our project which is completely different from that of Liferay's user table.
    Liferay is a very new for us. We have checked the documentation section of Liferay but still few things like above said requirements and its implementation is not clear. Also, we would like to know in what scenarios/requirements Liferay is useful.
    Eagerly waiting for your views. Any help will be very much appreciated.
    Thanks

    Hi all,
    I don't know if I am posting this question in the right place. If I am then extremely sorry. Guide me to post in right place. I have already posted in Liferay forum but still no reply!
    First of all, let me tell you what I am or my company is intended to do. We have already developed a project using Java, JSP and Servlet. We want it to integrate with Liferay so that we can change logo, css, images, themes or any other UI related component at run time using Liferay admin panel. But backend should be what we have developed. In short, UI of our project is controlled by Liferay but control of data displayed on UI or submitted from UI should be from our developed backend code.
    Now I have a few questions regarding above said approach of fulfilling the requirement:-
    1) What we are trying to do is possible?
    2) Is this approach recommendable for what we intended to do?
    3) Or do we need to develop our project from scratch to fit into Liferay? Like developing portlets and deploying in Liferay or other approach that has been given in Liferay documentation.
    4) What about database integration? We have around 15 columns/fields in user table in database of our project which is completely different from that of Liferay's user table.
    Liferay is a very new for us. We have checked the documentation section of Liferay but still few things like above said requirements and its implementation is not clear. Also, we would like to know in what scenarios/requirements Liferay is useful.
    Eagerly waiting for your views. Any help will be very much appreciated.
    Thanks

  • Adobe CS2 asking for "personalization" after using it for 3+ years

    I have contacted Adobe directly about this and I saw on their site CS4 users had same issue: it asks for the serial number it is is not recognized as valid. I have the original box the discs it came with. I've gone the gamit with Adobe's recommendations and nothing works. This glitch has caused me to lose the use of InDesign and Illustrator (CS2 – yes, it's old but the same issue applies to the newer version!!!)
    This all went down around January 13th of this year. I believe I got an automatic update to Firefox at that time but nothing else was added.
    I could not find a discussion on this so if any of you can offer advice I would greatly appreciate it!!

    Hi there, not sure what it could be, but At this point I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    http://www.macupdate.com/info.php/id/15667
    After installing, Reboot holding down CMD+s, (+s), then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    The 5 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    At least if it doesn't fix it, it'll eliminate a few questions.

  • Preparing images for Dreamweaver cs3, using InDesign for templates

    Hi, I'm about to start putting all my files together for my
    website, but need to know in what form to save my images. I know
    they should be jpegs or gifs, but what resolution, and what size?
    Should I size them close to the size I want to see them on my
    website? For example if I want to make a little linked (like a
    thumbnail that you click on) image of a painting, and have the full
    size image of that painting open up, should I save that image in
    two different sizes?
    Also, the tutorial I'm learning from says I can make a
    template for use in Dreamweaver, with Photoshop or Illustrator, but
    I'd rather use InDesign. Can I use InDesign files as templates in
    Dreamweaver? If so, in what form should I save them?

    > Can I
    > use InDesign files as templates in Dreamweaver?
    it won't be of any practical use, except to print out and use
    as a guide.
    on the images, make them the PIXEL size they need to be in
    the web page.
    If you aren't sure yet what exact size they will be, make
    them a bit
    oversize. Then after changing the html display size of them
    in dreamweaver
    (click on the image, then press shift key and drag corner of
    image to
    resize) you can jot down the pixel size shown in the dw
    properties
    inspector, and resize the image in an image editor to those
    pixel
    dimensions. For a resolution, just use 72 ppi as a number to
    put there.
    It's the pixel dimension that matters.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Support for dynamic forms using javascript for android tablet

    I have some complex multipage pdf forms with javascript functions and calculations made in Acrobat X Standard, I can open and use parts of the form in ezyPDF android app, however the javascript is not fully supported, does anyone know of any plug ins or work arounds to view my forms on an android tablet, my forma have to be stand alone as internet access is not always available.
    Regards Mike

    Get to know CF's structure / array notation. This comes in
    very handy when dealing with queries and form fields.
    - Form.myFieldName can also be referenced by
    Form["myFieldName"]
    - MyQuery.myField can also be referenced by
    MyQuery["myField"][rowNumber]
    Anything in the above example surrounded by quotation makes
    can be made dynamic by just adding in a cf variable surrounded by
    pound signs:
    get_dealer_completion["level_#level_id#"][1]

  • 11g r2 non rac using asm for sun cluster os (two node but non-rac)

    I am going to install grid installation for non-rac using asm for two node sun cluster environment..
    How to create candidate disk in solaris cluster (sparc os) to install grid home in asm.. please provide me the steps if anyone knows

    Please refer the thread Re: 11GR2 ASM in non-rac node not starting... failing with error ORA-29701
    and this doc http://docs.oracle.com/cd/E11882_01/install.112/e24616/presolar.htm#CHDHAAHE

  • Control the Batch Size for inseting tables using xi

    Hi Friends,
    Please let me know if we are able to control the batch size for inserting data using procedures for staging tables. Using SAP XI. Any blogs on this. or any information. please let us know.
    Thank you
    Regards
    Ramidi

    Hi Ramidi,
    There is something called message split on adapter engine but it won't guarantee a sequence of adapter calls.
    here is a blog about it:
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Maybe there is also an another simple way to do it.
    Regards,
    Wojciech
    <i>** Please reward points if found it useful **</i>

  • Interface Using BAPI for Uploading shipment datas

    Can any1 send me the example code for Inbound Interface using BAPI for Uploading shipment datas.please kindly send me the programs which u using with BAPI

    Hi
    Except hiring (or new joinee) for all other actions you can use below Function Module.
    HR_INFOTYPE_OPERATION.
    ~~~Ganesh Kumar K.

Maybe you are looking for