Daq 6024e + IR encoder

Hi,
I am using IR sensor to calculate the rpm of my wheel-- my problem is when I am using "low freq with one counter" initially it gives me rpm but then as I increase the rpm it gives me message that "data was overwritten before it could be read try using DMA or divide the signal before measurement" now I can not divide the signal in this method I assume-- now when I change the counter to other method like "high range or large range with with 2 ctr" it tells me immediately your signal is too slow for this type of method and increase the measurement time-- I even did that increased the time to upto 50.0 but same problem
My Vi is attached -- How should I resolve this issue. As my wheel will move from rest and will gain some rpm and then stop-- so it will go from low to high to low.
Thanks
Attachments:
counterencoder.vi ‏59 KB

Hi tmdar,
Were you able to see any changes upon changing the "samples per channel" parameter? You're right, it is possible that noise in the signal is being picked up as an event as well. Also, avoid running any unnecessary applcations on your computer while running this, or try running on a different machine to see if the results vary.
LabVIEW comes with a Filter Express VI (Express >> Analysis >> Filter) which you can experiment with to perform different types of filtering. However, since this filtering is performed after the data has been acquired, it may not help with the data acquisition issue. You may need an external filter. Before taking this step, you should verify if the problem is in fact signal noise. Since you're using one counter for "Low Frequency with 1 Counter", you can use the other counter to generate a pulse train, which you can feed as the input for your counting, to see if you can get up to a higher frequency. If this works, the problem is likely with the signal source. Otherwise, the issue would likely be the system or the code (please verify that you're using the shipping example, "Measure Dig Frequency - Low Freq 1 Ctr")
Thanks,
Lesley Y.

