How to determine the precision of the AD converter?

Hello,
I'm using traditional NI-DAQ, and I need to determine whether the DAQ card is 12bits or 16bits. I also need to determine how many bits the general purpose counters are. Currently I'm using a PCI-6023E, which is 12bits for the AD, and 24bits for the counter, but I want to make sure that a different card (MIO-16E, etc) can be plugged in and the software will still work. I know I can use Get_DAQ_Device_Info to check which device is plugged in, but doing a switch statement for all 200 devices would be ugly, and would not detect future NI-DAQ cards. Thanks for any help.

Hello:
ANY E-Series DAQ Device (MIO) will work with the same set of VIs. ALL E-Series devices use 24-bit counters. The only thing that will change is whether it is a 12-bit or a 16-bit card. Now, you should be able to program your device so the code won't change between a 12 or 16 bit card. Is that possible?
If you absolutely need to know whether your device is 12 or 16 bit (programmatically), then you will need to use the infoType "ND_DEVICE_TYPE_CODE" in the function "Get_DAQ_Device_Info." It will return a code that you can look up in the help section for the function "Init_DA_Brds." Instead of a huge case structure, I would use a lookup table where you have a 2-D array of Ints with 1 column being the code and 1 column being the # of bits. Just i
ndex the array to the correct row and you can get the # of bits. Basically, all E-series boards are 12-bits except the 603x and 605x boards, which are 16-bits.
I hope this helps...
Good Luck!
Sincerely,
Brooks B
Applications Engineer

