How to use NIDAQmx to determine the number of lines correlated DIO?

How can I used NIDAQmx to determine the number of correlated DIO lines that supports a device?  For example, the NI6225 supports 8 correlated digital of/s lines while the NI6229 supports 16 correlated digital of/s lines.  How can I used NIDAQmx to determine the NI6225 supports only 8 lines while the NI6229 supports 16 lines?

I moved this question from a previous thread.

Thank you

Ian

Here is a code snippet that implements the regular expression detection:

Tags: NI Hardware

Similar Questions

  • How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    Here's the working solution

    Please rename all the boxes like chkBox0, chkBox1... .chkBox30 (must start with 0)

    Value of exports of each checkbox must be "Yes" (default value is Yes)

    Place this Code at the level of the Javascript Document

    -Code JavaScript document-

    var counter = 0;                Checked the meter

    -Count boxes checked again when the document is closed and reopened.

    for (var i = 0; i)<= 30;="">

    If (getField("chkBox"_+_i).value == 'Yes') {}

    Counter += 1;

    }

    }

    -The function of validation-

    function validateCheckBox(name,value) {}

    If (value == 'Yes' & meter)<>

    Counter += 1;

    } else if (value == 'Off') {}

    counter = 1;

    } else {}

    getField ("name") .value = "Off";

    App.Alert ("you can select only four checkboxes");

    }

    }

    -End of Document Javascript-

    Now put this line in the MouseUp event all checkboxes

    Box - Code MouseUp event.

    validateCheckBox (event.target.name, event.target.value);

    //----------------------------------------------------------------------------------

    Hope this will help

    Kind regards

    Post edited by: Mohammad Irfan

  • Script to determine the number of lines of text in a paragraph?

    I'm revisiting a problem I posted here last summer, thanks to all those who have offered help, but I could not sort it out.

    http://forums.Adobe.com/thread/455526?TSTART=0

    What I'm after is a 'search' function to insert in a FindChangeByList.

    Jongware suggested the following - but when inserted in my list, I can't seem to do anything - it does not take a Javascript error.

    app.findTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = "Callout_3";
    foundItems = app.activeDocument.findText();
    for (var i=foundItems.length-1; i>=0; i--)
    {
      if (foundItems[i].paragraphs[0].lines == 2)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_2";
      if (foundItems[i].paragraphs[0].lines == 1)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_1";
    }

    I regularly get a 'word' document on which I run a "FindChangeByList" that cleans and formats the text with a number of GREP/text searches.

    One of the lines of research converts a particluar to the text string to a paragraph style "Callout_3" (the most common legends).

    This style applies to paragraph NET, above and below the line, to create a block/strip of color that says text is reveresed.

    The problem I have, is that the style (due to the rules of paragraph), works well if the paragraph has x 3 lines of text.

    I have updated styles in place for any eventuality - Callout_1 (for the single line of text), Callout_2 (for x 2 lines of text) etc.

    I'm looking for is a script that can count the number of lines in the paragraph (once the "Callout_3" style has been applied) and then change the style accordingly the number of lines in each paragraph/legend.

    Any other thoughts?

    Steve

    -your script can be incorporated into a FindChangeByList .txt file?

    No, he needs to access real paragraph finds it to count the number of line of this paragraph. FindChangeByList Find/change regular strings together, and you can not search for a certain number of lines.

    -what it takes to go to the 'findStyle ('Callout_1');"reference within a"group of paragraph style"called"legends "?

    ... Nothing. Because the style can be within a group, I wrote this little function. The findStyle performs a loop on * all * paragraph styles in the document, the root and in each group and returns the first style with the name that you provide in the function call (tested!).

    So if there is a 'Callout_1' style anywhere, it should find it... Are you sure you put the name at the top of the script? I've seen in a post later that it is actually called "Callout_1line".

  • Determine the number of traditional DAQ hardware using Labview.

    Hello

    Anyone can answer the question:

    Regarding materials traditional DAQ, for example the DMM OR-4060, how

    can I programmatically determine the number of device which can be seen in MAX?

    With the help of Labview 8.5, I looked into the following function libraries:

    NOR-DMM

    VISA

    NOR-ModInst

    None of the libraries above seem to provide access the number of traditional DAQ hardware

    property, which is automatically assigned.

    Background:

    I have a 18 PXI chassis containing 2 DMM, in housing 3 and 14.

    The DMM may be a mixture of type OR-4060 or NOR-4070.

    The system is controlled by a Teststand sequence employing IVI - DMM

    steps.

    When you set the IVI logical name step, I am referring to IVI device defined Sessions

    Max - rutime determined.

    Labview VISA functions using I can determine the model, i.e. 4060 or 4070.

    Because the DMM just locate into the slots 3 or 14, then the devices NOR-4070

    are accessible using the following descriptors of resources: PXI1Slot3 or

    PXISlot14.

    (The 4070 is compatible DAQmX.)

    So for devices OR-4070, I can predefine 2 Sessions of IVI device, knowing

    It will be sufficient for all occasions, when I run my Teststand sequence, which will be

    determine what device session to use at run time.

    But I'm stuck for the NOR-4060.

    At the Session of the device, I have to give a descriptor of resource the following

    format: DAQ::x (where x is the device number)

    I could create device 18 sessions each reference to a different DAQ::x, but to select

    the good pair during execution, I would need to programmatically determine the device

    number, i.e. the value of x.

    Where my question.

    The closest I came to a solution was an entry of the Knowledge Base that said that the

    Assigned device number would be the same as the slot number, providing the

    Number of the device had not previously configured manually.

    Unfortunately, our device numbers have been changed manually and maybe in the future.

    All popular solutions.

    Gary.

    Hi Gary,.

    Good afternoon and I hope that your well today.

    Thanks for your post and I want to help you solve your problems.

    I don't think there is just a function that you can use to identify and collect information on all cards with your. For traditional DAQ devices in particular I suggest using the Information.vi of DAQ devices get.

    If you look at this link,

    SAL posted an example VI entitled, find dev trad.vi.

    You can get information such as serial number, Dev name and the Base address.

    The assistance of the respective drivers to collect information you could generate an array of strings with the information that you need all the slots.

    Please let me know if this is useful at all,

  • Determine the number of rows returned by a cursor

    I have a problem when I need to use slightly different logic based on whether or not a cursor returns a single line or multiple lines. I know you can use % ROWCOUNT to determine the number of rows returned far+, but it's not really help me because I need to know this information before I start to do any treatment.


    In other words. How can I know the number of rows returned by a cursor without actually iterate through the entire thing.

    I'm looking for something like this:
       Cursor ReqCursor(pi_cert_id IN Varchar2) Is
          SELECT course_id cid, grade g
            FROM requirements
           WHERE cert_id = pi_cert_id;
       c_ReqCursor ReqCursor%Rowtype;
    
    Open CertCursor(p_cert_num);
        Loop
            Fetch CertCursor
              INTO c_CertCursor;
            Exit When CertCursor%Notfound;
            
            If c_CertCursor%NumOfRows > 1 THEN
                Case A;
            Else
                Case B;
            End If 
       End Loop
    Close CertCursor;

    For your business add

     SELECT course_id cid, grade g, count(*) over() Tot_Rows
            FROM requirements
           WHERE cert_id = pi_cert_id;
    --"Fetch 1st row and you will know if the cursor has more than 1 row"
    

    HTH
    SS

  • Move and organize files based on the number of lines

    Hello

    I have a directory containing files nearly 1,500, some of which are composed of 12 lines, some of which are composed of 4 lines, which are all .phy (PHYLIP) files, which can be viewed in Notepad/wordpad as text files.

    I need to execute a script which will determine the number of lines in each file and move them to the corresponding folder. The file size will not work for sorting, I've tried.

    that is, all files with 4 lines in one folder, all the files with 12 lines in another folder, any files left (so I can be sure that everything has been inspected) in the main directory.

    Can anyone help?

    Thank you

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • How to determine the number of pixels of an object in a digital photograph?

    Hello world. I want to determine the number of pixels in an object that is part of a digital photo. I use cameras to film of ice pieces, breaking with tide glaciers or ice cliffs. I want to know the size of the ice segment that capture my digital photos. I know that the width and height of the cliff of ice in metres already, so I thought that I could convert the equivalent of 1 pixel:? m is really what I want to do. This way, whenever I see a block of ice, breakup, I can pull up the photo, describe the piece, calculate how many pixels to fill the area of ice removed by piece break and convert into zone meters 2 - giving me my order of size. If anyone has any ideas on how to do really, I would appreciate it thanks so much community. I thought Photoshop or Fireworks might help me with this, Ricky

    Make your selection

    Select the histogram tab, and then click the symbol at the top right.

    Choose expanded view

    See this:

  • How to determine the number of characters in a PDF file?

    Acrobat.com, how to determine the number of characters or words in a PDF file?

    Hi unk2,

    There is no feature in Acrobat.com online services to a number of characters. But, you could use ExportPDF to convert your PDF files to Word format and then create your character count in Word.

    Please let us know if you need help.

    Best,

    Sara

  • How can I determine the number of contacts that I have

    How can I determine the number of contacts that I currently have on my iphone

    I don't know of a way on the iPhone, but if you have a Mac, you can go to the Contacts (platform) app and scroll to the bottom where you will find the total.

    Same for iCloud.com on your browser, go to the app, scroll down.

  • How to determine the number XP or XP 64-bit operating systems.

    Hello
    I need to download a driver but need to know if I have Windows XP, XP 64. I run Internet 7 SP3 if that makes a difference. Properties-General-he reads the slot system Microsoft Windows XP Home Edition Version 2002 Service Pack 3. I think this answers the question that it is not XP 64 but want to make sure and would appreciate any help.

    XP Home does not come as an x 64 version.

    How to determine whether a computer is running a 32-bit version or the 64 bit version of the Windows operating system. http://support.Microsoft.com/kb/827218

    Windows XP if you have Windows XP, there are two ways to determine if you are running 32-bit or a 64-bit version. If one does not work, try the other.

    1. Click Startand then click run.
    2. Type sysdm.cpl, and then click OK.
    3. Click the general tab. The operating system is displayed as follows:
      • For a 64-bit version operating system: Windows XP Professional x 64 edition Version < year=""> appears under System.
      • For a 32-bit version operating system: Windows XP Professional Version appears under System.

      Note is a placeholder for a year.

    1. Click Startand then click run.
    2. Type winmsd.exe, and then click OK.
    3. When System summary is selected in the navigation pane, search for processor under item in the details pane. Note the value.
      • If the value that corresponds to processor starts with x 86, the computer is running a 32-bit version of Windows.
      • If the value that corresponds to processor starts with ia64 or AMD64, the computer is running a 64-bit version of Windows.

    If you cannot determine the number of bits of the operating system with these methods, go to the "Next steps" section (of the KB article)

  • I got a license number for Adobe Master Collection from my school (Stevens Institute of Technology) and I can't understand how to use it to obtain the product. I created a user name and this is as far as I'm away.

    I got a license number for Adobe Master Collection from my school (Stevens Institute of Technology) and I can't understand how to use it to obtain the product. I created a user name and this is as far as I'm away. I need to download the product and I may not know where to start.

    Ask someone to your school... You have a Cloud redemption code, or a number of series CS6?

    If cloud, http://helpx.adobe.com/x-productkb/global/redemption-code-help.html Redemption Code and

    http://www.Adobe.com/products/creativecloud/FAQ.html

    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall

    http://forums.Adobe.com/community/download_install_setup/creative_cloud_faq

    What is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html

    To start https://helpx.adobe.com/creative-cloud.html the Cloud

    If CS6, download to other downloads and enter your serial number when prompted

    Once again, your 1 resource is your school

  • Determine the number of channels selected for traditional DAQ

    The blocks 'DAQmx task' and "Traditional DAQ Channel" look pretty similar (see attachments). The DAQmx block ist an individual selection of channels and I am able to determine the number of selected channels.

    Now I am trying to determine the number of selected channels to a traditional DAQ, but the property DAQmx block does not work here. I already tried the trad to some form of blocks. Range of data acquisition, but failed.

    Any idea?

    In traditional DAQ, there are several ways of specifying the list of channels. Assuming that your picture shows how you use your channel list is just a string of delimited by commas. Wire a constant to a string array node worksheet and specify "comma" as the separator and the number of columns must tell you the number of channels.

    Ben

  • determine the number of Monday, Tuesday, Wednesday and Thursday

    Hello all;

    I want to determine the number of Monday, Tuesday, Wednesday and Thursday from January 1, 2011 to March 14, 2011. How can I go to write.

    Any help is appreciated.

    Thank you.

    Hello

    Here's one way:

    WITH     parameters     AS
    (
         SELECT     DATE '2011-01-01'     AS start_date
         ,     DATE '2011-03-14'     AS end_date
         FROM     dual
    )
    ,     all_days     AS
    (
         SELECT     TO_CHAR ( start_date + LEVEL - 1
                   , 'fmDay'
                   , 'NLS_DATE_LANGUAGE=ENGLISH'     -- If necessary
                   )     AS weekday_name
         FROM     parameters
         CONNECT BY     LEVEL     <= end_date + 1 - start_date
    )
    SELECT       weekday_name
    ,       COUNT (*)     AS cnt
    FROM       all_days
    WHERE       weekday_name     IN ( 'Monday'
                        , 'Tuesday'
                      , 'Wednesday'
                      , 'Thursday'
                      )
    GROUP BY  weekday_name
    ;
    

    Published by: Frank Kulash, March 14, 2011 14:06

    I just saw your second message. Thanks for posting this; It may be useful to see your code, even if this does not work.
    It sounds like you have the CONNECT BY part properly, but you do a lot of difficult operations on dates. Oracle provides several very useful date manipulation functions, as well as the DATE arithmentic. Beware of excessive conversion of DATE in VARCHAR2, or vice versa. For example

    to_char(to_date(...
    

    It almost never be in Oracle.

  • determine the number of brushes with javascript

    I feel that he concocted before (more precisely in the context of rotating brushes), but I can't locate here or on PS - Scripts.com, so:

    How to determine the number of brushes in Photoshop?

    I intend to use this information for is to save the last brush as a set via JavaScript.

    Any help appreciated.

    Nope. It's free.

  • determine the number of pages of a pdf prior to any operation on it

    Any of you know how to determine the number of pages in the pdf file (selected with the Open for example)?

    Somehow, I can't understand how to do that any way short of actually opening/pixelation all pages without prior knowledge of the actual number.

    I would like to use this information to determine the number of items to a contact-sheet-like procedure beforehand.

    MultiPageImporter2.0.jsx, which is an Indesign Script by Scott Zanelli, obviously the fact, but so far I have failed to properly use its functions.

    Anyway, have a good weekend

    pfaffenbichler

    OK, now it works...

    Install x script changing the CSx version

    Then run this script by changing the location of pdf and the version of CS... (NB: does not work with CS2.) CS, CS3, and CS4 should be ok)

    /////////////////////////////////////////////////////////////

    var pdffile = file ("~/Desktop/56 pages.pdf") .fsName;

    ////////////////////////////////////////////////////////////

    var file = new File ("/ Applications/Adobe Photoshop CS3/Presets/Scripts/macexec.app/contents/macexec");

    var pdfcnt = File ("~/pdfcnt");

    If (pdfcnt. Exists) pdfcnt.remove ();

    {if (file. Exists)}

    leader. Open ("e");

    leader. Encoding = "BINARY";

    leader. Write ("/ usr/bin/LDM - name kMDItemNumberOfPages");

    leader. Write ("\""+pdffile+"\"|/usr/bin/grep o [0-9]------+ $ > pdfcnt \n");

    The following line closes all Windows Terminal.

    file.writeln ("/ usr/bin/osascript - e ' tell \"Terminal\ request "to quit" ");

    leader. Close();

    }

    leader. Execute();

    var test = false;

    {while (test)}

    if test (pdfcnt.exist) = true;

    $.sleep (50);

    }

    for (var t = 0; t)<>

    If (pdfcnt. Length > 0) break;

    $.sleep (50);

    }

    pdfcnt. Open ("r");

    var number = parseInt (pdfcnt.readln ());

    pdfcnt. Close();

    Alert ("number of pages in" pdffile + "=" + count);

Maybe you are looking for