Continuity testing with a PCI 6221

Hello, I was wondering if anyone has some advice about how to setup a continuity test using an M Series PCI 6221 DAQ and Labview 7.1. Specifically, I want to preform a testing regime similar to the IPC-SM-785 guidelines during thermo-cycling of the test vehicles. For those not familar with the guidelines, the purpose is to monitor the resistance of channels that have a DC (10V max.) current (2mA max.) running through them. If the resistance exceeds a certain threshold it is considered "an event", and if ten events happen in a specific time-frame the channel is considered to be "failed".
I am a relative new-commer to NI DAQs and the associated software, so any advice would be greatly appreciated.

One way of doing it is to use two analog input channels on your card. Use one to monitor the voltage the other to monitor the current. To monitor the current you will need to add a shunt resistor in series. Use Ohm's law to convert the voltage to the current. Monitor the signals and if you are at 2 ma and not at 10V you are in an error condtion. Tjis is assuming the power supply is a constant current, constant voltage source.
Greg Bush CLAD

Similar Messages

  • How do i create 6 digital 25Hz PWM output signals with my PCI-6221 card?

    Hi!
    I´m a student, who´s trynig to control a gasturbine process for my diploma thesis. The control program should be written in LabView 8. I need to control 6 25 Hz PWM signals for the gasvalves. The  needed accuracy of the duty cycle has to be about  0.1 %.
     A  tech. engeneer from  NI  told  us , that  we can  do this by using one single digital output for each PWM.
    Now, after a while, i need to implement it into my program. But there are troubles:
    My NI-PCI-6221 standard card only has 2 couteroutputs and only the first of the 3 ports seems to be buffered (Error Nr.  201062)...
    I tried to do the programming, by manipulating the "DIO_PWM_50Hz.vi" I found in google.
    Does anyone of you have any information or helpful examples how i can create these PWM with my card, or did I get a wrong Information by the salesagent (...not the first time....)?
    Thanks for your help
    Tobi

    Here you can find an example, how to do this:
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=DE27921DB53A4D8DE034080020E74861&p_...
    As the text says, best would be to use the counter. As your Hardware has only 2 Counters, you would need additional hardware. Best would be to use a Counter-Card (660x), thes boards have up to 8 counters, so you coulkd control your 6 gasvalves indipendently.
    The soultion with the timed digital outputs of the m-series boards would only work, if you can use the same timing (one counter) for all 6 outputs.
    Hope this helps!

  • Doing simultaniusly two task with NI PCI 6221

    I am using  timer 1 configure as two-signal edge-separation measurement. I want to one of the signal witch start the counting to be taken from the same device NI PCI 6221.   I want set one of DI0 and i want to this setting started the counting. While I am setting the DI0 timer should be already configure and arm. I understand that ,this mean two task shuld be done simultaniusly. How can I do it.

    Hi Fazi,
    As I understand it, you would like to use a DIO line to start your counter task.  Start triggers for counter tasks must be set using an the arm start trigger.  Here is a great knowledgebase that talks about using arm start triggers on M Series devices such as the PCI 6221.  In addition, I have taken the Meas Two Edge Separation-Buffered-Continuous.vi example (Help » Find Examples » Hardware Input and Output » DAQmx » Counter Measurements » Two-Signal Edge-Seperation) and added an arm start trigger below.  You will need to connect the digital start trigger line to a PFI line to use it as the arm start trigger.
    I hope this helps,
    Paul C.Message Edited by Paul C. on 10-23-2007 11:06 AM
    Attachments:
    armstart.JPG ‏45 KB

  • Generate two different pulses or more continuous​ly with a PCI -6602

    I have a PCI-6602 and Labview 8.0. I need to create a complex wavefrom output  and I don't know how to create this waveform with the 6602, I know that I can create this pulse format by using the Agilent Pulse Generator  but I would like to use the National Instruments. If somebody has an idea about how many counters and the physical connections that I need, also about how can I use labview to generate a complex waveform output.
    I've attached the waveform that I need to generate continously and I hope that I can use the PCI-6602 for this purpose.
    Attachments:
    Pulse format.doc ‏24 KB

    This is a duplicate post, for the main post please see:
    NI Discussion Forums: How to generate two diferent pulses and re-trigger such pulses continously
    Regards,
    Dan King

  • Using timer/counter with PCI-6221/USB-6210 to control timed-loop VI

    Dear all,
    I need to ask about two devices and one of their functionalities, PCI-6221 and USB-6210. For our NI-based system, we need to control some timings in a Timed-Loop vi, for that currently we are using PCI-6221 and we give external TTL signal (at 1 kHz) to it,
    recenntly we need to make some changes and for that we found USB 6210 DAQ to be more suitable, but we need to clear ourselves on some specific things.
    Can the counter/timers functions available in the either PCI 6221 or USB 6210 can be used to control the Timed-loop VI by giving external clock or by using their own internal clock source?
    Although we are using external clock with the PCI 6221 but we want to know about the usage of their internal clock, also are controlling timed-loop also possible for USB-6210
    Also... What if we use the RTOS, are they still able to control the timed-loop VI  without giving any 'EXTERNAL CLOCK' and using the internal clock sources of the DAQs
    Waiting for reply,
    Bests,
    RaJaf
    Solved!
    Go to Solution.

    Ben,
    I having read previous email which I send earlier with general overview, we discussed in more detail within our team and I am giviing the specific answers.
    Please check in RED the most recent answers. Blue are the questions/suggestions by your side.
    1.    Using Internal hardware clock of PCI-6221 would enable us get rid of external clock, but how to divert the internal hardware clock to the current settings. Any idea  (can you provide us with some reference manul for otherwise). I mean is there some flag-bit etc. or VI
    2.       Is it also meant that with the installation of RTOS the timed-loop can directly get the timing source from the internal hardware clock PCI-6221? --- How???
    3.       In order to make desktop to work as RT system, what is the hardware (motherboard, processor, etc..) requirement? What are the LabVIEW modules (specific name) that needed to be installed? Our platform is LabVIEW 8.6. (Currently we have windows-7 with i7 core processor)
    What kind of application are you intending for this system? ---- high-speed laser scanning system.
    Are you most concerned about accuracy, speed, or responsiveness? To control the laser mirror scanner to move at 1 kHz or 2 kHz speed. On the other hands, using PCI-5105 (128 MB memory) as a DAQ for real-time/on-the-fly data processing.
    Bests,
    RAJAF

  • Which terminals of PCI-6221 (68-PIN) to connect for DIFFERENTIAL measurements?

    Hi!
    I would like to do some differential measurements with a PCI 6221
    (68-PIN) card. Which terminals (of the 68 Pins) I have to connect to do
    differential measurements (voltage measurements)?
    Thank you for your help!

    Hello surfaces:
    The pinouts for the differential input of NI 6221 DAQ card are below...
    AI0+ pin68
    AI0- pin34
    AI1+ pin33
    AI1- pin66
    AI2+ pin65
    AI2- pin31
    AI3+ pin30
    AI3- pin63
    AI4+ pin28
    AI4- pin61
    AI5+ pin60
    AI5- pin26
    AI6+ pin25
    AI6- pin58
    AI7+ pin57
    AI7- pin23
    Please advice if you have any comments.

  • How to fix error -50010 in MAX 4.0 self-test of PCI-6221-37?

    Hello Tom or anyone who could help
    This is a continuation of my previously posted problems getting my PCI-6221-37
    card to work.
    I reformatted the hard disk and reinstalled Windows XP Pro on the computer.  Then
    I re-installed NIDAQ 8.0 with LabVIEW 7.0, 7.1, and 8.0 support.  Now MAX
    opens in a reasonable period of time and recognizes the PCI-6221-37 card.  When I
    run the self-test option, it replies with an error -50010.  "The specified offset is out of
    range for read operations.  The operation could not be completed as specified"
    Any ideas?
    Halden

    Hi Halden-
    Let's continue our discussion here.  I am in contact with our software engineers to help diagnose this problem.  If you could provide a screenshot of the error in the other thread, it would be a huge help.  Thanks a lot-
    Tom W
    National Instruments

  • PCI-6221 fails self-test in MAX but device manager says it's working

    Hi everyone,
    I bought a few PCI-6221 (37-pin) data acquisition cards and have been able to get one to work but 3 others don't work.
    Device Manager sees them and says they work.  MAX sees them and when I run Self Test, they fail with error number
    -50002.  Motherboards in non-working systems are PC Chips M957G and P25G.  OS is Windows XP Pro with SP2.
    I already tried uninstalling SW and the board, reinstalling SW and the
    board...autodetect etc works fine.  I even reformatted
    the HD on one of the computers and reinstalled the OS.  Anyone have any ideas?  Thanks in advance.  Halden
    [email protected]

    Thanks Tom for your suggestion to try NI-DAQ 8.0.  I just saw it today.  Yesterday,
    I was able to isolate 3 PCI-6221-37 boards as defective because they all wouldn't work in another computer while
    one other identical model card did work in that same computer.  I called to arrange to return them to NI and learned
    that for these 3, I needed NI-DAQ 8.0.  The fourth one was okay
    with NI-DAQ 7.5.  Apparently, this was a known problem. 
    I wish NI would have simply notified me that my boards would
    not work with the software sent with them and sent the NIDAQ 8.0 CD as soon as they knew rather than have me
    waste a day of my engineering time trying to figure it all out.  Booo NI.
    One of the boards has worked for almost a day under NIDAQ 8.0.  I was able to make some progress on the
    system I am building.  But then it stopped working.  LabVIEW
    (version 7.0 executable) programs would not open completely
    or would open slowly.  One that accessed the COM port only (no
    data acquisition) did work.  MAX opened very slowly or not at all
    and when I click on
    Devices and Interfaces, the hourglass is up for a long time and finally the + icon goes away indicating that MAX is not
    aware of any devices being present.  The Windows Device Manager says the board is present and working.  Windows
    Task Manager lists LabVIEW Runtime and MAX when only MAX is open and indicates that MAX is Not Responding.
    I shut down the computer, removed the PCI-6221 board, booted it up again, and MAX is the same way.  I uninstalled
    MAX and NI-DAQ LabVIEW 7.0 support and then reinstalled them.
    Now the MAX loading window is up for more than a minute and NIMAX.exe is listed in Task Manager's processes.  After
    the first minute, LabVIEW Runtime appears in the Task Manager's
    Applications list.  After a while longer, the MAX window finally
    opens
    and MAX is listed in the Applications.  I click on the + icon by Devices and Interfaces in MAX and the hourglass appears
    and Windows Task Manager says MAX is Not Responding.  Eventually, the + icon and the hourglass go away and
    the Task Manager lists LabVIEW Runtime and MAX as Running.
    I shut the computer off for several minutes, started it up again, and MAX is still takes a long, long time to open. 
    I haven't put the PCI-6221 card back in because MAX still isn't working.
    What do you suggest I do next?
    Thanks
    Halden

  • How to entirely develop an application with PCI-6221 in Borland C++ Builder V6 in DAQmx?

    Hi,
         I am sorry that I have asked a huge question.
         But the main questions I want to know is :
         1,In Borland C++ Builder 6,Which version of DAQmx is the best one we will use?  DAQmx V8 don't support BCB6.
         2,Would you please give an example source file to use *.Lib in BCB6?
         3,In other computer,not including developping environment ,which items of DAQmx we have to install,PCI Card Driver?
    Which dll?How to make the installation the smallest?
         Thanks for your possible answer.

    Why DAQmx8 doesn't support C++ Builder 6 ?
    I've just used LabVIEW with DAQmx8 create dll file for C++ builder 6. My application is to use PCI-6221 generate Analog output. ( just DAQ assistance ).It works well.  

  • PCI-6221: Programming with Borland C++

    Hello,
    Is it possible to program the PCI-6221 analogue card with Borland C++. I get the error 'device not found' when I tried to program it. When I use MAX I can find the device and use it.
    So can anybody help me?
    Many thanks in advance!

    Make sure you are using the NI-DAQmx API.
    Also, I believe Borland isn't a supported development environment for NI-DAQmx. It may be possible to use it, but you're going to have to figure out how to make it work.
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • Bug panneau de test carte PCI-6221 sous max 5.5

    Bonjour,
    J'utilise Labview 2012, MAX 5.5 et une carte PCI-6221.
    La carte passe l'autotest sans pb mais rien ne se passe quand je demande d'ouvrir les panneaux de tests, aucune fenetre ne s'ouvre (avec normalement les onglets entree analogique, sortie analogique, E/S numériques, E/S compteur...)
    Avez vous une idée pour résoudre ce BUG?
    Merci d'avance pour votre aide

    Bonjour stef31,
    Merci d'avoir posté sur le forum de National Instruments.
    Permettez moi de vous posez quelques questions afin que nous puissions mieux comprendre votre problème et que nous puissions reproduire une machine semblable.
    Quelle distributions utilisez vous?
    Le driver s'est-il installé correctement après avoir introduit votre carte et redémarrer votre machine (Pop up)?
    Votre soft Max freeze t'il quand vous appuyer sur panneaux de tests?
    Que se produit il si vous cliquer sur "Auto-étalonner" puis sur "panneaux de tests"?
    Quelques axes de solutions:
    - Ouvrez votre Moniteur de Ressource Windows pour éventuellement voir si votre ordinateur travaille au moins lorsque vous essayez d'afficher le panneaux de test (si non, tentez de réinstaller max).
    - Si le problème persiste, auriez vous éventuellement une autre carte PCI sous la main pour voir si le problème vient de la carte elle même ou de votre machine.
    - Vous pouvez essayer d'enlever votre PCI-6221, de la supprimer de votre arborescence de Max et de retenter le processus.
    - Essayer de réinstaller Max
    - Ouvrez LV et utiliser les VI DAQmx pour voir si vos E/S sont visibles (cf ci joint).
    Cordialement
    P Denis
    National Instruments.
    Pierre_D
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    LabVIEW Tour
    Journées Techniques dans 10 villes en France, du 4 au 20 novembre 2014
    Pièces jointes :
    Test PCI6221.png ‏14 KB

  • Need help with counters on PCI 6221 (37 pin)

    Hi all,
    I have a system with a PCIe 1429 connected to a Basler A504 camera and a I use a clock generator (SRS CG635) set at 3.9 kHz to trig the image acquisition.
    On the same system I need to add a PCI 6221 37
    pin to acquire :
    - 2 AI at 39 kHz, synchronized with the image acquisition. (10 AI sample for each image)
    - 1 counter to measure a frequency
    Since the accuracy of my 3.9 kHz clock is much higher than what I have on the DAQ board, I figured a nice option would be to have a retriggerable DAQmx task that generates 10 pulses at 39 kHz for each pulse received from the clock and then use this to trigger the DAQmx AI task.
    Of course this can only work if the "trigger" sources that I define for these two tasks don't take the two counters I have on the board.
    So let's describe the DAQmx tasks :
    - here's the one that generate the 39 kHz on counter 0, from the 3.9 kHz that I input as a trig source on PFI 4
     - here is the analog input task for which I set the trigger on PFI 6.
    Question is : can I "softwarely" tell the board to route the output counter (Ctr0) to PFI 6? And if yes, how?
    Thanks in advance for any help!
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Solved!
    Go to Solution.

    Sorry, no can do on the counters.  The M-series boards would use up both counters for the task of generating a finite pulse train so there'd be no counters left for freq measurement.  From what I've read, the newer X-series boards only use 1 counter for finite pulse trains (and also have 4 total available.) 
       FWIW and for future reference, software routing of signals *will* work though there are some restrictions on which signals can be routed to where.  The M-series boards are generally very flexible though, and you can double check the routing options in MAX.  Also, in general, there's no particular problem running 2 tasks of the type you proposed simultaneously.  Note though that the term "trigger" has a more specific meaning in LabVIEW-land than it may have in normal life.  Here you were using the counter output as an "external sample clock" which is distinct from using it as a trigger.  Triggers initiate tasks, then sample clocks cause samples to be taken during them.
    Anyway, here's a possible workaround which doesn't require you to generate any counter pulses, so you can perform your freq measurement and still have a spare counter left over.
    1. Configure your AI task to use the external 3.9 kHz signal directly as its sample clock.
    2. Also configure your AI task so that the channel list contains at least 10 duplicates of each of your 2 AI channels, along the lines of "ai0,ai0,ai0,...ai1,ai1,ai1,..."   Or you could alternate them back and forth if you want.  You'll have to trade off the importance of the time difference between the two AI channels vs. the risk of the crosstalk-like effect from mux'ing back and forth on each sample.  Myself, I'd probably make a channel list with 12 dupes of ai0 followed by 12 dupes of of ai1 and later ignore the first 2 conversions on each channel just to be more sure the ADC has settled after muxing between them.
    3. Finally configure your AI task to use a specific timing for its "convert" or "channel" clock.  Since the timebase for your AI board is independent of the more accurate external 3.9 kHz clock, you should err on the side of caution.  For example, supposing you were going to take exactly 20 scans within each sample interval, I'd pick a convert clock rate that's a bit higher than the apparent minimum of 20x3.9kHz=78 kHz.  Probably something in the 80-100 kHz realm.
    -Kevin P

  • Pci-6221 card is not recognised with DAQ

    I have installed NI DAQ 7.3 and monted a PCI-6221 and PCI-MIO 16E-4 cards. The PCI-6221 is not recognised by the software.

    The card is supported by NI-DAQmx 7.3 and should be recognised by the PC without trouble. Can Windows see the card at all?
    Check the specification of your PC's Motherboard. M-Series cards require the PCI bus to supply 3.3V, 5V & 12V. Some PCI slots may not provide these required voltages.
    Hope this helps!

  • How to make a ramp for a stepper on PCI-6221

    Hello!
    I'm looking for a solution/example in ANSI-C to make a ramp for a stepper that is connect at PCI-6221 CTR-port.
    The function I'm actually using is:
    DAQmxErrChk (DAQmxCreateCOPulseChanFreq (taskHandle, "Dev2/ctr1", "", DAQmx_Val_Hz, DAQmx_Val_Low, 0.0, 1000.0, 0.5));
    DAQmxErrChk (DAQmxCfgImplicitTiming (taskHandle, DAQmx_Val_FiniteSamps ,1800));
    So this works fine when the stepper have to run constantly. But for my application I need the use of a ramp. To change the frequency value I have to write in a running Task, but that is (IMHO) not possible? Please correct me, if I'm wrong.
    I don't not know how to change the value unless to stop the task and start it with new value. But this method is not a solution, cause i always stop the motor and start it with a higher frequency from zero. So what I'm actually do is to look after the correct NI-function for my problem.
    If someone has an idea/example/solution, please post it. I'm thankful for all kinds of feedback.
    Best regards,
    Oliver

    Unfortunately, ramping a stepper is not straightforward using the counter hardware.  Under finite generation, the freq cannot be changed on the fly.  And under continuous generation, where freq *can* be changed on the fly, it must be done under software-timed control.  Also,  under continuous generation, it will be pretty tricky to both change the freq on the fly *and* control the exact total # of steps.
    If you need a well-controlled ramp and a well-controlled # of steps, I'd suggest you start figuring out a scheme to use the hardware-timed digital output port (see also "correlated dio").  The big downside is that you'll need to generate a large buffer of digital states to define your pulse train because you'll probably need to output at something approaching a MHz.  Out of those million samples per second, probably only about 0.1% of them represent transitions.
    When these kinds of apps come up, I always put in a good word for one of NI's Alliance partners - Viewpoint Systems, who sells a digital board that works much more sensibly for these situations.  With the DIO-64, you create buffers containing only the timestamps of the transitions and the digital state at those transition times.  So to generate 1000 steps in a second, you'll buffer 2000 states rather than 1,000,000.  You'd also get ~20x better quantization error for your available step rates.
    I've been requesting a buffered counter output capability from NI since before Y2K, so I'm no longer holding my breath...
    -Kevin P.

  • Error 200141 when trying to measure motor encoder's speed from PCI 6221 card,

    Hi,
             I was trying to measure angular speed of a motor from its encoder signal. I'm using Ctr pin from PCI 6221 card take signals from the encoders. The problem comes when I've got an Error-200141 saying "data was overwritten before it could be read". I have tried a few ways as follows to overcome this problem.
         - Use DMA
         - Get rid of the noise from the signal by shielding the wire from encoder to DAQ card and using a capacitor.
            None of those seemed to solve the problem completely. Even though the noise from the signal was removed, I could still see the mechanical glitter at the edge of all the pulses from the oscilloscope. Is that a possible cause of this problem (my technician told me we can do nothing with this glitter. In other words, we can't remove it)?
            Please suggest me how to solve this Error-200141. With this message, I have also attached VI.
            Thank you very much.
       Regards,
       Suksun
    Attachments:
    Meas Dig Period-Buffered-Continuous-Low Freq 1 Ctr_Angular speed from encoder.vi ‏72 KB

    Hi Suksun,
    Only had a quick glance at your code, but can you drop the samples to read to 100.
    I think what the problem is from what I can make of your code, is that
    you have a low frequency counter, that you measure on the rising edge,
    however if you don't get a 1000 pulses within 100 seconds, DAQmx will
    report an error. So by lowering the number of samples to read you
    should be able to get 100 samples in 100 seconds, you should not
    overwrite data as the buffer will be sized correctly.
    Hope this help
    Regards
    JamesC
    NIUK AE

Maybe you are looking for