Similar Messages

  • HOW CAN I ACQUIRE AND DEPLOY DATA IN REAL TIME WITH DAQ 6024E?

    HI ENGINEER,
    I'M PROGRAMING AN APLICATION WHICH I NEED ACUIRING AND DEPLOYING AN ANALOGOUS SIGNAL IN REAL TIME.
    I HAVE:
    LabVIEW 7.0
    WINDOWS 2000
    DAQ CARD 6024E
    THE SIGNAL I WANT TO ACQUIRE IS 0-10 Vcd FROM A SENSOR, THE PROBLEM I HAVE, IS THAT I AM ACQUIERING THE DATA AND IT SEEM THAT THEY ARE UPDATING EACH SECOND, BUT I HAVE BEEN MOVING THE PARAMETERS SUCH AS TASK TIMING IN THE DAQ ASSISTANT VI AND NOTHING HAPPENS.
    CAN YOU TELL ME WHICH PARAMETERS I HAVE TO MOVE TO AQUIRE AND DEPLOY DATA IN REAL TIME

    Hi barron,
    If you want to see the data update quicker, you can decrease the value in the "Samples to Read" field of your DAQ Assistant. This number controls when data is transferred from the DAQ buffer to the PC. If the sampling frequency remains the same, but this field decreases, it means the buffered data will be returned more quickly.
    Hope this helps.
    Thanks,
    Lesley Y.

  • NI-DAQ 6024E Error code 10401

    Hi,
    after installing LabView 6.i on my PC (Windows XP) my NI PCI-6024E card
    does not work properly anymore... I can see it in the MAX, but it does
    not pass the device test. Error code is -10401 - Unknown device error.
    I'm using NI-DAQ software version 6.9.3.
    Can anybody help me?
    Thanks.

    "The following has happened: Some months ago the DAQ (PCI6024E) card from the customer was broken and NI sended us an other card (other repaired card). We shipped it to the customer, but he is still trying to use this card"
    Do you mean the card at one time was used error free ?
    I assume, it has.
    The first thing to do is to check on the card from measurement and automation (Max), and see if Max recognizes it. If not, then it is either that the driver got corrupted, or that the card is bad.
    If you decide to reinstall Nidaq, the you have to first uninstall the existing Nidaq/Max, the reinstall Nidaq (same version that existed on the computer or the most recent one)

  • RDA with DAQ 6024E

    Hi all!
    We are having a school project, where we are trying out remote data aquisition. We are running a computer with a PCI 6024E DAQ-card and using RDA-server to access it from another computer on the network using LabVIEW.
    The program itself works rather well, but we are concerned about one thing; if the LabVIEW-client looses connection with the RDA-server (faulty connection, PC crashing etc), the DAQ-card retains its output values. Is there a way to make the card return to some pre-defined default-settings when the RDA-server looses its connection? (In our case, turning off the pumps and valves so we don't flood the room =) )
    Thanks,
    Siggen
    Edit: spelling...
    Message Edited by Siggen on 12-01-2005 07:04 AM

    Hi Siggen,
    Are you using  TCP/IP for achieving RDA ?
    If , Yes, You can do this.
    Any loss of connection between client and server will result in and error being given by TCP/IP connection section of your program( If You are not using wait forever condition for time out)
    Whenever this error comes, connect it a Boolean case condition
    No error: Blank case
    Error reported: Just set your DAQ card Analog and digital channels to default values programatically( do suitable AO and DO write to achieve this) and stop your server program(if needed)
    Hope this helps
    Regards
    Dev

  • DAQ-6024Eの割り込みレベルのエラー

    使用アプリケーション 
     NI-DAQ 6.9.3
     NI-Measurement & Automation Explprer 2.2.0
     OS  Windows2000
    Measurement & Automation ExplorerからDAQCard6024Eのテストパネルを実行すると
    『デバイスは指定された1つ目の割り込みレベルにて応答がありません』とエラーが表示されます。
    しかしそのエラー表示のあと テストパネルは実行され 最新のエラーも0 と表示されています。
    この状態の時、DAQCard6024Eは正しく動作していないのでしょうか? 
    現在のIRQ割込みレベルは7となっています。

    すみません。やはりくカード正しく動作していないようです。
    http://forums.ni.com/ni/board/message?board.id=1170&message.id=2248
    こちらに似た症状の物がありましたが
    VISA ランタイムエンジンという物を入れても解決しませんでした。

  • Quadrature Encoder measurements with PXI-6143 S-Series DAQ

    Has anyone used a S-series PXI-6143 DAQ to take encoder position measurements? I believe there are 2 counters available, if you have any examples of how to access and read from these counters it would be greatly appreciated.

    Hi Bentup,
    Measuring a quadrature encoder on your device is actually going to be a bit different than on an M series device.  The STC-2 chip, which is used in the M series, allows for A and B inputs specifically for encoder signals (used in the Angular Encoder task).  The original STC-1 chip which is used in E series and most S series boards (including your 6143) does not have these same inputs.  Instead, you may must a Count Digital Events task (taking advantage of the up/down line of the counter).  The Angular Encoder task is not supported on STC-1 devices.
    The article that lab_boy linked earlier actually mentions how to use an encoder with an E series device once you scroll down a bit (here's the link again).  This same procedure should apply to your S series--connect the A output of your encoder to the source of the Counter (this is the signal that you are counting).  Connect B to the up/down line of the counter (P0.6 and P0.7 for counter 0 and 1 respectively). 
    The downside with this method is that it is more susceptible to vibrations or noise on the encoder lines. If this is a problem for you, you can look into an external encoder conditioner like the one mentioned in the article.  I hope this helps!
    Best Regards,
    John
    John Passiak

  • Help required with DAQ and waveform generation

    Hi,
    I'm using DAQ 6024E card for waveform acquisition using LabVIEW 8.2 version. I've also attached my vi for your reference.
    My next step is , I want to add another waveform to the acquired waveform, i.e. I mean to say if the acquired waveform is a sine wave with 60 Hz frequency and amplitude of 8V peak-to-peak, I want to finally display a wave which is 8V peak-to-peak with sinusoidally changing freuency.
    To be more clear...I want a sine wave with frequency =  60 Hz + 1*sin( 2*pie**t).
    As cane bveen seen in my vi, I can extract the phase and magnitude of the original acquired signal.
    Can anyone help me out with this...as I'm not able to figureout how should I proceed next.
    Looking forward to hear soon,
    Regards,
    Rohit
    Attachments:
    test_analog.vi ‏162 KB

    You'd probably want to use the DAQmx VI's instead of the Express VIs, when doing something more exotic. You can start by converting the existing Express VIs to code by opening their front panels and saving them as a VI.
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Up/down count edges: traditional daq vs daqmx

    Hello,
    I've inherited a program that uses an encoder to read the position of a torque-arm.  The program uses traditional daq.  The encoder position data is read using "Counter Read Buffer.vi".  Then, by simply casting the output of "Counter Read Buffer.vi" to an I32, the position data can be either positive or negative.
    1. Is this a valid method of using "Counter Read Buffer.vi"?  (I wonder because if I capture data as I move the torque arm back and forth, the data suggests that the encoder is not moving back to zero counts each time.  For example, the first time the arm is moved through its range, it might go from 0 counts to 100 counts; the second run may be from 10 counts to 110 counts, the third from 15 to 115 and so on).
    2. Is something this simple available in DAQmx too, or do I have to monitor each encoder point that I read to detect when the counter rolls over and handle it manually?
    Thanks in advance for any assistance!
    Chris

    Hello Chris,
    For the answer to your first question, this may be an issue with the DAQ device you are using. What exact device are you using?
    For the second part, the Measure Angular Position VI, found in the Example Finder under Hardware Input and Output»DAQmx»Counter Measurements»Position, is a good quadrature encoder VI for reading angular position.
    Try using this example and see if the behavior is different between the Traditional DAQ and NI-DAQmx code and let me know how it goes.
    Regards,
    Dan King

  • Counting edges with dynapar encoder

    Hello,
    I am very new to Labview. To kick off some experience, I am trying to count edges on a Dynapar encoder, Model E14020000303. Here is the data sheet:
     https://ecatalog.dynapar.com/downloads/E14_DS_702489_2_.pdf
    I am using LabVIEW 2011, with a NI USB-6210 DAQ. My white wire on the encoder is connected to PFI0. The red and black wires are connected to my 5V voltage source. I am rotating my encoder to count the revolutions. Supposedly my encoder is a 200 PPR, and it is also quadrature. 
    However, I am not understanding what I am getting when counting edges using DAQ Assistant. I am using the Edge Count on ctr0. I can set the DAQ assistant to run on 1 sample acquisition mode and count the rising edge. When I turn the encoder 100 times, the measured value on the DAQ Assistant is usually around 76500, which would mean 765 edges counted per revolution. I can also change things around and go to continuous acquisition mode. I set up PFI2 as the external clock source with a rising edge and put the green wire in PFI2. I set it to read 1 sample at 1k Hz. This usually results in counting around 820 edges.
    I don't understand why I am getting these readings. The DAQ Assistant should only be counting rising edges because that is what it is set at. Why am I getting numbers so high? 
    Thanks!
     

    Hey guys,
    Sorry for the late reply, I have been put on other tasks. You all were right about the ground, that indeed was the problem. With the daq grounded, the encoder measures 200 edges per revolution.
    Thanks!

  • 6024E - Error 10846: Unable to retrieve data fast enough error?

    I am using a PCMCIA DAQ 6024E on a Dell Latitude C610 (1Ghz) - I'm trying to do Double buffered analog acquisition over 4 channels
    Whenever I try to run the application (VC++6) i get "Error 10846 - Unable to retrieve data from the backgound acquisition buffer fast enough..."
    I have tried the sample program "Double-Buffered Asynchronous Scanning in Microsoft Visual C++ with NI-DAQ" downloaded from the NI website - has the same result: Error 10846...
    I just need to sample 4 channels at 1kHz continuously, extracting the data every 250ms max - are the following settings sensible:
    i16 iChan = 0;
    i16 iNumChans = 4;
    u32 ulCount = 2000
    i16 iUnits = 0;
    f64 dSampRate = 4000.0;
    f64 d
    ScanRate = 1000.0;
    static i16 piBuffer[2000] = {0};
    static i16 piHalfBuffer[1000] = {0};
    Tried loads of different variations - as well as stopping all other apps running and removing everything from inside the acquisition loop - don't know what to try next. Can anyone help? Cheers!

    Hi,
    The error you are getting is due to the fact that your application is not emptying the PC buffer fast enough so new data overwrites old data before they are copied to the application allocated memory. You can try increasing the buffer size and/or reducing the Scan rate, whichever possible.
    Regards,
    RamziH.

  • Daq with PocketPC any speed limit ??

    Hi ! HELP NEEDED !!!
    i need to sample 12 chanels with 16ksamples/s ....
    so its something like ... 200,000 ksamles/s ...
    and make some Min/Max calculations ...
    i want to use it with the PocketPC and the Daq 6024E .. and ofcourse LabView 7 ...
    the speet limit of daq .. is 200,000 ks/s .. so its ok ..
    but what PocketPC speed i need ??? (200Mhz, 300Mhz, 400Mhz) ... and if its actually possible to sample this speed on the PocketPC aplication ....
    anybody tried ???
    any body worked near the limits ???
    what amount of memory needed ??? 64 mb enought ??
    anybody ?? plz ??? :-)
    its too pity to buy and to find that its not working ...
    u can answere also to [email protected]

    200KS/s on the 6024E should work fine on 200Mhz StrongARM and 400Mhz XScale CPUs. 200/300Mhz XScales will probably not be fast enough. You will need to download the 7.0f1 patch for LabVIEW and the PDA module to get this level of performance (and to support multichannel).
    Due to various factors from both Windows CE and LabVIEW PDA, using the high-level multichannel acquisition VIs in a default PDA install you should expect to be able to acquire somewhere around 10s of contiguous data at 200KS/s. This can be improved to 50s by various means including a lower-level usage of the DAQ driver code. If you require continuous acquisition, this is achievable but more difficult to program, and may not be able to operate stably at 200KS/s.
    If you need more information a
    bout said lower-level programming please msg me privately.

  • How I use 2 AI with 1 AO in the same program without hardware errors?

    I have a machine with a Motor (velocity controled with PWM), a Strain Gauge, and a Encoder (inner the motor). This machine is controled with a LabVIEW 6.1 program in a computer with Intel Celeron 1.5Gb 360 Mb RAM and DAQ 6024E.
    In my program I have two AI Adquisition Waveform blocks with AI different ranged Channel (the firts in my Strain Gauge ranged -9 to +9 V) and the second in my encoder ranged 0 to +5 V), and one AO Generate Waveform (the PWM signal ranged 0 to +5 V). When I put on the program, the motor Glitches an my computer turns slow. It´s cause me problems!
    Whats the problem?

    You would probably get more info on this in the DAQ Discussion Forums, but I can help you out a bit here. The VIs that you are using are very high level VIs so there is a lot going on behind the scenes that you do not see. More importantly, they are synchronous, meaning that you have to wait until they're finished to do anything else. This is probably why your computer is slowing down. The UI may even freeze until you have acquired all the points you requested. I would suggest using the more advanced DAQ VIs to control your system. There are many examples that ship with LabVIEW which demonstrate how to use these. They allow you to build an asynchronous acquisition system so that other tasks may operate while the DAQ board is acquiring data.
    J.R. Allen

  • Trouble creating a circular buffer

    I am using a DAQ-6024E multifunction IO card with LabVIEW 6.1. I am trying to play out encoded signals that are in a database. These signals are encoded in binary and decoded by a previous portion of the VI. This decoded data is then normalized at the start of the code that I provided, then sent to the DAQ card. I have tried several implimentations and this is the only one that seems to work properly for the most part. I am getting glitches, however every couple of thousand samples where it seems to drop about 100 samples or so. I am new to this and am sure that I am doing something incorrectly. If someone could take a quick peek and tell me what the problem might be, I would greatly appreciate it.
    Attachments:
    sample.vi ‏43 KB

    I tried running your VI, but there were many broken lines and missing controls, so it was kind of difficult to see what was happening. One thing I would suggest is using AO Configure to configure the system for Analog Output first. Also, try keeping a count of the number of updates done so that you can compare that with what you should have done. This may give you an idea of what's going on. Let us know what you find out.
    J.R. Allen

  • How to decrease counter ?

    Hi, and sorry for a newbie question written in bad English...
    how can i control the count direction (up/down)of a counter by a DIO?
    In my appliance a counter counts the low-high edges of a step frequency signal. (stepper: escap, DAQ: 6024E)
    So when DIO is high (rotation direction right) the counter counts upwards, and when low (direction left) it counts downwards.
    How to do it?
    Thanks
    Dietmar

    Dietmar,
    Assuming you want to setup the encoder all in HW,
    For CTR0, connect UP/DN to DIO6.
    For CTR1, connect UP/DN to DIO7.
    You can also reference this very detailed application note on using encoders with DAQ STC(the digital chip on our E-Series boards)
    http://zone.ni.com/devzone/conceptd.nsf/webmain/6F25CBA2CD73417786256869005E5FC3?opendocument&node=DZ52326_US
    This should do it for you.
    Kevin R

  • How to wire VI for 2 encoders using NI9401

    I have the attached vi that measures period.  My understanding is that the NI 9401 can measure period for up to 4 encoders at once.  Do I need one DAQ sequence per encoder, (e.g. the attached vi should measure period for 2 encoders simultaneously)?  I want to run up to 16 encoders, so, do I need to copy/paste this code 16 times in order to collect period data for 16 encoders simultaneously?
    I am using cDAQ9174 and NI 9401.  My understanding is that the 9401 can measure up to 4 encoder signals.  If I put a second NI 9401 into the cDAQ9174, can I measure 8, or does the cDAQ9174 limit the number of counters that can be accessed independently?  If I have to use two cDAQ9174's, plugged into one PC, does Labview recognize the eight slots as unique, e.g. 1-8, instead of two sets of 1-4 for the addressing of the channels? 
    Any generic advice on measuring many encoders (period) simultaneously is welcome.
    Thanks,
    Dave
    Solved!
    Go to Solution.
    Attachments:
    counter forum feb 13 2013.vi ‏31 KB

    -          Even if you put two NI 9401 into the cDAQ-9174, remember that the counters are in the chassis and this device just has four counters.
    -          You can run counter tasks in parallel.
    -          If you plug two cDAQ-9174, MAX recognizes two different devices.
    Regards

