Counter problem PCI 6229

i am using TWO PCI 6229 cards (2*2 counters, DMA Channels), OS-winXP, LabVIEW 2009 SP1.
now using 3 counters (1. edge counter, 2 and 3 for semiperiod measurements).
i can run the edge counter alone without problem. but i cant run all the 3 counters in parallel.then the whole application slowsdown and i see the readVI at 3rd counter (buff_semi-period_continuous) not running.
i have changed the data trasfer mechanism from DMA to Interrupts but that also doesnt help.
analog input (16 differencial ) and output channels of both the cards are using.
can any one suggest a solution to this problem??
Kudos always welcome for helpful posts

Hi RENN,
the semi-period-measurement is a implicit-timed measurement. This means that there is no fixed point in time when the result of the measurement is delivered. (It depends on the signal when the driver provides you with a valid value.)
The behaviour you see is mostly caused by using multiple implicit-timed measurements in one single loop, esp. with buffered measurements.
To prevent this kind of deadlock use a single loop for every semi-period measurements.
I hope this helps.
Ralf N.

Similar Messages

  • Counter output PCI 6229

    Hi all, 
    i have a little problem with NI pci 6229. I want generate a pulse train on both counter CTR 0 and CTR 1. I look the example that run on machine but i dont find the pin , with the oscilloscope, with y train pulse. I check the between Dgnd and PFI 8 ( pin2 ) but i dont see a train. 
    How can i solve ? What is the correct pin couter out on NI PCI 6229 ? it is referred to Dgnd? 
    tanks

    Hi,
    the terminal for a counter output task is PFI12 and not PFI8. The PFI 12 has the default Pin number 2.
    NI PCI/PXI-6229
    http://zone.ni.com/reference/en-XX/help/370466W-01/device_pinouts/6229_pinout/
    Have a nice day.
    Regards,
    A.

  • PCI-6229 Digital I/O sample clock problem

    Hi,
    I am using PCI-6229. I need to use digital output channel to generate 20KHz 30%duty cycle pulses.
    The datasheet shows DO sample clock frequency can be 1M Hz. But in may application, only 100KHzTimebase can work to generate. But acctually I need at least 200K Hz.
    Attached is the Vi I made. Can anyone help me with this problem?
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Digital pulse_DO Channel.vi ‏26 KB

    Hello All,
    I tried to modify the VI posted in this thread in order to aquire a digital signal with the PCI-6229. Sinc the frequency of the signal is below 1k i tried to devide the signal of ctr0 respectively of freqout by 8 or 16 since 6.25k or 12.5k sampling frequency would be more than enough for my purpose. By the way, when I am using the 100k timebase for the timing of the task the programm is working. Since i try to monitor up to 20 channels, the amount of data genereated is too much. Therefore I tried to use the modified VI.
    Sometimes, the VI works, but almost always, the DAQmx - Read VI doesn´t terminate.
    Has anybody an idea what i did wrong?
    Thank you for your assistance.
    Sincerely,
    Mirko
    Attachments:
    Digital pulse_DI Channel-1_mod.vi ‏32 KB

  • Counter Output Pin on PCI-6229

    I am using NI-DAQmx 7.3 C API with (among others) a PCI-6229.
    I have used DAQmxSetCOPulseTerm() to connect a counter output to a terminal other than the default. It seems to work- the output pulses do, in fact, appear at PFI 6 (the terminal I'm using for testing). But the pulses continue to appear at the default output pin as well.
    Is that expected?
    In order to reverse the situation, I used DAQmxResetCOPulseTerm() just before calling DAQmxClearTask(). The function returns zero, but if I subsequently make a new task to do pulse output from the same counter, pulses appear at both PFI 6 and at the default pin.
    Am I missing something?
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

    Salvador Santolucito wrote:
    Hi John,
    I would suggest using the DAQmxTristateOutputTerminal. I have tried what you are doing in LabVIEW and I'm seeing the exact same results. When I set the default pin to tristate, the counter output does not show up on it.
    -Sal
    Thanks for trying it and confirming what I saw, and thanks for the pointer to DAQmxTristateOutputTerminal.
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • PCI-6229 M-Series (count 3 encoders)

    Hello,
    I only have one DAQ board (PCI-6229 M-Series) and as I know, the board have two counters:
    Ctr0 which uses PFI8 and PFI10 - now using that to count outputs from my first encoder
    Ctr1 which uses PFI3 and PFI11 - for my second encoder
    But I have 3 encoders, can I use other PFI pins on the DAQ board to count the outputs coming from my third encoder? Is it possible with just one DAQ board? Did I miss any example code which tell me how to do this?
    Thanks alot.
    Kenneth

    Hi
    Try the link below
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=F0F64AEE06C0010CE0340003BA7CCD71&p_...
    for using a counter as the DIO clock for M Series boards.
    Requirements= LabVIEW 7.1
    NI DAQ MX 7.3
    I hope this example helps!
    Kind Regards,
    Kurt
    Attachments:
    Using_a_Counter_as_the_DIO_clock_for_M_Series.vi ‏84 KB

  • How do I use a quadrature encoder as an external clock (PCI 6229)

    Hello, ( a similar post has been placed on DAQ forum apologies as I did not know best place)
    I have a PCI 6229 M Series data acquisition card. I want to use a quadrature encoder to be the external clock driving the acquisition of a number of signals. I have set up reading 24 signals each time a clock pulse is received using the DAQ assistant and set my external clock to pin pfi8 (I think) this is then connected to an encoder output. This works well enough until the encoder is run too fast when it appears I am either missing pulses or getting bounce.
    How can I set up to clock using a quadrature encoder? I have seen a number of questions on this forum regarding quadrature encoders and reverse counting but not on using them as an external clock.
    Basically I want to have the stability and "bounceless" nature of using two outputs from a quadrature encoder whilst still using an external clock. Is this just a case of configuring controls to certain pfi's? If so how is it done?
    Any help or pointers would be helpful. So far I have managed very nicely by simply using the DAQ assistant and the interface it has would suggest that if configured for a certain pfi pin I could actually still use it.
    Thanks in advance.
    Kevin

    Hi,
    Well I've had alook into this for you and I'm not quite sure I understand what you are looking for.
    Is it possible for you to phone back in to support?
    The reason you are seeing bounce at high speeds, or indeed loss of points, is due to the sampling rate that you have set up.
    What you will find is that the trigger will start an aquisition of a number of points at a certain rate.  If your sampling rate is too low then you will not finish that sample batch before the next set of samples is recorded.
    It is possible to use an external clock into a trigger or digital line, however this will limit the number of samples you can take to the speed of your encoder.
    If you increase your sampling rates, and then configure a start trigger from a single input from the encoder you will be able to record a number of samples after a rising/falling edge.  (Set the clock as an internal clock)
    Hope this helps
    AdamB
    Applications Engineering Team Leader | National Instruments | UK & Ireland

  • How to check 6 digital signals change value at the same time with PCI-6229??

    I am using DAQ card PCI-6229.
    Channel 1 generate a digital signal.
    Channel 2,3,4,5,6,7 acquire digital signals.
    I want to check:
    1. Whether the rising edge of Channel 2,3,4,5,6,7 occures at the same time;
    2. The time delay from the rising edge of Channel 1 to the rising edge of Channel 2,3,4,5,6,7 is within a certain range.
    I know I can use counter to get the two edge seperation time delay. But I only have two counter, it is two time-consuming if I check one by one.
    I don't know how to check the rising edge of 6 different channels occure at the same time.
    Does anyone has any suggestions?
    Thanks

    Hello,
    You can use the DAQ card's digital input change detection circuitry to detect changes in the input, you can then use a counter to measure the relative time between samples. Please read Page 6-9 DI Change Detection Applications for more information. Let me know if this helps
    Christian A
    National Instruments
    Applications Engineer

  • How does the PCI-6229 DAQ-card communicate with CB-68LP connector block?

    Hello!
    I want to do a very simple task which is to just turn on/off a LED. I am using LabVIEW 7.1 and I have a DAQ-card PCI-6229. The DAQ-card is then wired to a connector block CB-68LP.
    Now my problem is to figure out how the connector block communicates with the DAQ-card?
    In the file I attached there is a picture of connector block and the device pinouts from the DAQ-card. But how do I know which of pinouts triggers some connector on the connectorblock?
    Which are digital outputs on the DAQ-card?
    Where can I read about this?
    Attachments:
    daqANDconnectorblock.bmp ‏2437 KB

    Hello asc01001:
    The digital pins of the PCI-6229 are labelled as Px.y, where x is the port name while y is the channel name.  For example, pin52 of the NI 6229 is P0.0; which is also port 0, channel 0 of the digital I/O of the DAQ card.
    While "D GND", which are located at pin53, pin18, pin50, etc. are the negative terminal of all digital I/O of the DAQ cards.
    Please advice if this helps.

  • Trouble using the counter on PCI 6025E

    Hello,
    I am facing a problem with the counter on PCI 6025E. I am trying to count the number of pulses generated by the shaft encoder mounted on the shaft of a motor. I am using a channel from the shaft encoder to count the pulses and generate the line state. So, I have wired the channel to pins 25[line state]and 47[counter]on SCB-100. In my application I am using the count events/time vi from DAQ palette. Every time I run my application I have been getting the error NI 10001 saying that the ordering of the strings is not as expected.

    Hi,
    The Count Events & Time.vi is typically used with older counter hardware such as the 9513 chip. Your E Series card (6025E) uses a DAQ-STC chip. The best way to count your edges is to open up the example "Count Edges(DAQ-STC).vi which can be found by selecting Help>>Find Examples... and you will find it under the DAQ Counter examples as an DAQ-STC example. Hope that helps.
    Ron

  • Error 229665 when run ContGen-IntClk.c (example file) pci 6229

    Dear All:
    I try to use pci 6229 to send analog signal by using the given example program, ContGen-IntClk.c, in DAQMX 8.3.
    I use Visual c++ 6 to compile it.
    After I run the exe file, monitor show error
    "DAQmx Error: Internal software Error occureed in MIG software.
    Status code: -229665"
    (Note: the result was the same, when I did with visual basic)
    How should I solve this problem?
    My computer has  operating system: Microsoft XP 2002, CPU p4. 
    Thank you,
    Thongchai Phairoh.

    Hey Thongchai,
    Thanks for contacting National Instruments.  This error is usually associated with Measurement and Automation Explorer having a problem with it's database and is usually fixed with a reinstall of the driver or repair of the driver.
    You could try a few things to attempt to resolve this issue. 
    Attempt to repair the driver from the Control Panle and highlighting National Instruments and click, Change\Remove and highlight NI-DAQmx and click the repair button.
    Reinstall the DAQmx 8.3 driver.
    Upgrade to either 8.3.1, or to the newest version 8.5
    Let me know if you are able to resolve this with any of these options.
    Regards,
    Kenn North
    Senior Product Manager - Search, Product Data
    http://ni.com/search

  • Are there any DAQmx examples available for use with pci 6229 M series card?

    I have been searching around for examples which work with the pci 6229 M series DAQ card. Most examples do not list this card as applicable and the one I have found gives an error. Is there anywhere specifically available, what I am particularly interested in is seeing an analogue channel being triggered by another analogue channel reaching a certain value.
    Thanks
    Kevin

    Hi Kejoglo,
    You are right in the fact that the M-Series card is newer than LabVIEW (and therefore the examples that are shipped with it) and therefore the example finder doesn't list the M-Series cards in the list of available hardware.
    Basically though, the M-Series cards work with DAQmx and not Traditional DAQ so if you just go into the example finder and search under Hardware Input and Output>>DAQmx and choose an example from that folder to run on your M-Series card. As long as you don't try to do anything outside of the specifications of your card (which I doubt you will do) then you shouldn't have any trouble running any of the DAQmx examples on an M-Series card.
    Hope this helps, if you still have problems then please feel free to write back.
    Best regards,
    Peter H
    Applications Engineer
    National Instruments UK

  • Using 2 SCB-68 on PCI-6229

    I'm having problem using 2 SCB-68s with PCI-6229:
    1) Can I set 1 SCB68 in differntial mode (for Thermocouples with temp reference) and the second SCB68 in single ended mode (no temp reference)? MAX only shows "SCB68 Properties" for one unit.
    2) When using labview, I can run VIs that uses ports on one of the two SCB68's, but not both, i.e, if I attempt to use both ports 0-15 and 16-31 in the same VI, I would get an error about resouce is reserved.
    Thanks!
    Easen Ho

    Hey Easen,
    1.) Are you using NI-DAQ 7.4? The DAQmx Team added support adding an SCB-68 to each of your connectors. You can also configure each connector seperately.
    2.) I assume that when you say "ports", you are refering to the analog channels and not the digital channels. In which case, I assume that the problem is that you are trying to run two different analog input tasks on the same board. This is not possbile because all of the analog lines are viewed as a single resource. However, you can configure the analog lines in different create channel VIs and string them together, in the same task. Then you will have to sort the reading out, as they will be based on two different scales.
    -Let me know if you have any further questions.
    -Justin

  • Quadrature encoder interface to PCI-6229

    Using PCI-6229 with LV7.1.
    I need to connect an incremental quadrature encoder ( A,B and Z )
    signals directly to the card and use the CTR0 to give me the angular
    position information. Encoder is a 2500ppr type.
    As per the specification summary of the PCI-6229 card, this is
    possible. If so which terminals to use ? ( I have also posted  a
    similiar query in the other hardware forum )
    can someone help me out in this ?
    Thanks
    Raghunathan
    Raghunathan
    LV2012 to Automate Hydraulic Test rigs.

    Dear David,
    the search terms that you gave helped a lot also. I could get sample code for checkout of an encoder with LV7.1. Good.
    I am not sur eif you have actually worked with the encoder + LV
    combination. Normally any optical encoder  will produce  high
    frequency jitter if it happens to stop just at the point of transition
    of either the A or B channel . I do suppose that the DAQmx  VI
    will handle this and not produce spurious counts - or do I need to
    configure a filter for the relevant PFI lines ?
    Thanks
    Raghunathan
    Raghunathan
    LV2012 to Automate Hydraulic Test rigs.

  • Pci 6229

    I have a PCI-6229 card (for data acquisition) setup and configured on my PC and it passes all the tests and seems to run fine. So, what I wanna do is to input 4 analog signals to the analog inputs of the card and acquire data (simple as that). But I only want to start acquiring data at a particular instant. This is what I want to do: I want another computer/device connected to the PCI-6229's I/O pins sending signals to the card telling it when to start and stop acquiring data. So, for eg. the computer/device sends a TTL pulse to the I/O of the card to start acquisition. I want the card then to continuosly acquire data untill another TTL pulse is sent to stop the acquisition. I was wondering if this can be done in LabView? and if yes, are there any similar examples I could look at somewhere? any hints on what I need to do etc.?
    I have LabView 7.1 with DAQmx driver and DAQ Assistant.
    Any help would be greatly appreciated..
    Thanks!

    Hi and thanks for all your help guys. I'm still unable to figure out what's wrong here, I've attached the .vi file, if you happen to have some spare time, please try to go over it (if possible).
    So, I'm trying to measure a 5 Hz signal (same as before).
    The frequency in the front panel is set to: 1000 Hz
    The samples per channel: 200
    The samples per read: 200 ----- Not sure what this exactly means
    When I run the test panels, I get a very good signal.
    It's either the way I'm sampling the signal or there's some minor problem in my labview schematic.
    Thanks to both reddog and Dr. Imad
    Attachments:
    Digital Start and Stop Trigger1.vi ‏96 KB

  • Why there are self-excited oscillation on Voltage input on PCI-6229 Card?

    hello,
    I am using PCI-6229 card to aquisite voltage from a photo diode.
    I use differential mode to connect plus node on ai21 and nagetive on ai29 of PCI-6229. 
    this corresponding with terminal 60 & 26 on SCB-68 connector.
    But after several seconds the voltage will climb on to the maximum 10V even I leave the terminal of ai21 & ai29 open.
    Is it normal of PCI-6229 ?
    How to solve this problem?
    Thanks a lot!

    duplicate post

Maybe you are looking for