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

Similar Messages

  • 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

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

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

  • 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

  • How to run two vi's at the same time, one uses an AI task with 8 AI channels the other a single AI and AO channel???

    Hello Everyone,
    Here is my situation.  I have one vi that is reading an AI task of 8 channels AI0 --> AI7 (one sample on demand) and also has control of all of the digital outputs on the board.  My problem is that I want to run another vi that will use the last AI channel AI8 and an AO channel AO0.  These two vi's do not need to know anything about one another but I do need them both to be running at the same time.  Currently when I try running the two vi's together both vi's crash and I get an error message stating that the AI8 pin is reserved.  AI8 is not part of the task and is not refrenced anywere in the larger vi.  I am assuming that this problem is do to the fact that the larger vi is occupying the DAQ board, cycling through the task when the smaller vi is requesting data from AI8 and the DAQ board cannot do two things at once.  The sampling rate on the smaller vi is not really that important.  Is there anyway I can get the smaller vi to read from AI8 and not crash??? Software and Hardware listed below.  Thanks in advance for any suggestions.
    PCI-6221
    Labview 7.1 

    Hi steve ,
    Sorry to say that you cannot configure and acquire from AI channels on a   Device simultaineously from 2 seperate VI's.
    regards
    Dev

  • HT1423 I am adding more memory, should I replace the top two slots with the 4g memory modules, then place 2g memory modules on bottom slots. Does it even matter?

    I am adding more memory, should I replace the top two slots with the 4g memory modules, then place 2g memory modules on bottom slots. Does it even matter?

    I am adding more memory, should I replace the top two slots with the 4g memory modules, then place 2g memory modules on bottom slots. Does it even matter?

  • ORA-03118 two-task error while doing a non blocking OCI call

    Hi,
    I have an application that runs on Linux and uses OCI API (version 8.1.6).
    If I do the following in non blocking mode after polling about
    70 times I get the error:
    ORA-03118: two-task coroutine has invalid state
    do {
    call_cnt++;
    rtc = OCIStmtFetch(stmtptr->stmt, oracle_err, 1, OCI_FETCH_NEXT,
    OCI_DEFAULT);
    } while (rtc == OCI_STILL_EXECUTING);
    This doesn't happen all the time but it happens most often on big selects.
    Does anyone have any idea what is happening here?
    I have searched for related information but have come up dry. If anyone
    knows anything or maybe a better place to ask this question please tell me.
    Thanks,
    Barry
    null

    Ask your basis guys to increase the table space...
    check this thread...
    [Error : DBIF_RSQL_SQL_ERROR;
    --- Thanks...

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

  • Does performing a DAQmx Clear Task on a PCI-4474 card change the state of the IEPE current?

    Does performing a DAQmx Clear Task on a PCI-4474
    card change the state
    of the IEPE current?  If the IEPE current was on, does it remain
    on even though the task as been cleared?  If the IEPE current
    remains on, then I assume I don't have to wait for the IEPE current to
    settle if I make a new Task and start a new measurement--is this
    correct?
    Thank you in advance for your help.
    Ken

    DAQmx Clear Task should not turn off IEPE current. You will have to explicity set IEPE current to On (for that channel) whenever you use any of the AI channels on your 4474 in order to keep the IEPE On because the IEPE for all channels in the AI subsystem will be set to the default state (Off) unless explicitly configured. That said, if you clear a task that had IEPE On, and then initialize a new task and set IEPE On, the IEPE will be uninterrupted and there should be no need to wait for the IEPE to settle. Other components of your measurement system might need time to settle if their state was changed between tasks (DUT, sensor, AC coupling, etc.)
    Doug
    NI Sound and Vibration

  • Does iMovie 08 work with two external devices?

    Does iMovie 08 work with two external devices without causing latency.  I need to capture the video through an external USB webcam and the audio through a Digital Recording box through firewire.

    YES and there are multiple postings here with complete information
    Also visit:
    http://www.dvinfo.net/conf/forumdisplay.php?f=156
    A Users Group with answers to al your questions.

  • 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

  • TS3276 Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Not sure if this is a fix, but I tried sending myself a test email from only  the Bcc field, and lo and behold it now shows the Bcc field in all sent item previews;
    ...maybe leaving the 'To' field blank on purpose forced Mail to show it.
    Rebooted the Mail program, still there - rebooted the machine, still there. Hope this is still relevant and it works for you too - J.

  • Using two PCI 6221 on a target PC

    Hi all,
    I'm currently working on a project which requires real time control, and I was wondering if I can install two PCI 6221 boards on a target PC.
    I've tried using one PCI 6221, which works fine, but what if I add another one?
    Also, would I need better CPU for that?
    Just let you know, I'm using CVI 9.0 under Windows XP
    Thank you for your help.

    They are both development environments, so the answer is the same for CVI.
    This is more of a hardware question and would be appropriate in the Real Time forums board.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

Maybe you are looking for

  • No Airplay on Macbook or iPad for Apple TV

    I am trying to get my MacBook (late 2008 model) onto my TV but nothing I do is working. AirPlay doesn't even show up on my desk top or anywhere else for that matter. I have Mountain Lion and so does my iPad but neither will mirror my activity on my t

  • Problem in view

    if i have view like create or replace view v_emp as (select * from emp); and now i drop one column from emp; i.e View become invalid how this view become valid 'I already tried alter view v_emp compile but return error

  • BMP scenario for Multi Idocs

    Hi , Iam working on Idoc to File scenario for sending multiple Idocs. Iam using BMP for sending the Idocs. The problem is when I test only one Idoc is seen at the target file. ie., the first Idoc sent. The second Idoc is not getting transferred to th

  • How to Install EU Firmware version on my E52

    Hi there. I just got a Nokia E52, with firmware version: 022.009.C00.01, Type RM - 469. I cant read Vietnamese font, and my friends said i have to install EU versions of firmware. How could i do that? When i use Ovi suit, it updated automatically, no

  • Running iTunes 1, can I go straight to iTunes 6 and should I backup my musc

    The Subject pretty much asks my question...I am running iTunes 1 and wish to upgrade as now I have a photo iPod and would like to include pictures on it. I need atleast iTunes 4 should i / can i go straight to 6 or must i download the in between step