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,

Tags: NI Hardware

Similar Questions

  • 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

  • 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:

  • How can I determine the type of image to be used before loading an image?

    I'm developing an application using VB 2005 which measures two 8-bit or 16-bit image files. When I saw the picture, I find that I have to set the type of image the image buffer before playback of the image in it. For example, if I read a 16-bit image in a buffer of 8 bits, the image is truncated. I guess I could read the image in a 16-bit buffer and retype it if the pixel values are less than 255.

    Is there a better way to do it? Can I determine the number of bits of an image before loading in a buffer?

    Thank you!

    Hi Steverino,

    Olivia is incorrect... VDM has a function called GetFileInfo which does just what you want. It only reads the header of the image but does not load the entire image in memory. It will give you various properties such as the bit depth.

    I think that on the new .NET support, there can exist here: NationalInstruments.Vision.Analysis.Algorithms.GetFileInformation.

    Thanks to the ICB and our legacy of .NET support, it's probably a similar name.

    Eric

  • 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

  • Run a query that will determine the number of parts to produce

    I have the task I have to determine the number of parts that need to be produced based on the number of products sold for the day (each product consists of several parts).

    I use SQL 11g Express.

    I watched this during so long and tried so many different ways. Here's some of what I tried, with the error messages. I don't know where I am going wrong get this calculation. Here, any help is greatly appreciated!

    Here's my info:
    /**PRODUCT**/
    
    CREATE table Product
    (
        SKU       VARCHAR2(10) NOT NULL,
        ProdDesc   VARCHAR2(50) NOT NULL,
        Price      NUMBER(5,2),
        PRIMARY KEY(SKU)
    );
    
    /**PART**/
    CREATE table Part
    (
        PartID     NUMBER(6) NOT NULL,
        PartDesc   VARCHAR2(50) NOT NULL,
        PRIMARY KEY(PartID)
    );
    
    /**PRODUCTPART**/
    CREATE table ProductPart
    (
        SKU        VARCHAR2(10) NOT NULL CONSTRAINT fk_ProductPart_Product REFERENCES Product (SKU),
        PartID     NUMBER(6) NOT NULL CONSTRAINT fk_ProductPart_Part REFERENCES Part (PartID),
        NumOfParts NUMBER(3),
        CONSTRAINT pk_ProductPart PRIMARY KEY (SKU, PartID)
    );
    
    CREATE table Customer
    (
        CustID     NUMBER(6) NOT NULL,
        CustFname  VARCHAR2(20) NOT NULL,
        CustLname  VARCHAR2(20) NOT NULL,
        Company    VARCHAR2(40),
        Address    VARCHAR2(40) NOT NULL,
        City       VARCHAR2(30)NOT NULL,
        State      VARCHAR2(2)NOT NULL,
        Zip        NUMBER(5)NOT NULL,
        Phone      NUMBER(10)NOT NULL,
        PRIMARY KEY (CustID)
    );
    
    CREATE table CustOrder
    (
        OrderID    NUMBER(6) NOT NULL,
        Qty        NUMBER(3) NOT NULL,
        OrderDate  Date NOT NULL,
        SKU        VARCHAR(10) NOT NULL CONSTRAINT fk_CustOrder_Product REFERENCES Product (SKU),
        CustID     Number(6) NOT NULL CONSTRAINT fk_CustOrder_Customer REFERENCES Customer (CustID),
        PRIMARY KEY (OrderID)
    );
    
    
    Here are some of the queries:
    
    SELECT ProductPart.Qty
        (
    SELECT CustOrder.SKU,
    sum(CustOrder.qty)
    FROM CustOrder
        GROUP BY CustOrder.SKU;)
    FROM ProductPart
    WHERE ProductPart.Qty * sum(CustOrder.Qty)
    
    
    ORA-00936: missing expression
    
    SELECT o.OrderDate AS "Date Ordered",
           o.OrderDate + 5 AS "Date Due",
           pp.PartID AS "Part No.",
        pp.NumOfParts * COUNT(o.SKU) AS "Qty"
    FROM CustOrder o
    JOIN ProductPart pp
      ON o.SKU = pp.SKU
        GROUP BY pp.PartID, o.OrderDate, COUNT(o.SKU)
    ORDER BY o.OrderDate
    
    
    ORA-00934: group function is not allowed here
    
    SELECT ProductPart.Qty,
           ProductPart.PartID,
           ProductPart.PartDesc
    (SELECT COUNT(CustOrder.SKU)
     FROM CustOrder
     GROUP BY CustomerOrder.SKU)TotalProducts,
    ProductPart.Qty * TotalProducts AS "Qty"
    FROM ProductParty
    WHERE CustOrder.SKU = Product.SKU
    AND Product.SKU = ProductPart.SKU
    
    
    ORA-00936: missing expression
    
    SELECT ProductPart.Qty,
           ProductPart.PartID,
           ProductPart.PartDesc
    (SELECT sum(CustOrder.qty)
    FROM CustOrder
    GROUP BY CustOrder.SKU)TotalProducts
        ProductPart.Qty * TotalProducts
        FROM ProductPart
    
    
    ORA-00936: missing expression

  • 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);

  • determine the number of Monday, Tuesday, Wednesday and Thursday in a month

    Hello all;

    I'm still trying to think and understand it. Y at - it a syntax that you can use to determine the number of Mondays, Tuesdays, Wednesdays and Thursdays for a month for a given year, taking into account leap years.

    Thank you.

    Hello, welcome to the forums.

    Something like this should do it:

    with day_tab as (
    select mon_dt + level - 1 dt,
           to_char(mon_dt + level - 1, 'DY', 'NLS_DATE_LANGUAGE=''ENGLISH''') dy
      from (select trunc(to_date(m || '/' || a, 'MM/YYYY'), 'MM') mon_dt
              from (select &v_month m, &v_year a from dual))
    connect by mon_dt + level - 1 <= last_day(mon_dt))
    select count(*) cnt_tot
      from day_tab
     where dy in ('MON', 'TUE', 'WED', 'THU');
    

    Run the example:

    SQL> var v_month number
    SQL> var v_year number
    SQL> exec :v_month := 2;
    
    PL/SQL procedure successfully completed
    v_month
    ---------
    2
    
    SQL> exec :v_year := 2000;
    
    PL/SQL procedure successfully completed
    v_year
    ---------
    2000
    
    SQL> with day_tab as (
      2  select mon_dt + level - 1 dt,
      3         to_char(mon_dt + level - 1, 'DY', 'NLS_DATE_LANGUAGE=''ENGLISH''') dy
      4    from (select trunc(to_date(m || '/' || a, 'MM/YYYY'), 'MM') mon_dt
      5            from (select :v_month m, :v_year a from dual))
      6  connect by mon_dt + level - 1 <= last_day(mon_dt))
      7  select count(*) cnt_tot
      8    from day_tab
      9   where dy in ('MON', 'TUE', 'WED', 'THU');
    
       CNT_TOT
    ----------
            17
    
    v_month
    ---------
    2
    v_year
    ---------
    2000
    
    SQL> 
    

    If by chance you want to see a number of days of the week just to use a group of:

    SQL> with day_tab as (
      2  select mon_dt + level - 1 dt,
      3         to_char(mon_dt + level - 1, 'DY', 'NLS_DATE_LANGUAGE=''ENGLISH''') dy
      4    from (select trunc(to_date(m || '/' || a, 'MM/YYYY'), 'MM') mon_dt
      5            from (select :v_month m, :v_year a from dual))
      6  connect by mon_dt + level - 1 <= last_day(mon_dt))
      7  select dy,
      8         count(*) cnt_tot
      9    from day_tab
     10   where dy in ('MON', 'TUE', 'WED', 'THU')
     11   group by dy;
    
    DY     CNT_TOT
    --- ----------
    WED          4
    TUE          5
    THU          4
    MON          4
    
    v_month
    ---------
    2
    v_year
    ---------
    2000
    

    If you want to list these days, with a number by day of the week:

    SQL> with day_tab as (
      2  select mon_dt + level - 1 dt,
      3         to_char(mon_dt + level - 1, 'DY', 'NLS_DATE_LANGUAGE=''ENGLISH''') dy
      4    from (select trunc(to_date(m || '/' || a, 'MM/YYYY'), 'MM') mon_dt
      5            from (select :v_month m, :v_year a from dual))
      6  connect by mon_dt + level - 1 <= last_day(mon_dt))
      7  select dt,
      8         dy,
      9         count(*) over (partition by dy) cnt
     10    from day_tab
     11   where dy in ('MON', 'TUE', 'WED', 'THU');
    
    DT          DY         CNT
    ----------- --- ----------
    21/2/2000   MON          4
    7/2/2000    MON          4
    28/2/2000   MON          4
    14/2/2000   MON          4
    17/2/2000   THU          4
    3/2/2000    THU          4
    24/2/2000   THU          4
    10/2/2000   THU          4
    29/2/2000   TUE          5
    8/2/2000    TUE          5
    1/2/2000    TUE          5
    15/2/2000   TUE          5
    22/2/2000   TUE          5
    23/2/2000   WED          4
    9/2/2000    WED          4
    2/2/2000    WED          4
    16/2/2000   WED          4
    
    17 rows selected
    v_month
    ---------
    2
    v_year
    ---------
    2000
    

    Published by: fsitja on July 5, 2010 13:49

  • 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

  • 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.

  • determine the number of monitors

    How can I determine the number of screens in Labview. In Labwindows you ATTR_NUM_MONITORS but I can't find the equivalent command in Labview.

    Remove a property node. It will already have the default Application class. Select the view > property all monitors, which is a table with details of all the monitors. You can watch its size for the number.

  • HP MFP426 ACF: where is the copy on the ACF HP MFP426 counter to determine the number of copies/cartridge

    Where is the copy on the ACF HP MFP426 counter to determine the number of copies / ink cartridge.

    Thank you. Beaver3