Maybe you are looking for

  • Can't get the "timing grid" to work

    I can't get the "grid" to work. There's no magnetism in the elements. I turn it on and off, but it makes no difference. Does anyone have the same problem or know what I do wrong??? Could it be a program failure. I'd be very gratefull to anyone who ca

  • How can I get Mac to print wirelessly?

    I have a g5 iMac and a g4 IMac that connect to the internet via a wireless Belkin router. I have two HP printers (a laserjet and an officejet) connected with an ethernet cable to the router. The g4 machine quickly identified both printers as "Interne

  • I changed my Mac Pro early 2009 to Mac Pro 2013.

    After migration my Photoshop CS5 won't start again. I've error code : 213 :5 .

  • Problems with new iPhone Texting

    My husband and I have new iPhone 4s. He can only receive text messages to an old email address (not his new email address or current phone number) I tried to add his new email address but in Settings, Messages he does not have the field titled "Recei

  • Fade Adjustment Tool について教えて下さい

    Adobe Premier Pro6 (英語版)を使っています. Video(又はAudio) track の左側にあるはずの 赤印 Display Opacity Rubber bands が無くてフェイドの調整が出来ません. また.TimeLine で右上の三角を押してもTrack Optionが現れなくて Audio Unit Sequence zero point が現れます. どうしたらよいでしょうか? WindowsXPです. 宜しくお願いします.