Acquire single analog point on each pulse

Hi,
I have a query on what i hope is a simple application. Im using a PCI-6220 card and what I would like to do is aquire a single data point which is to be triggered by a digital pulse. The pulse will come from an encoder, and what I would like to do is aquire a single analog data point each time the encoder channel pulse goes high (retriggerable daq?)
Which would be the best way to approach this?
Thanks,
David

David,
this is easily done by importing your encoder-signal as external clock for your AI (which is either finite or continuous then!)
hope this helps,
Norbert
[EDIT]: This will work out directly if the encoder creates CMOS/TTL pulses. If it doesn't, you should consider some kind of signalconditioning for your encodersignal
Message Edited by Norbert B on 11-19-2007 03:41 AM
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • How to take a single data point for each trigger pulse ( synchronou​s acquisitio​n).

     hi
              im using the pci-mio-16E1 card, with the IDE VC++, so  im looking for an example to explicate me how to make an synchronous acquisition data using an external timing, so the idea is to acquire (take) a single data point for each trigger pulse  from one  input channel ,and saving  the data in a file .
    now im making a code using the AI_setup and DAQ_op functions, im getting  a speed acquisition (it is the start of acquisition data), and  it is  a synchronous acquisition just for one trigger pulse, and me i looking for an acquisition for each trigger pulse. 
      so to  understand my problem you can see my code :
    iStatus = Timeout_Config(iDevice, lTimeout);
             iRetVal = NIDAQErrorHandler(iStatus, "Timeout_Config", iIgnoreWarning);
       //  configuration and selection of  signal trigger  
             iStatus = Configure_HW_Analog_Trigger(iDevice, ND_ON, iLowValue,iHighValue, ND_ABOVE_HIGH_LEVEL, ND_THE_AI_CHANNEL);
            iRetVal = NIDAQErrorHandler(iStatus, "Configure_HW_Analog_Trigger", iIgnoreWarning);
      iStatus = Select_Signal(iDevice, ND_IN_CONVERT, ND_PFI_2,ND_HIGH_TO_LOW);
             iRetVal = NIDAQErrorHandler(iStatus, "Select_Signal", iIgnoreWarning);
        iStatus = AI_Setup(iDevice, iChannel, iGain);
       iRetVal = NIDAQErrorHandler(iStatus, "AI_Setup", iIgnoreWarning);
       while ((iReadingAvail != 1) && (iStatus == 0)) {
     /* Wait until reading is available. */
             iStatus = AI_Check(iDevice, &iReadingAvail, &iReading);
            iRetVal = NIDAQYield(iYieldON);
           //  Acquire data from a single channel 
        iStatus = DAQ_Op (iDevice, iChannel, iGain, piBuffer, ulCount, dSampRate);
       while ((iDAQstopped != 1) && (iStatus == 0)) {
            iStatus = DAQ_Check(iDevice, &iDAQstopped, &ulRetrieved);
            iRetVal = NIDAQYield(iYieldON);
           iStatus = DAQ_VScale(iDevice, iChannel, iGain, dGainAdjust, dOffset,ulCount, piBuffer, pdVoltBuffer);
          iRetVal = NIDAQErrorHandler(iStatus, "DAQ_VScale",iIgnoreWarning);
       /* Set analog trigger mode back to initial state. */
           iStatus = Configure_HW_Analog_Trigger(iDevice, ND_OFF, iLowValue,iHighValue, ND_ABOVE_HIGH_LEVEL, ND_THE_AI_CHANNEL);
      /* Set PFI line back to initial state. */
           iStatus = Select_Signal(iDevice, ND_IN_START_TRIGGER,ND_AUTOMATIC, ND_DONT_CARE);
              iStatus = DAQ_Clear(iDevice);
     /* Plot acquired data  */
          iRetVal = NIDAQPlotWaveform(pdVoltBuffer,ulCount, WFM_DATA_F64);
    so this is the data acquired -0.900879,-0.900879,-0.900879,-0.900879,-0.900879,​-0.900879,-0.900879,-0.900879 and i think that is a noise because all time i get this data.
    tank you very mutch fo your help

    Hello,
    Please see the responses to this thread at the following post.
    http://forums.ni.com/ni/board/message?board.id=250​&message.id=13686
    Also, please only post one thread per issue.
    Regards,
    Sean C.

  • Trying to trigger multiple analog measurements with each pulse of a 500PPR encoder

    I am trying to take multiple analog measurements form 6 sensors with each pulse of a 500 ppr encoder and write these to a file.  Problem I have run into is I am not getting 500 readings with 1 revolution of the encoder the most I have received is 187 however this isnt consistant.
    using
    6024 E Series card
    BEI L25G encoder
    Still relatively new to labview along with using an older version 7.0
    Thank You in advance
    Solved!
    Go to Solution.
    Attachments:
    Rotary.vi ‏213 KB

    Never mind after looking at it somemore i found i was using the wrong sample rate

  • Acquire single point 12 bit data @ 200Khz using PXIe 6535 DIO RT

    I want to acquire single point 12 bit data @ 200Khz using PXIe 6535 DIO, PXIe 1072 chasis and 8820 controller in RT. Problem is I am unable to acquire data as triggered input. Loop execution time takes ~10us (measured using rt tick count). Thus It misses the samples. Am I missing something? What are the proper ways to acquire digital data in RT?
    Also I am wondering whether I can use the SMB connector of 8820 controller as my acquision trigger input pulse. I am completely new to RT. Any help will be appriciated.
    Thank you.

    Hi jtele1,
    To make sure that the data gets written in the correctly order I would recommend monitoring the Time Out of the write. If a time out occurs you could stop writing all FIFOs and then start when all the Time Outs are no longer there. Another option is to look at your host side and determine if you can read larger chunks of data at a time and allow the host side to deal with processing the data. An additional option would be to look into high throughput streaming for FlexRIO. In this setup you will be writing the data directly to disk on your host side and then you could process the data at a later time. I have linked an example below, this example was giving me trouble so please let me know if you have trouble loading this example. Depending on your situation these may not all be acceptable options but you will need to ensure that you are not filling any of your FIFOs. Lastly, from what I can tell you are using a Windows OS as your host and in that situation you have no way of controlling when your LabVIEW application gets processor time. If you were to switch to a Real Time controller you would be able to ensure when certain tasks are run and add priority to tasks. Please let me know if you have further questions. 
    High Throughput Streaming
    https://decibel.ni.com/content/docs/DOC-26619
    Patrick H | National Instruments | Software Engineer

  • Highlighting a single data point in a scatter plot - Numbers'09

    Is there a way to highlight a single data point on a scatter plot in Numbers'09 (or point to it using a line from each respective coordinate on the x & y axis).
    I don't think it matters but the data point i am looking to highlight is the [highest y value/2]... and of course its respective x coordinate once you plug the y value into the equation ( y = f(x) ) and solve for x.

    Here is my own tip :
    As you see, I use two sets of values.
    In the second one I define only the yValue of the data point which must be "highlighted".
    Yvan KOENIG (VALLAURIS, France) jeudi 10 février 2011 20:49:32

  • LineChart data tip won't display with single data point?

    Hi,
    I have a Flex 3 LineChart with LineSeries which use CircleItemRenderer. If there is only a single data point to display, the data tip is not displayed. If there are several data points, each data tip is displayed correctly.
    How can I make the datatip appear correctly with even just one data point? Any workarounds for this problem?
    Quick googling found that I'm not the only person with this problem. A suggested workaround is to use PlotChart instead, but I don't want to go there unless there is absolutely no good way to solve this problem directly.
    http://www.pubbs.net/200911/flex/28102-flexcoders-line-chart-data-tips-dont-display-when-t heres-a-single-data-point.html
    Thanks for any clues!!
    BR,http://forums.adobe.com/people/sikkfgkwwsdfkjkjwjfhjdskj
    sikkfgkwwsdfkjkjwjfhjdskj

    No one wanted to help me but I figured out that I was not referencing the DSN on the test server, only the local DSN. 
    The information to connect to the MSSQL database given by my hosting company was not correct for Dreameweaver (or MS Access) either.

  • Mounting multiple directories with same name on different severs to a single mount point on another server

    We have a requirement where in we have multiple solaris servers and each solaris server has a directory with the same name.
    The files in these directories will be different.
    These same name directories on multiple severs has to be mounted to a single directory on another sever.
    We are planning to use NFS, but it seems we can not mount multiple directories with same name on different severs to a single mount point using NFS, and we need to create multiple mount points.
    Is there any way we can achieve this so that all the directories can be mounted to a single mount point?

    You can try to mount all these mount points via NFS in one additional server and then export this new tree again via NFS to all your servers.
    No sure if this works. If this works, then you will have in this case just an additional level in the tree.

  • Frequency each pulse on sound card

    " I am trying enters a square sign (of encoder), the sound card filters the waves of high frequency and therefore he lacks labview information to show the perfect sign. But I believe that it is not necessary, that the sign is perfect to calculate the frequency of each pulse. Is it this way?. I alone want to know the frequency of each pulse. I don't care amplitude.
    I have tried to calculate the frequency of each pulse. I have recorded the sign and once saved. I have tried to calculate counting the pulses, with the option ' indices', subtracting at the 2º -1º, 3º-2º,... .
    but this is not accurate because the sample rate is to 44100 hz and I use signs from 50 hz to 10khz. To high frequency it counts very few points, to 10 khz it co
    unts 4 and this is not accurate.
    Is there some form of calculating it more accurate?. What vi's can I use?.
    Thank you!."

    Well, if I understand what you're saying. You are trying to read the frequency of a squarewave coming from an encoder. The problem with doing this with a DAQ card is (to put it simply) the required Nyquist samplng rate. Think for a moment, what is the frequency content of a squarewave? The fundamental (which is what you want) and a theoretically infinite number of harmonics. To adequately sample a squarewave and correctly represent the vertical edges would require an infinitely high sample rate.
    If what you need is to measure the squarewave repetition rate, doing it with a DAQ card (or sound card) is the wrong way to do it. What you need is to do a pulse width measurement using a counter.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to acquire 1 data point per trigger ?

    Dear all, anyone can help me in acquiring 1 data point per trigger? just as a Sample/hold circuit?
    I changed the example from Labview "Acquire 1 point digital trig", however, it doesn't work, it says data acquiring is inconsistent with buffer. The program is attached.
    and I try to use "AI Sample channels.vi", but there is not trigger input and sampling rate input.
    Thank you very much for your help.
    Attachments:
    Acquire1PointTrig.vi ‏81 KB

    There is a good example that can do almost exactly what you want to do.  It is called Acq&Graph Voltage - Int Clk - HW Trig Restarts.vi.  There are only three things you need to change.  Change the triggering VI to trigger off of a digital signal, then change the read VI to read a single channel and single sample and finally, change the Samples per Channel to 2.  I have included screenshots of the VI.
    The VI works by setting up a digital start trigger that is retriggerable, so that you can have this trigger start the acquisition over and over.  Once the trigger happens, a sample is acquired, read, and then the hardware waits for another trigger.
    Have a great day,
    Brian
    Message Edited by Brian C on 03-28-2007 01:48 PM
    Brian Coalson
    Software Engineer
    National Instruments
    Attachments:
    block diagram.Jpg ‏54 KB
    front panel.Jpg ‏58 KB

  • How do I acquire two analog inputs simultaneo​usly using a PCI-6052 E series DAQ?

    I am using the data to develope transfer functions.

    The simple answer is to put the 2 channels of interest in the Channel Control of your VI. Separated them with a comma.
    To be honest your question is not very specific. There must be hundereds or thousands of ways to simultaneously acquire 2 analog inputs.
    Try looking at the example VIs that ship with the software. Use the Find Examples function of the startup page for LV. Familiarize yourself with the information there and try some likely ones out. At this point you may have some more specific questions to ask.
    The descriptions of the VI's are sometimes hard to read, but are usually enough to operate the VI.
    Mike

  • How to input/output a digital signal and acquire an analog signal at the same time?

    Dasylab, version: 8.0.04
    Acquirement Card: PCI1002L
    When I use DasyLab to acquire the analog signals is no problem without digital inputs and outputs,
    and when I use DasyLab to input or output a digital signal is no problem also, but when I do that at the
     same time, DasyLab tell me the rate is too high and stop.
    so, I searched the manual book1 (user guide) for that, it showed me :
    To internally equalize measurement time and system time in the analog input, digital input and counter
    hardware modules, use the following settings:
       Synchronization: PC Clock
       Sampling rate: <= 5Hz
       Block size: =1
    the problem is, if I set the Sampling rate to 5Hz, the speed of the acquirement datas is not enough for my
    application.
    so, how to improve it? who can give me a example programm for me. thanks!
    by the way, I come from China, my English isn't good, I'm sorry.
    Allen, China.

    Hi,
    Have things changed over the years?
    I need to syncronise a digital output (Modul NI9474) and an analoge input (AI-Modul NI9203) module. I need to measure time intervals from a flank in signal A to a flank in signal B. I would like accuracies of the order of 1 ms. Currently, the signals are not synchronised, with errors of the order of 2 times the block length (block size x sample rate), sometimes much higher. The best I got so far was a block size of around 20 with a sample rate of 1 kHz.
    If I use the master and slave settings on the RTSL settings, my program doesn't run properly.
    If I use digital signals for input and output, I can syncronise them with RTSL settings and everything is good, but I can't always do that.
    Also, if I do anything in the GUI (such as scrollowing something or going to another window), my output gets screwed up properly.
    1. What can be done to synchronise AI with DO?
    2. Is there something that can be done to avoid messing up the output when something happens in the user interface? (I know that I am messing up the outputs as they make some valves switch and that is loud).
    Thanks in advance!

  • Can iDSIE (Meta-directory) be used as a single authentication point from iPlanet Web Server for multiple databases using direct "or" indirect connectors?

    Basically, the latest release of iPlanet Web Server forces the user/group information source to be an LDAP database. Currently, the user accounts are in Active Directory, NT, Oracle and NetWare Directory Service in this heterogeneous environment.
    What I am looking for is a meta-directory product which can do two things:
    1-Single authentiation point for users in mulitple databases from iPlanet Web Server.
    2-Single administration point for all of the databases listed above.
    For example, can I add/modify/delete a user account at the meta-directory level and have this propagate to all of the databases listed above reducing the administration to one meta-directory product?

    With an Virtual Directory solution, you can authenticate Iplanet Web Server against nearly anything including any LDAPv3 Directory Server, Microsoft Active Directory, Windows NT Domains, Oracle RDBMS, IBM DB2 RDBMS, Microsoft SQL, and others.
    All of this is done dynamically and doesn't require any heavyweight synchronization process. The Virtual Directory acts as a dynamic schema / DIT / data translation engine for different types of repositories.
    OctetString's Virtual Directory Engine is one such example. You can download a 30 day evaluation copy at:
    http://www.octetstring.com
    It will take you all of 30 minutes to get iPlanet Web Server authenticated against and using groups from things like Oracle RDBMS, Windows NT Domains, or Active Directory.

  • Is there way to put single text line in each response via WL configuration.

              Hello,
              Our partners are using SunOne server and
              they can easy include P3P policy file to each response via server configuration.
              Can we do it with WL?
              We have more than 3000 JSPs to modify.
              I think filter will slow down our site.
              We already put P3P policy in well known place but browser can't find it
              Is there way to put single text line in each response via WL configuration.
              Thanks,
              Oleg.
              

    SunnyKSood
    The quickest approach that comes to mind is
    a. create 3 separate titles in the Titler (Text Menu/New Text/Default Text)....
    food, goes on Video 4
    routes, goes on Video 3
    hostels, goes on Video 2
    Arrange them so that when viewed they are viewed as
    hostels
    routes
    food
    b. Move hostels (Video 2) to where you want it to start in relation to
    "Today I am going to talk about travelling in the North of Scotland and give advice on how to get by. I will talk about the best value hostels " - the word 'hostels' appears first at the top right of the screen
    Move routes (Video 3) to where you want it to start in relation to
    "I will describe the best routes to take" - the word 'routes' now appears under the the word 'hostels'
    Move food (4) to where you want it to start in relation to
    "And finally, I will describe the best places to eat traditional Scottish cuisine" - the word 'food' now appears under 'routes'.
    c. When all that is done to this stage, it might look like this...
    Now to arrange and drag out track content so that we see
    hostels
    then hostels + routes
    then hostel + routes + food
    when they are supposed to appear in conjunction with the video's dialog.
    The final workspace should look like
    Please give this a try. And, do not hesitate to let me know if you need clarification on anything described.
    We will be watching for your results.
    Thank you.
    ATR

  • Break Point in Each Instruction

    Is there any easy way to add a break point in each
    instruction.
    There is a function which actually draws the stuff on the
    screen, and i need to break in each instruction to see the values.
    Right clicking and adding a break point is not suitable as then i
    may have to add for 200 lines, so please guide in this regard
    Thanks

    Put a break point at the first line of the function, then
    just click the "Step Over" button to go line by line, or "Step
    Into" button to dive into other classes and functions if the code
    does something like that. If you get stuck inside some other code
    and you want to get out, click the "Step Return" button.
    Hover over the buttons to see thier tool tips.
    Switch between the Development and Debugging perspectives
    easily by pressing Ctrl-F8.
    See this FB3 help sys topic:
    Managing the debugging session in the Debug view

  • How to use single Timer to generate PWM PULSE, Pulse ON time measuremen​t, Event time measuremen​t1,Event time measuremen​t2

    Hi,
    I am planning to use a single Timer to generate PWM PULSE, Pulse ON time  measurement, Event time measurement1,Event time measurement2 some one please suggest me how can I achive this.
    Thanks in advance..
    Michael

    Hi Michael,
    It would be really good to understand your application a little more so that any specific needs that you have may be met. In the meantime, I would also suggest searching on ni.com for "pwm" or other keywords that relate to your application. You will see a faceted navigation on the left side that allows you to narrow your search for example code, tutorials, etc.
    Please post back with more information and the community will be able to help out with suggestions.
    ni.com search for "pwm"
    Mark E.
    Precision DC Product Support Engineer
    National Instruments
    Digital Multimeters (DMMs) and LCR Meters
    Programmable Power Supplies and Source Measure Units

Maybe you are looking for

  • Please can you clarify this and give me an example ?

    I want to sign up with iTunes connect to publish my books, but there is this section of the contract which I didn't get it is not clear will you please clarify it and give me an example. "Apple shall be entitled to a commission, in accordance with th

  • On a Mac, can you navigate menus with one handed key strokes like Windows?

    On a Mac, is there anyway to navigate menus with one handed keyboard strokes like you can in Windows? My girlfriend is a graphic designer and switched from Windows to Mac. She misses being able to use the Alt key and make menu selections. On Windows

  • What is the Model Number?

    I want to add memory to my macbook, but when I went to Crucial I found that none of their numbers match what I have. I have a 2GHz Intel Core 2 Duo/ Memory 1 GB 667 MHz DDR2 SDRAM. The serial no. is W875**Z65. The box that it shipped in has Model No.

  • [SOLVED] ipod nano 5G 'Failed to generate sqlite database' error

    If you have been experiencing this, it is due to a missing file in the iPod_Control/Device folder of the ipod. Got the solution from this post here Ipod Nano 5G with linux I'll just list the steps here 1. Get the firewire serial id, look for a sixtee

  • Can I run 2 versions of firefox? I need to run older version for one application

    My operating system is mac 10.6.8 and I need to be able to run firefox 3.6.19 for one application & the latest version of firefox for other applications. Can I have 2 versions of firefox on my computer and choose which one to run depending on my appl