How to Progrmatic​ally reinitiali​ze a PXI bus

Our application is to develop a functional test fixture for one of our production boards that is usually installed in the NI PXI-1042 chassis with the PXI-8196 embedded controller running XP pro.
We are using  a Chroma ATE 52906 extender card to test our UUT so we can access the board during test. The 52906 extender card allows us to turn off power to the UUT, replace the UUT, then turn power back on without rebooting the host computer(PXI-8196 ) which saves us considerable test time.
We use the following process to change UUT's
1. Go into Device Manager, look under Other Devices and select the UUT (shows up as: PCX Custom (OEM) PCI 9656 Board), then select Action --> Uninstall.
2. Turn off the 52906 extender card and replace the UUT.
3. Turn on the 52906 extender card and wait for the UUT to boot up.
4. Go into Device Manager, select the computer icon at the top of the device tree, then select Action --> Scan for Hardware Changes.
5. The Found New Hardware Wizard will open. Follow the steps and allow the wizard to automatically search for and install the driver.
6. The UUT is ready for test.
My goal is to accomplish steps 1, 4 and 5 programatically using LabVIEW.
Any Ideas
Thanks,
Joe.
"NOTHING IS EVER EASY"

We are not disabling the bus, we are just wanting to do a scan for new hardware so that it will Re-initialize the bus so that we can talk to our board. We use the generic windows driver for communication and it does not recognize that it has new hardware until we tell windows to scan for new hardware. Does anyone know of a dll or windows API that will do this.
Thanks,
Joe.
"NOTHING IS EVER EASY"

