Programmatically get the PXI slot that the PXI-4070 (DMM) is in?

I am looking for a way to find out what slot my DMM's are in and their model and S/N.
So far I have been able to get back the info for NI-Switch devices, DAQs and a range of Pickering Cards.
For the NI-DMM’s I have so far only been able to get the S/N model and name via the IVI Drivers.
I have attached the code I have so far so you can get a better idea of what I am trying to achieve.
Solved!
Go to Solution.
Attachments:
Get PXI Card ID.vi ‏29 KB

Use "niModInst Open Installed Devices Session" for NI-DMM
Then use "niModinst Get Installed Device Attribute" to get the slot number
Returns an integer attribute specified by the attribute ID parameter for a device specified by the session in and index in parameters.
Valid Values
Slot Number—the slot (for example, in a PXI chassis) in which the device is installed. This attribute can only be queried for PXI devices installed in a chassis that has been properly identified in MAX.
Chassis Number—the number of the chassis in which the device is installed. This attribute can only be queried for PXI devices installed in a chassis that has been properly identified in MAX.
Bus Number—the bus on which the device has been enumerated.
Socket Number—the socket number on which the device has been enumerated.
Omar

Similar Messages

  • How do i programmatically get the current version of a file?

    I asked this same question in the SP2013 forum and I haven't been able to determine the solution. So I posting this here, to maybe get more eyes on this issue. 
    ...I am basically trying to programmatically get the current version of a document in a library, then determine if its a major or minor version, in code. I have tried doing this, to get the current version but I keep getting an empty string returned.
    var versions = item.File.Versions;
    string currentVersion = string.Empty;
    foreach (SPListItemVersion version in item.Versions)
    DateTime lastMod = version.Created;
    foreach (SPFileVersion fileVersion in versions)
    if (fileVersion.IsCurrentVersion == true)
    currentVersion = fileVersion.ToString();
    Does anyone know what am doing wrong, and how to get this resolved? I really appreciate the help. Thanks

    Why not just get the SPListItem and look at it's Version property? That'll be the latest version.
    No need to go into the Versions collection etc. When you get a list item you get the current version as standard.
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • To programmatically get the Serial Number of the WSN 9791

    Hi Folk,
    is there a way to programmatically get the Serial Number of the WSN 9791 gateway?
    I have tried with the Property / Invoke Node wired to the gateway reference, but most part of information refer to nodes.
    Thanks,
    Asper
    Solved!
    Go to Solution.

    Hi Asper,
    I suggest you to have a look at the example below.
    Cheers!
    MarcoMar
    National Instruments Italy

  • PXI-4070 DMM in PXIe-1075 Chassis not found

    I have a PXIe-1075 chassis and four PXI-4070 DMMs. I orginally had the four DMMs in slots 2,3, 4 & 5 but descided to move the modules around including two of the DMMs so they are in slots 16 and 17. When I did this the DMMs are not found in Measurement and Automation Explorer. If I remove the module in slot 3 (PXIe-2531) they will reappear. The main reason for moving the modules was to maximize through put because slots 2 through 4 share a PCIe switch (as do slots 15 through 18).
    Slots 2 through 5 and 15 through 18 should be hybrid compatiable. Are there rules for mixing hybrid and PXIe modules?

    Chris,
    I don't know about the original problem, but you can get the reconfiguration effect in device manager.  Open device manager, select view->by connection, and then start expanding things until you find your device.  On my Windows 7 PC the hierarchy starts with something like [computerName]->[ACPI x64-based PC]->[Microsoft ACPI-Compliant System]->[PCI bus]->[something Root Port]->[PCI standard PCI-to-PCI bridge]...
    Go to the PCI-to-PCI bridge listed under the root port and above the devices in your chassis, right-click and select "uninstall".  Open Measurement and Automation Explorer and delete the devices (they should be non-present).  Then either reboot or go to device manager's munu item action->scan for hardware changes.  That should cause Windows to re-find all your devices.
    - Robert 

  • LV12 How to configure PXI-4070 DMM current function?

    Dear all
    I have a problem about LV12 software to config PXI-4070 DMM current function.
    my vi...NI DMM initial >>>NI DMM reset >>> NI DMM Configure Measurement (Current function) >>> NI DMM Reading >>>>
    When I testing with my vi, the calibrator (source) error "Current Compliance Voltage Exceeded".
    but when I testing with DMM front panel 3.0, the calibrator can generated current and PXI-4070 can reading.
    Please help me to solve this problem.
    Regard,
    Sermsak.
    Solved!
    Go to Solution.

    The error looks like it is related to a power supply or an SMU that is trying to source something out of its specified range.
    Info about compliance:
    http://zone.ni.com/reference/en-XX/help/370736L-01​/ni_dc_power_supplies_help/compliance/
    http://zone.ni.com/reference/en-XX/help/370736L-01​/nidcpowerviref/nidcpower_query_in_compliance/
    Things to consider:
    1) Where in the code is the error occurring?
    2) Can you run example NI-DMM code? (from Help>>find examples>>Hardware I/O>>Modular Instruments>>NI-DMM)

  • How can I find an example about acquiring waveform data by software trigger using PXI 4070 DMM?

    Anybody could proivde an example or simliar about acquiring waveform data by software trigger using PXI 4070 DMM?
    Thanks!

    hi there
    from the NI main page go to the developer zone http://www.ni.com/devzone/dev_exchange/ex_search.h​tm. select "LabVIEW" and "Digital Multimeter (DMM)" and search for "4070". then you'll find some examples.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Is there any way to programmatically get the discussion forum Id using API

    Hi,
    Can any one let me know how to get and set the Discussion service forum Id / category Id to the discussion task flow programmatically using services API's. Here I am using Web center groupspace API's to create and add members to group space from my fusion app. Added the discussion task flow to my fusion app and need to set the category Id / forum Id assigned to that groupspace and display the corresponding discussions. The test connections to discussion forum is success. I am getting all the forums corresponding to that user in my ui. But I want to get the forum that is associated with my groupspace.
    thanks.

    Never mind. Got the solution, can get this through servicesMetaData api.

  • How to programmatically get the serial number of DeviceNet card?

    I'm using LabVIEW 6.1 and NI-DAQ 6.9.3.
    I notice that in MAX 4.0.2 the serial number of my PCI-DNET card comes up.  Is there some way I can access this programmatically in LabVIEW, either thru the DAQ driver or via the NI-DNET (version 1.4.1) LabVIEW driver?

    Thanks!  That worked perfectly.  Another thing I'm attempting to do is programmatically retrieve the (device-specific) input/output lengths necessary for I/O connections.  I can get this of course using the Get DeviceNet Attribute.vi using classID 5, instance ID 2 (e.g.), attribute IDs 7 & 8.  However, this will work only AFTER the I/O connection has been opened; and to open the connection, I need to have this information!
    SimpleWho appears to retrieve this info somehow (perhaps thru the CAN driver).  Any ideas on how I can mimic this behavior from within LabVIEW (versions above)?
    Thanks!

  • How to programmatically get the source for a class provided the class name?

    Hello,
    As a quick background, I am providing some tools to potential users of an in-house framework. One is the ability to generate quick prototypes from our existing demo applications. Assume a user downloads our jars and uses them in their project (we are using Eclipse, but that detail should not greatly affect my question). Included in the jars is a demos package that contains ready-to-run classes that serve to exhibit certain functionality. Since many users may just need quick extensions of these demos, I am trying to provide a way for them to be able to create a new project that starts with a copy of the demo class.
    So, the user is provided a list of the existing demos (each one uses a single class). When the user makes their selection, with the knowledge of our framework, I can translate that into what demo class they need (returned as a string of format package.subpack1.subpackn.DemoClassName). What I now want to do is to use that complete class name to get the source (look up the file) for the corresponding class, and copy it into to a new file in their project (the copying into the project can be done easily in Eclipse, so what I need help with is the bolded part). Is there a simple way to get the source given a class path for a class as described above? You may assume the source files are included in the jars for the framework.
    Thanks in advance.

    If there's a file named "package.subpack1.subpackn.DemoClassName.java" in a "demos" directory in the jar, then yes. You'd just use
    InputStream code = getResourceAsStream("/demos.package.subpack1.subpackn.DemoClassName.java");Or if those dots in the name actually separate directory names, i.e. you have a "package" directory under "demos" and a "subpack1" director under that and so on, then:
    InputStream code = getResourceAsStream("/demos/package/subpack1/subpackn/DemoClassName.java");

  • Is it possible to programmatically get the label name(s) of a VI's connector pane IPs and OPs?

    I can get the number of IPs & OPs using the metrics VI but not the variable names, any help much appreciated.
    Certified LabVIEW Architect

    You can get names of all controls and of all indicators. Use Get All Controls method of VI server.
    This is not exactly that you want but may be will help you.

  • How do I programmatically get the display name for a view object in Java?

    When you define a view object, there is a display name that is configured. I would like to retrieve that in Java. Can someone tell me how?
    Thanks, -Klaus

    Klaus,
    you can use the attribute definitions which you get using
    getAttributeDefs
    AttributeDef[] getAttributeDefs()This method is accessible via the vo.
    If you need this information in a bean, you can use EL like you see if you drop a vo on a page.
    Timo

  • How can I programmatically get the Bluetooth address of an iPhone

    I want to  determine the Bluetooth MAC address for an iPhone or iPad from within an app on said device. But I didn't find any API that will return the Bluetooth Address or name .

    You can use the VI name to refer to a vi in memory. (note that all VIs in
    memory must have a unique name, thus LV can make a reference needing only
    the name.)
    To refer to a vi not in memory, LV needs a full path. The open VI reference
    is polymorphic, it accepts strings and paths (as you already noticed).
    "MattI" wrote in message
    news:[email protected]..
    > This is awesome!
    > Looking at the diagram, I am somewhat surprised that Open VI Reference
    > works using just the VI names returned by Property
    > Node:Application:All VIs In Memory when they are wired to the path
    > input to Open VI Reference, but I guess it uses the (relative)
    > built-in path info that we users can't see to look up t
    he VI which is
    > in memory, and then returns the full path.

  • NI PXI 4070 DMM repair instructio​ns

    HI,
    Is ther any repair Instructions & maintanance support for PXI DMM 4070?
    if so can please share the document 

    Sorry, I found an help from NI website
    It seems that I missed the cable connecting from MUX front to DMM input, as shown in attached file.
    It it's correct, please advise me what it the name of that cable?
    Thank you.
    Van.
    Attachments:
    9babdcae1525.gif ‏59 KB

  • Missing Photographs - 5,000 in total - is there a programmatic way to get the complete file paths missing?

    HostOS : Mac OS X
    LightRoom version : 4.4
    I accidentally moved linked files over the past few years, and just discovered (via "Missing Photos" view) that I have 5,000 missing photos.
    I know the master photos are on my hard disk drive ... so, that is the good news.
    BUT I do not want to have to click to re-link all 5,000 missing photos one at a time.
    Is there a way to programmatically get the list of file paths of those 5,000 missing photos on my MacOSX system  -- so that I can write an AppleScript to extract the unique image file name from the full file path extracted from LightRoom, locate the image in Finder, and move it back to the expected file path where Lightroom expects to find it?

    If most of your reorganization consisted of moving whole folders rather than individual pics,  you can quickly relink entire folders, or even folders of folders, rather than individual pics.  In the Folders pane on the left, right-click the missing folder and select Find Missing Folder.
    If you moved individual files rather than entire folders, then to get a list of the file paths of all the missing files, first do Library > Find All Missing Photos. Then use the ListView plugin to get a list of the photos' file paths into a text file.

  • How to get the alias name of an attribute of a VO from its column name?

    How can I programmatically get the alias name of an attribute of a VO given its column name?
    Often alias and column names are not same when the VO is created (and I don't require them to be the same)

    Hello John.
    I will be more precise. When the VO based on a table comes out from the wizard, it produces xml entries like the following one:
      <ViewAttribute
        Name="ColumnName"
        AliasName="COLUMN_NAME"/>There the column of the table on the DB really is COLUMN_NAME. The wizard mangles that name producing ColumnName as Name property.
    This is ok. I don't want to change this default behaviour.
    What I need is to programmatically get the value of that attribute given its AliasName property value:
    String f(ViewObject vo, String AliasName) {
    return (String)vo.getCurrentRow().getAttributeFromAliasName(aliasName); // getAttributeFromAliasName does not exist
    // instead of return (String)vo.getCurrentRow().getAttribute(Name);
    That is, usually getAttribute expects what in the xml is the Name property. However, I want a sort of getAttribute() expecting the AliasName.
    I hope it's clear.

Maybe you are looking for