Maybe you are looking for

  • Menu missing, another answer helped

    My menu bar is still missing! I run Ubuntu, and I tried pressing ALT. Nothing happens. When I right click on a space empty in the toolbar of the tab, I get Navigation, bookmarks and Add-ons. No menu! I just installed Ubuntu and the need to update my

  • 5.0 displays a number beside each link or button... Why. It's boring.

    Why is there a number displayed next to each hyperlink, the menu button, text box, etc. on each page? use a win 7 Home premium 32-bit os. It's really annoying.

  • Outlook Express - move messages to another folder outside the OE

    First wanted to download email files on a CD, if I could travel across the first thought.   Then I thought it was the correct path - tools, Options, maintenance, store folder.   Found that all my files were moved to 'My Documents' and now I can't ope

  • I received the following message from bluescreen. How can I fix it?

    Signature of the problem: Problem event name: BlueScreen OS version: 6.1.7600.2.0.0.768.3 Locale ID: 1033 More information about the problem: BCCode: 1e BCP1: FFFFFFFFC0000005 BCP2: FFFFF80002DB9FEA BCP3: 0000000000000001 BCP4: 0000000000000018 OS ve

  • Impossible to install new Windows 7-64 on T3600

    We have a new T3600 of bare metal only supplied with a Free-DOS disk (no DELL drivers CD) and you try to install Windows 7-64. The machine has two integrated SAS no RAID disk drives. No PERC card in the system. After booting from the W7 DVD, we arriv