Similar Messages

  • How to build FM radio receiver on PXI 5600 and PXI 5142 with help of labview

    How to build FM radio receiver on PXI 5600 and PXI 5142 with help of labview?
    PLZ TELL ME!
    Solved!
    Go to Solution.

    Dude,
    Your way of asking questions sucks!
    - Do not use such fonts!
    - Try to find things out yourself first (apparently GovBob was able to find info, so could you)
    - Have you asked GovBob if he likes it that you mail him for more questions?
    You ask for a complete solution on a project YOU have to do. (you dont learn of it if you dont try it yourself first)
    Hopefully you will ask questions in a less DEMANDING way next time.
    Good luck with your project

  • PXI bus mastering?

    I honostly dont know what PXI bus mastering is, but I belive I need to find out pretty soon. I have a project in which I will be needing to take in 16 million samples, 8 million on 2 channels from a PXI-5102 digitizer, and then analyze. The board itself i know can not handle this, but what it can do is "16 million samples to host RAM via PXI bus mastering " This is great, I need 16 million samples, now... how do I do this? Anyhting to get me in the right direction would eb greatly appreciated, thank you very much.
    -Mark

    ""I honostly dont know what PXI bus mastering is, but I belive I need to find out pretty soon."
    I do not think you have to worry about what it is unless you plan on dropping this device in a non-NI chassis or do not plan on using NI-drivers.
    PXI bus mastering
    is a method interfaces can use to control the PXI bus in order to transfer dat from on-board buffers into system memory (or other devcies).
    "Back in the Old days" (i.e. 30MHz CPU's) bus mastering was not available on all PCI busses. THen latter on it was available in some PCI slot on some computers but but not all (i.e. 400 Mhz CPU's).
    I have never heard of an issues re: bus mastering in PXI chassis.
    So...
    Drop that board in a PXI chassis and load up NI-DAQ, configure it, and you should be
    good to go. NI did all of the hardwork for you!
    If want to be certain before purchasing the board just tell ask the sales person to have someone send you an e-mail indicating that the devices will do "X". I have done this anytime I was less than certain re: the fine print in a device spec.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • The problem of 8431/4 borad on PXI bus

    Hello,
    when I connect the PXI-8431/4 board to the PXI bus in QNX system, I find that there is only one "PCI Mem Address" record.
    But the other boards(e.g. NI PXI-6602,NI PXI-6250) have two "PCI Mem Address".
    you can see the following detail trace:
    Class          = Unknown (Unknown)
    Vendor ID      = 1093h, National Instruments
    Device ID      = 70b9h, Unknown Unknown
    PCI index      = 0h
    Class Codes    = ff0000h
    Revision ID    = 0h
    Bus number     = 20
    Device number  = 13
    Function num   = 0
    Status Reg     = 280h
    Command Reg    = 117h
    Header type    = 0h Single-function
    BIST           = 0h Build-in-self-test not supported
    Latency Timer  = 20h
    Cache Line Size= 10h un-cacheable
    PCI Mem Address = f6406000h 32bit length 4096 enabled    //PXI-6250
    PCI Mem Address = f6405000h 32bit length 4096 enabled
    Max Lat        = 0ns
    Min Gnt        = 0ns
    PCI Int Pin    = INT A
    Interrupt line = 10
    CPU Interrupt  = ah
    Class          = Communication (Other)
    Vendor ID      = 1093h, National Instruments
    Device ID      = 70deh, Unknown Unknown
    PCI index      = 0h
    Class Codes    = 078000h
    Revision ID    = 0h
    Bus number     = 20
    Device number  = 14
    Function num   = 0
    Status Reg     = 280h
    Command Reg    = 117h
    Header type    = 0h Single-function
    BIST           = 0h Build-in-self-test not supported
    Latency Timer  = 20h
    Cache Line Size= 10h un-cacheable
    PCI Mem Address = f6407000h 32bit length 4096 enabled   //PXI-8431
    Subsystem Vendor ID = 1093h
    Subsystem ID        = 70deh
    Max Lat        = 0ns
    Min Gnt        = 0ns
    PCI Int Pin    = INT A
    Interrupt line = 10
    CPU Interrupt  = ah
    Is there any problem?
    Because there is only one Mem Address in QNX system, the interface function acquireBoard() will be  returned by Error: bar1 map: invalid argument.
    Therefore, it can not be initialled in QNX system.

    Maybe it just gets two memory card.

  • Is it possible to record data directly from PXI-5112 scope card through PXI bus to SCSI RAID array (connected to PXI-8210)?

    Colleagues,
    Is it possible to record data directly from PXI-5112 scope card through PXI bus to SCSI RAID array (connected to PXI-8210)?
    Which will be the maximum transfer rate for continuous data recording?
    Thank you,
    Sergey
    Sergey

    Sergey,
    The PXI-8210 can connect to any SCSI 2 compliant device. If the RAID controller is SCSI 2 and appears just like a hard drive in the operating system, then you can send data directly to the RAID array. The problem is that the driver for the PXI-5112 does not yet support continuous acquisition. The on-board 16MB or 32MB buffer stores the data until the entire acquisition is completed. Once the acquisition complete, all of the data is transferred from the on-board buffer to the hard drive. After that happens, the NI 5112 is ready for another acquisition.
    Best Regards,
    Jace Curtis
    NI Applications Engineering

  • How to create a channel for a PXI-6509

    I am working on a program to control the PXI-6509. The one area that I am having problems with is creating the channel by calling the function DAQmxCreateDOChan. I get no errors when first calling DAQmxCreateTask, but get an error when trying to create the channel. How exactly do you create the name for the channel? In MAX, I named the device "DIO", not sure if that matters. Any help would be greatly appreciated.
    Solved!
    Go to Solution.

    Hi schelgr,
    Have you had a look at the DAQmx examples in the example finder found in the help > find examples.  In the Hardware Input and Output > DAQmx there is many examples that should be able to help you with this query.
    Regards
    Matt Surridge
    National Instruments

  • How to use SMB trigger input on PXI-8187 in LabView

    Hello!
    I have PXI-8187 controller instaled in PXI-1031 and two PXI-4071 digital multimeters. I want to trigger mesurement with external trigger. One way is to used AUX port on DMM, another can be TRIG input on PXI 8187 CPU unit. Is possible to use this possibility in LabView 7? How?
    Best regards!

    There are multiple reasons why this is not a supported feature for triggering under Windows and why NI does not recommend using the controller's SMB connector for this purpose. National Instruments has hardware that was designed specifically for extremely accurate clock generation, synchronization, and triggering between PXI chassis (PXI-665x) and other recommended alternatives listed below.
    Non-deterministic propagation delays
    1. The controller's SMB input is not guaranteed to have a defined propagation delay to the backplane. This means the SMB trigger on the Windows PXI controller is useless for customers that want deterministic triggering. Unlike our PXI-665x boards which have a maintained API and precise triggering properties, the PXI controller's SMB connector and routing circuitry is intended for Watchdog use under LabVIEW RT and isn't designed for this use case. A trigger propagating through the SMB circuitry and going to the backplane, or vice-versa, could have a great deal of variance in the propagation delay which makes gathering useful triggers impossible. This propagation delay is not something National Instruments specs.
    An excellent available workaround: Use the measurement hardware's trigger inputs
    2. The triggering inputs on our measurement hardware (that customers likely have in their system) can route triggering signals to the PXI backplane (usually through PFI lines) with deterministic results. This functionality is fully supported in most of our APIs and will be maintained between generations of devices.
    NOT backward or forward compatible
    3. The SMB input is NOT guaranteed to be compatible between different versions of our PXI controllers under Windows. The hardware properties along with an excellent workaround are the reason we do not support doing routing of triggers through the SMB connector on our PXI family of embedded controllers under Windows. If you are still interested in the beta software despite the shortcomings, visit www.ni.com/support and submit an e-mail request.
    Adam Ullrich
    PXI/VXI Product Support Engineer
    National Instruments

  • How to send a SQUARE WAVE to PXI-6259 over the LAN

    howcan I  send a SQUARE WAVE  to PXI-6259 over the LAN, is
    there any example or link any one can send me , thanx in advance.

    Dear HaI L,
    I managed to send a test signal (sine wave) to the device by choosing
    the test panel option and choosing Analog output. In the analog output
    I could many channels to choose from. ai0, ai1.ai2 and ai3.
     I did this by right clicking NI PXI-6259, in the NI DAQmx devices
    located in the Devices and Interfaces and choosing test and saw it on
    an Oscilloscope without using the NI DAQ OPC capabilities, and I cannot
    understand this thing.
    1)How can it be possible without  making a NI DAQmx  channel and Variable?
    2) I cannot create any channels in the devices and interfaces located
    in My system but I can create NI DAQmx Global Virtual channels easily
    in Data neighbourhood in the remote system, Plz tell me why?
    3) I  want to create a program and choose a channel to send the
    signal,  can I choose the channel that i create in the remote
    system device ? and if yes how can I choose this ?
    Thanx in advance.
    Sincerely,
    Munir Afzal Bhatti.
    Attachments:
    max.jpg ‏2305 KB

  • How to change the battery in the PXI 1002 chassis

    I need to change the battery inside the PXI 1002 chassis. How to do it?

    Hello,
    Where is the battery in the controller?
    Thanks.
    J. Frantz

  • How to count number of edges using PXIe-6363 Counters

    Hello,
    I am trying to count number of edges in a test signal in a 50 ms duration. I am using PXIe-6363 card and connecting the test signal to CTR 0 SRC (PFI 8). Is it a correct connection? What else do I need hardware-wise to make a correct set up for this application?
    Thanks
    Jeet
    Solved!
    Go to Solution.

    Hi Jeet,
    When you say interrupt signal, do you mean a pulse that will pause your counter task? If that is the case, and you want to pause your task with a digital pulse, you need to use the DAQmx Trigger Property Node and set that to Pause, Trigger Type. As you said, you can connect that signal coming from the chip to any PFI line and then set that line as the source of the property node.
    There is an example that you can use that does exactly what I just described. This example is called Count Digital Events-Pause Trig.vi, and you can find it by going to Help>Find Examples..., then on the NI Example Finder window go to the Browse tab and navigate in the folders to Hardware Input and Outpout\DAQmx\Counter Measurements\Count Digital Events.
    Regards.
    Jorge
    Applications Engineer
    National Instruments
    Certified LabVIEW Associate Developer (CLAD)

  • How to structure the DMA buffer for PXie 6341 DAQ card for analog output with different frequencies on each channel

    I'm using the MHDDK for analog out/in with the PXIe 6341 DAQ card.
    The examples, e.g. aoex5, show a single Timer  (outTimerHelper::loadUI method), but the example shows DMA data loaded with the same vector size.
    There is a comment in the outTimerHelper:rogramUpdateCount call which implies that different buffer sizes per channel can be used.
       (the comment is: Switching between different buffer sizes will not be used)
    Does anyone know what the format of the DMA buffer should be for data for multiple channels with different frequencies ?
    For example, say we want a0 with a 1Khz Sine wave and a1 with a 1.5Khz sine wave.  What does the DMA buffer look like ?
    With the same frequency for each channel, the data is interleaved, e.g.  (ao0#0, ao1#0; ao0#1, ao1#1, ...), but when the frequencies for each channel is different, what does the buffer look like ?

    Hello Kenstern,
    The data is always interleaved because each card only has a single timing engine for each subsystem.
    For AO you must specify the number of samples that AO will output. You also specify the number of channels. Because there is only one timing engine for AO, each AO will channel will get updated at the same time tick of the update clock. The data will be arranged interleaved exactly as the example shows because each AO channel needs data to output at each tick of the update clock. The data itself can change based on the frequency you want to output.
    kenstern wrote:
    For example, say we want a0 with a 1Khz Sine wave and a1 with a 1.5Khz sine wave.  What does the DMA buffer look like ?
    With the same frequency for each channel, the data is interleaved, e.g.  (ao0#0, ao1#0; ao0#1, ao1#1, ...), but when the frequencies for each channel is different, what does the buffer look like ?
    In your example, you need to come up with an update rate that works for both waveforms (1 KHz and 1.5 KHz sine waves). To get a good representation of a sine wave, you need to update more than 10x as fast as your fastest frequency...I would recommend 100x if possible.
    Update Frequency: 150 KHz
    Channels: 2
    Then you create buffers that include full cycles of each waveform you want to output based on the update frequency. These buffers must also be the same size.
    Buffer 1: Contains data for the 1 KHz sine wave, 300 points, 2 sine wave cycles
    Buffer 2: Contains data for the 1.5 KHz sine wave, 300 points, 3 sine wave cycles
    You then interleave them as before. When the data is run through the ADC, they are outputting different sine waves even though the AO channels are updating at the same rate.

  • How to use allies names in ON condition

    i have the following query.
    SELECT
    DD.DATE_KEY
    , (SELECT MIN(NVI_DATE) AS NVI_MIN_DATE FROM FCT_SPA_NVI_OUTRIGHT A WHERE A.VENDOR_CODE=V.VENDOR_CODE) AS NVI_MIN_DATE
    , VO.BANK_ACCOUNT_NO
    , VO.BANK_NAME
    , VO.BANK_ROUTING_NO
    FROM DIM_VENDOR V
    LEFT JOIN FCT_SPA_NVI_OUTRIGHT VO
    ON V.VENDOR_CODE = VO.VENDOR_CODE
    LEFT JOIN FCT_SPA_NVI_MERCHANDISE VP
    ON VO.NVI_KEY=VP.NVI_KEY
    LEFT JOIN DIM_DATE DD
    ON VO.NVI_DATE=DD.DATE_FLD
    in the above query, how to use NVI_MIN_DATE in the ON condItion like.,
    LEFT JOIN DIM_DATE DD
    ON NVI_MIN_DATE=DD.DATE_FLD
    Thanks in advance.
    bala krishna

    Try using a CTE, so something like this.
    WITH TableA (NVI_MIN_DATE, BANK_ACCOUNT_NO, BANK_NAME, BANK_ROUTING_NO)
    AS
    SELECT
    (SELECT MIN(NVI_DATE) AS NVI_MIN_DATE FROM FCT_SPA_NVI_OUTRIGHT A WHERE A.VENDOR_CODE=V.VENDOR_CODE) AS NVI_MIN_DATE,
    VO.BANK_ACCOUNT_NO,
    VO.BANK_NAME,
    VO.BANK_ROUTING_NO
    FROM DIM_VENDOR V
    LEFT JOIN FCT_SPA_NVI_OUTRIGHT VO
    ON V.VENDOR_CODE = VO.VENDOR_CODE
    LEFT JOIN FCT_SPA_NVI_MERCHANDISE VP
    ON VO.NVI_KEY=VP.NVI_KEY
    SELECT
    DD.DATE_KEY,
    TableA.*
    FROM TableA
    LEFT JOIN DIM_DATE DD ON
    TableA.NVI_DATE=DD.DATE_FLD
    John Sansom | SQL Server MCM
    Blog |
    Twitter | LinkedIn |
    SQL Consulting

  • How to check in VB code that PXI-system is on and all cards are working.

    My system: Chassis 1010 with MXI8330, 4 x SCXI1129, 2 x PXI2565, 2 x PXI6508 and PXI4021.
    Problem: I'm trying to write section of code with Visual Basic which initializes PXI cards and gives information about system(Is it on? What kind of PXI or SCXI cards do I have in my chassis? Are they working?) but I don't know what functions I should call.

    Our PXI chassis are not "smart chassis" that have status registers that can give you information like whether or not the chassis is on, but you should be able to pull some information from the cards themselves. This will vary from card to card, and from driver to driver. I would recommend starting with the programmer's reference manuals for the drivers (NI-DAQ, NI-VISA, etc.) and the user manuals for the cards. If the cards do respond, you can infer then that the chassis is on.
    Ryan Tamblin
    Applications Engineer
    National Instruments

  • How to Measuring the Temperature of the PXI-1045 Controllers Using LabVIEW

    Hi,
    I need to continuously monitor the temperature of the PXI-1045 controller. I have had a look  the vi supplied by NI on http://zone.ni.com/devzone/cda/epd/p/id/4538#0requirements which is developed for PXI-8196/95 and the PXI-8186/87 controllers. Can similar temperature measurement be done on PXI-1045?
    Regards
    Mehran

    Hi Mehran,
    Sorry, but those aren't controllers either! Controllers are the 2- and 3-slot cards that act like the computer in your PXI system. They will generally have a model number of 81xx. For information on our PXI controllers, have a look at http://sine.ni.com/nips/cds/view/p/lang/en/nid/1534. When you measure the temperature of your PXI controller, you're measuring the temperature on the CPU - this is something you can do on almost any PC.
    Chassis and PXI devices do not have CPUs with thermistors to measure the temperature, so you can't read the temperature. Again, if you want to determine the ambient chassis temperature you'll need to use a thermocouple or something similar.
    Regards,
    Tom
    Applications Engineering, NI UK

  • How to read the serial number of PXI Module in my C/C++ program.

    I am using PXI NI-FGEN controlling it by my C/C++ program. I would like to read the serial number of the hardware. Are there any methods to do it ?
    Actually I could not find any functions and attributes in the programming manual. So I am posting this as the last chance. For example, it looks possible to me if we can access NI-MAX in my C/C++ program. Because NI-MAX displays the serial number.
    Any information would be appreciated.

    It looks like your answer is in the NI-FGEN help file. Go to NI-FGEN -> Documentation -> NI Signal Generators Help
    From that help the inforamtion you are looking for is under the following heading:
    NI Signal Generators Help
    +Programming
    +NI-FGEN Help
    +C Reference
    +Attributes
    +Instrument-Specific Attributes
    ?NIFGEN_ATTR_SERIAL_NUMBER
    I hope this is what you're looking for,
    Ross Mau
    NI Applications Engineer

Maybe you are looking for

  • How do I eliminate side margins on web pages in Firefox 6.0.2 in Windows 7?

    I just got a new computer with Windows 7, and I downloaded Firefox 6.0.2. I've copied a Firefox profile from Firefox 6.0.2 on my old computer onto the new computer. For some reason, web pages have wide margins, which makes the lettering small. If I p

  • Agent determination for another task

    Hi Experts,     I have assigned agent as US for a task. One custom FM is called for an approval screen and that FM is called from the method . That method is assigned to that task. The approval screen should have the approver name.     How to pass th

  • Map a function key to ctrl-z

    I'm looking for a way to get a function key (such as F12) to produce a ctrl-z combination. Can't find a way to do this, xmodmap wont map to combinations, xkb configuration seems waaayyy complicated. Is there something simpler?

  • Getting album artwork

    I've been experiencing a relatively recent problem with getting artwork for CDs that I have imported into iTunes. Previously I have just used the "Get Album Artwork" function and providing the album was listed on the iTunes store, the artwork has dow

  • How to deactivate a work flow

    Hi all, how to deactivate a praticular work flow. please help me. Regards, Satyapalli.