Similar Messages

  • How to determine client locale from the mail?

    How to determine client locale(language/country) from the mail(header)?
    I investigate that some mails have not got any content-language header...
    Also, If mail is in multipart , I cannot get it throught the contentType....
    e.g some header contain header like this: content-Type: "text/html; charset=Big5"
    but some are : content-Type: multipart/mixed; boundary......";
    So, how can I know the client locale?
    Thanks

    You should be able to get the charset from the content type, as u said. the reason some types don't have a charset, such as multipart/* types, is because they don't contain any content on their own! they only contain nested body parts, each of which should have a charset specified. you're gonna have to get the charset by following the mail structure recursively.

  • JSF: How to determine which element has the focus?

    Hi all,
    I have a JSP with some input fields and a text area. When I press "ENTER" the data I have entered should be saved. That works fine (I use JavaScript to catch the keyPressed-event). But when I want to insert a new line in the text area, I press ENTER too and this invokes the javascript function. So it�s not possible to insert a new line in the text area. And I don`t want to save the data when I�m just inserting a new line.
    is it possible to determine which element has the focus at the moment of pressing ENTER? if it`s the text area then I won�t save the data and inserting a new line is possible? Or how to say: "Insert an new line if the user presses SHIFT+ENTER" or something like that?
    I�m using JSC for my application and this is my JS-function:
    function checkIt(evt)      
    var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
         if (charCode == 13)
              document.getElementById('form1:bt_Save').click();
              return false;
              return true;
    I�m looking for something like that:
    if(charCode == 13) {
    if(document.getElementById('form1:textArea').hasFocus())
    doNothing...
    else {
    document.getElementById('form1:bt_Save').click();
         return false;
    thanks for any help

    Hi,
    I searched through many forums (js of course too) but
    I couldn�t find a solution. Everybody knows how to
    set the focus but not how to get it. We often use
    JSF/JSP with javascript and maybe somebody here has
    another approach to this problem (how to solve it
    using jsf itself or anything else)?Take easy. I just suggested to search in a JavaScript forum , in your question you didn't mentioned this. Good luck man.
    Cya.

  • How to determine output based on the content of purchase order

    Hi Gurus,
    I've a typical requirement at my present project. With vendor X we have punchout catalogs. while creation of shopping cart, we are not allowing the user to mix catalog items and non catalog items into the same shopping cart. Once the shopping cart all shopping carts are automatically coverted into PO.
    Now the challenge we are facing is, if the PO is created based on items from catalog, we want to send such PO via XML interface to the vendor. If the PO is created based of items which are free-form, we want to send such PO via Smartform email attachment.
    As this condition can only be determined at runtime, I'm finding a challenge to configure this. In both PO cases, vendor is same but the content of the PO is different. One contains all items that are catalog based and other contains items which are non catalog.
    Can someone help me find solution for this issue.
    Regards,
    Sam K

    Change Forms for Document Output
    You can use the Business Add-In BBP_OUTPUT_CHANGE_SF to override the Smart Forms that are defined in the activity Define Actions for Document Output.
    This BAdI serves as an alternative to the IMG activity Condition-Dependent Document Output.
    Note that no Smart Forms are used for output via XML.
    Standard settings
    The following parameters are available in the method CHANGE_FORMS. Depending on the input parameters, you can define other Smart Forms to output the document type.
    Importing
    IV_GUID
    Globally Unique Identifier of the document.
    IV_MEDIUM
    Output medium found for this document according to Define Actions for Document Output (print: PRN, fax: FAX, e-mail: MAI, XML: MET).
    IS_PARTNER
    Business partner to whom the document is sent.
    IV_OBJECT_TYPE
    Business transaction type.
    Changing
    CV_SMARTFORM
    Smart Form used to output the document.
    E-mail output
    Smart Form with which the document is added to the e-mail in the form of a PDF attachment.
    Note:
    Note that the BAdI with this parameter overrides the parameter form name (technical name of the Smart Form BBP_PO for example) irrespective of the defined determination technology (SRM: Purchase Order Output Determination, for example).
    CV_SMARTFORM_MAIL
    Smart Form used to define content and layout of the e-mail text in the case of e-mail output.
    CV_SUBJECT_MAIL
    Smart Form that determines the text in the (short description of the e-mail content).
    As an alternative to this BAdI, you can control document output via determination technology.
    For more information, see Condition-Dependent Document Output.
    EXPLORE THIS badi

  • How to determine a BP from the user

    HI Experts,
    We have a scenario where there are contract employee's which are not maintained in the system as employee but maintained as BP, now during creation of any transaction i need to determine the contract BP based on the user, in the user master we are maintaining e-mail, the same is also maintained in the BP, which is also unique, is there any ways i can dtermine the BP in the transaction, please somebody help me, this is very crtical in my project.
    Regards
    Milan

    You can always use badi. To use badi, you would have to define in partner access sequence as source COM_PARTNER_Z (Business add-in 3).
    Then you would have to create your implementation of that badi (spro>crm>basic functons>partner processing>business add-in for partner). In thet badi implement method DETERMINATION_ADD_IN_3 in which you can put whatever logic you need.
    Regards.

  • How to determine # of recs in the data grid - with filter being used

    Say I'm looking at table or view that has 10,000 rows. I put a filter on the filter line such as state = 'WA'. Let's say the data grid (where I see the data clicking the 'data' button) now has 2,500 rows with the filter in effect.
    So, how do I tell how many rows are in the data grid now? I can see how to retrieve the total number of rows for the table or view, but how when a filter is in effect.
    Thanks.

    Okay thanks.
    Sure would have preferred to see (dare I say ... like TOAD) where you can just right click in the data grid and choose record count.
    But thanks - I'll use the COUNT method (till of course it's added 8-)
    Russ

  • How to determine which drive has the most recent backup?

    I have a few drives that contain backups of files. What would be the easiest way to figure out which of the drives has the most recent backup? When I sort by date, the folder shows one date, though the files inside show a different date? Is there a way to quickly check the drives to find which is the most recent?
    Thanks.

    the folder modification date isn't reliable, as is only tells of changed in the folder, but not in subfolders. there is no efficient way. I however highly suggest Time capsule, it is WAY easier and you can ask it not to sync the System data and/or applications, so it would prevent this hassle.
    You could try this: go to the first drive, type different letters, like a for instance, and see which file is the most recent document/folder.
    do the same thing on the other drives and compare.

  • Is it possible to set the precision for the subtraction operator?

    Hi everyone.
    I have two complex double precision numbers that are suppose to be equals. Each one is the result of different sets of equations.
    When I subtract one from the other the result is not zero.
    I think this can be explain by the fact that they are quite large numbers (about 1E+101), causing the subtraction operator to drop (or round, or do something not legit with) the two numbers. Moreover, if I repeat the subtraction with different large numbers, I obtain about half of the time the expected result (zero) and the rest of the time I obtain a value between 1E+84 and 1E+86.
    What I would like is to get the result right everytime, so I thought about setting a precision to the subtraction operator. Is that possible? If it is, how am I suppose to do that and if not, what's wrong with the subtraction operator?
    Thanks
    tonh

    Thought 1: 1e+101 is pretty big!  Do you *need* all your calcs to carry such a big exponent?  For example, can you run all the calcs on values that have been scaled by 1e-100, then at the end of all the calcs scale back by 1e+100? 
    Thought 2: If you just need to compare for approximate equality, you could divide the difference by the larger of the two values being subtracted.  If you subtract two virtually equal 1e+101 values, you may get a difference in the order of 1e+85.   The division will give you a ratio of ~1e-16.  Ratios in that realm will mean that the two original values are about as nearly equal as the floating point representation can express.   This type of method scales pretty well to work with both very small and very large floating point numbers.
    Thought 3: If the inputs to your calcs are in the order of 1e+85 or less, you may really have your work cut out for you.  You'll need to think carefully about floating point representation error at each step of the calculations to know where you can round, truncate, approximate, etc.  There may be places where rounding will be *necessary* and other places where it is *disastrous*.
    To summarize: you need to apply some of your error knowledge to your code.  The 1e+101 calculated values probably don't have more than 6-8 *significant* digits of accuracy, right?  (Most numbers come from some kind of measurement, or a rounded-off value for a scientific constant, etc.)  You'll need to analyze your values and calcs to understand about how many digits of the 1e+101 numbers are truly *significant*.  Then your code will need to treat values which differ by less than that amount as if they are truly equal.
    -Kevin P.

  • The precision of the timing analysis

    In my project, I can get the timing analysis of the path "clk50M_PE2_ref to FPGA_TEST6". The "clk50M_PE2_ref" and "FPGA_TEST6" are the ports of FPGA. The path delay is 7.473ns from the timing analysis reports.
    But when I measure these two ports signal with Oscilloscope, I get the delay time is 5.2ns. The testpoints are at the through-hole on the back of the FPGA (that is the bottom of the PCB).
    Why the delay time is different between timing analysis and oscilloscope measurement? Which is the correct in fact?
     

    yssy2000 wrote:
    Thanks for your reply!
    If I want to know the delay time from A ports to B ports, how to get the exactly value except with the oscilloscope?
    That's like asking "how can I get the exact temperature at 2PM tomorrow except by waiting until then and using a thermometer?"
    The tools can only predict the delay as a range, minimum to maximum, based on characterization data for your part.  There are differences in delay from part to part (Process, the "P" in PVT), with variation in supply voltage (Voltage, the "V" in PVT) and with die temperature (Temperature, the "T" in PVT).  You can use a scope or other measuring instrument to find the actual delay for a particular part at a particular voltage and temperature.  Even so this delay may change for the same part and voltage supply due to changes in temperature.  So the bottom line is, why do you need to know the exact delay?  Typically you'd only need to know if you are using the FPGA as a timing generator, and in that case you would need to have a way of calibrating your output delay in order for it to be reliably repeatable.

  • How to determine if coming from the Error Page?

    Version 4.1.1.00.23
    Hello,
    I have a manually created tabbed form with a collection.
    I've added a validation and set the error message to display on the Error Page to preserve the information entered into the form.
    One of the Select Lists is a cascading list. That list does not populate when returning from the Error Page.  The parent list is populated and does show the value selected before the error was thrown. It's just the list that is based on the parent that isn't populated.
    If I refresh the page the Select Lists are reset and I can access the values normally.
    So, what I think I want to do (and I'm not sure here) is to refresh the page when returning from the Error Page.
    How can I determine if I'm coming back from the Error Page?
    Is there a better solution?
    Please let me know if this isn't clear or there are questions.
    Thanks,
    Joe

    Hello,
    I'm hoping someone can help me with this.
    Thanks,
    Joe

  • How to determine what goes in the xib list

    How do you know when you need to add a View Controller or a Nav Item, or other classes in the same window that has File Owner and First Responder icons in it.
    I mean I understand I have a View showing and I link it to the File Owner, because the File Owner is the ViewController for that xib. But in what scenarios do you have to add another ViewController, or a TableViewController, of a NavController, or a NavItem or NavBar.
    And I do not mean the MainWindow.xib which has a Window, I mean other new xib files that you create to make the rest of your application.
    Thanks for the help
    Mark

    A general rule of thumb is that you will have a nib for each ViewController. Sometimes a VC is so simple that there is no need to lay it out interactively - these may be implemented entirely in code. In contrast a view may become so complex that you choose to implement some of its subviews in separate nibs.

  • How to determine which locale uses the specific process

    Hi,
    I would like to get to know which locale uses the specific process.
    I mean that when the process starts it should use the current system locale.
    Where I can check that information which locale are used by the running process?
    I ask because I would like to make sure that for example when the locale are French or Japanese the process/deamon use the current locale.
    Kind regards,
    Daniel

    VivaLaVida wrote:
    Hi,
    currently we are in the process of consolidating our databases. One of the neccessary steps is to figure out which user connects to the database at all. That's easy, we implemented a logon-trigger and log the collected information into a separate table.It could have been even easier by turning on the built-in audit feature.
    If a user with objects (e.g. tables, views, procedures) exists - but this user never connects to the database - does that automatically mean that these objects are not used at all? No need to say that this is not true. But how can we figure out if a connected user has selected an object of this user?audit would be a good choice.
    Our porblem is that we have alot of schemas in our database - but the developers don't know if this schema is not used by an application or not (sad but true).Not sure what developer will do with used/not used application.
    To enable auditing would be one choice to figure out if an object was ever used or not. What's wrong in auditing ?
    Even though audit may have a footprint on performance, that would probably be less costly than any custom solution.
    Nicolas.

  • How to determine which RAC-instance the appl. is logged onto?

    Dear all,
    I need to have my application server determine which RAC-
    instance is currently active (logged onto). I have a
    tnsnames.ora file with a primary-, and secondary RAC-
    instance configured, and Failover/Failback between the
    instances work fine. However, I would be interested in
    determining which instance I am curently using.
    Does the Oracle Net Protocol have support for letting me
    "read" this out, or...?
    Thanks.
    Regards, Eldor R.

    Thank you for the prompt reply.
    Is there, in the Oracle Net Protocol, available
    function(s) for reading out this information
    directly without "parsing" the trace file?
    I would like to read out this information from my
    application run-time.
    Thanks.

  • How to determine InfoCube name within the update rule start routine?

    We are attempting to delete all the records where all key figure values are zeroes. We have about 15% of such records and we really don't need them.
    We have yearly InfoCubes. We copy the InfoCube and update rules at the end of every year. So, we don't want to hard code any field names within the update rules.
    If I could determine the target InfoCube name within the update rule start routine, I can find out all the key figures dynamically. But, I don't see a way of finding out the InfoCube name.
    If you would share any ideas, I would really appreciate.
    Thanks.
    Sudhi Karkada.

    Hi Sudhi,
    I dont know if this is what you are looking for.
    if you want to delete a record from being inserted when all the Key figure values are ZERO then you can use a Update Routine for some characteristic in the below way
    If looking for the InfoCube:
    if COMM_STRUCTURE-KF1 = 0 and COMM_STRUCTURE-KF2 AND....
      RETURNCODE = 4.
    else
      RESULT = COMM_STRUCTURE-ChanracteristicObject.
    endif.
    If it is to an ODS / InfoCube in the start routine.
      DELETE DATAPACKAGE where KF1=0 and kf2=0 and .....
    Hope it helps.
    Regards,
    Praveen.
    ENDLOOP.
    Message was edited by: Praveen

  • Reducing the precision of the number datatype while creating a M view

    Hi,
    I am trying to create a materialized view using the query
    create materialized view mv1 as select cast(empno-7000 as number(3)) empno, sal from emp
    where empno > 7000;
    But after creating the mv the description is shown as below
    SQL> desc mv1
    Name Null? Type
    EMPNO NUMBER
    SAL NUMBER(7,2)
    I need the result empno number(3) instead of number
    Is that possible.
    Poulose

    hey, it worked for me:
    SQL> select * from v$version
    2 /
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE     9.2.0.6.0     Production
    TNS for Compaq Tru64 UNIX: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    SQL>
    SQL> create materialized view
    2 num_cast
    3 as select cast (1000 - 700 as number(3)) empno from dual
    4 /
    Materialized view created
    SQL> desc num_cast
    Name Type Nullable
    EMPNO NUMBER(3) Y
    SQL>
    I have a feeling that your oracle version is lower then 9
    Amiel.

Maybe you are looking for