Can buffered digital edge detection only be performed using an external sample clock?

I am working on an application where I need to measure the speed (rpm) of a motor as it starts up using the output of its built in hall effect sensor.  The sensor should output 2 pulses per revolution of the motor.  My plan is to count the pulses from when the counter (counter 1) is armed to when it is up to speed. Looking at the M series manual, the CVI (v8.5.1) help, and the examples it appears that this can only be done using an external sample clock.  Is there a way to route an internal sample clock to the appropriate terminal on the counter so that I do not need to add additional hardware?
I am currently using a PCI-6289, but the final application will use a CDaq-9188 chassis (using one of the the built in 32-bit counters).
Thank you for your assistance.

Thank you for your input.
However, I did forget to mention one detail of the application.  I need to buffer the edge counts so that I can graph the speed of the motor as it starts up.  I need to be able to acquire the edge counts at reqular intervals so that I can determine how fast the motor was rotating at each point.  So far I have not been able to find an example of doing this without and external sample clock.  As I mentioned, in the final application I will be using the 32-bit counters on a CDAQ-9188 chassis.  The only thing I can think of at this point is to generate a pulse out of the second counter and use that as the sample clock.  Will this work?

Similar Messages

  • How can i force my mac book pro to use an external display

    how can i force my mac book pro to use an external display
    my screen is black

    What sort of adapter are you using?
    Clinton

  • "External sample clock" and "Rate" for digital input acquisition

    Dear all,
    I want to acquire digital input (21 bits with external clock = 50 kHz) with a PCIe-6343 NI board. Using the  DAQ assistant under Labview, I selected the advanced timing with the sample clock time parametrized as External. However, it is also possible to select the Rate of the acquisition. In my case, i want to get the data at the rising edge of the external clock signal, so at a frequency of 50 kHz.  How can I do that ? I just need to put a Rate of 50 kHz ?
    thanks for your help.
    Cedric 

    Cedric,
    dddsdsds wrote: 
    [...]In my case, i want to get the data at the rising edge of the external clock signal, so at a frequency of 50 kHz.  How can I do that ?[...]
    You answered your question already. If you want to use an external clock, you have to configure the timing source of your task to be external. In order of proper buffer configuration, you should enter 50kHz as rate in addition to the external configuration, but this will not influence the speed of the acquisition (since it is "clocked" externally!)
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Digital external sample clock (C#)

    I am using the PCI-6225 card and trying to generate a pair of pulses using the digital lines and internal clock, but I am getting some odd/unexpected results.  Can someone explain?
    Basically what I want to do is generate a regular pulse over a (configured) set of lines.  The pulse will, typically, be 10ms wide at intervals between 900ms and 1,100ms.  The interval will only change occasionally and is usually 1 second (1,000).
    After looking at the various C# examples I created something like the following
            private DigitalWaveform[] m_digitalWaveform = null;
            private DigitalWaveform m_positiveDigitalWaveform = null;
            m_digitalTask = new Task;
            m_digitalTask.DOChannels.CreateChannel(
                "Dev1/port0/line0", "", ChannelLineGrouping.OneChannelForEachLine);
            m_digitalTask.DOChannels.CreateChannel(
                "Dev1/port0/line1", "", ChannelLineGrouping.OneChannelForEachLine);
            m_digitalTask.DOChannels.CreateChannel(
                "Dev1/port0/line2", "", ChannelLineGrouping.OneChannelForEachLine);
            // etc. ...
            // Repeat for each configured line
            double pulseSampleRate = 1000;
            int numberPulseOfSamples = 1000; // This varies between 900 and 1,100.
            int pulseWidth = numberPulseOfSamples / 100;
            int numberOfChannels = m_digitalTask.DOChannels.Count;
            m_digitalTask.Timing.ConfigureSampleClock(
                "/Dev1/Ctr1Source",
                pulseSampleRate, // 1,000 or anything!
                SampleClockActiveEdge.Rising,
                SampleQuantityMode.ContinuousSamples,
                numberPulseOfSamples);
            m_digitalTask.Control(TaskAction.Verify);
            // m_digitalTask.Done += new TaskDoneEventHandler(OnDigitalTaskDone);
            // m_digitalTask.SampleClock += new SampleClockEventHandler(OnClockSamplePulse);
            m_digitalWriter = new DigitalMultiChannelWriter(m_digitalTask.Stream);
            // Create an array of waveforms (1 per channel/line).  Each waveform being the same with the 1st 1%
            // being up and the other 99% being down.  Set the Timing interval at 1ms.
            m_digitalWaveform = new DigitalWaveform[numberOfChannels];
            m_positiveDigitalWaveform = new DigitalWaveform(numberOfSamples, 1, DigitalState.ForceDown);
            for (int sample=0; sample < pulseWidth; sample++)
                m_positiveDigitalWaveform.Signals[0].States[sampl​e] = DigitalState.ForceUp;
            m_positiveDigitalWaveform.Timing = WaveformTiming.CreateWithRegularInterval(
                                                    new TimeSpan(0, 0, 0, 0, 1));
            for (int channel=0; channel < numberOfChannels; channel++)
                m_digitalWaveform[channel] = m_positiveDigitalWaveform;
            m_digitalWriter.WriteWaveform(false,m_digitalWave​form);
            m_digitalTask.Start();
    1. First of all this only did something if the selected clock source was /Dev1/Ctr1Source.  No other clock would do, even though there are 2 clocks on the board (e.g. /Dev1/Ctr0Source did nothing).
    2. Secondly the waveform timing seemed to be ignored, e.g. leave it out or setting to something other than 1ms made no difference.
    3. Thirdly the pulse sample rate also seemed to be ignored, e.g. set it to 1 or 1,000 made no difference.
    4. Fourthly the pulse seemed to be spread over odd intervals.  Set the integer numberPulseOfSamples as follows
    NumberPulseOfSamples    Interval
    ========================================
    1,000                                9 (ish) seconds
    2,000                                18 (ish) seconds
    4,000                                36 (ish) seconds
    1,500                                6½ (ish) seconds
    3,000                                8½ (ish) seconds
    800                                   7 (ish) seconds
    Setting the number of pulse samples to a low value (500) threw an error (-200016, "device memory underflow") when stopping the task.
    Can someone shed some light on what is going on and how I can get what I want?

    I only seem able to select Ctr1Source, but this may be because (?) I have some clocked analogue input going on at the same time, so perhaps Ctr0Source is busy with this.  Unfortunately, the 2 examples of clocked digital wave forms doing a write use PipelinedSampleClock or BurstHandshake, although there are reads using a "SampleClock".  If you try to run the 2 examples you get an error
    Property: NationalInstruments.DAQmx.Timing.SampleTimingType
    You Have Requested: NationalInstruments.DAQmx.SampleTimingType.Pipelin​edSampleClock (or SampleTimingType.BurstHandshake)
    You Can Select: NationalInstruments.DAQmx.SampleTimingType.SampleC​lock, NationalInstruments.DAQmx.SampleTimingType.OnDeman​d, NationalInstruments.DAQmx.SampleTimingType.ChangeD​etection
    Task Name: _unnamedTask<0>
    Status Code: -200077
    So I guess the PCI-6225 board doesn't support them.

  • Can I buy a device only iPhone 5 using the reservation system?

    Numerous sources including TechCrunch and Cult of Mac are reporting that if you buy an off-contract iPhone 5 on AT&T, all you have to do to get it factory unlocked is restore it. I have an iPhone 4 on T-Mobile and really want to upgrade, and now knowing this, I want to try to get an off contract phone rather than wait for the official unlocked devices. Is there any way I can get a device only iPhone 5 without just walking into an Apple store and trying my luck (or buying one for an exorbitant price on eBay)?

    Apple in UK only sells (by default ) unlocked iPhone 5
    You can then use any nano sim with it
    prices on Apple UK site and online orders now shipping in October
    Get to the front of the queue at an Apple store on Thursday night
    and you may be lucky
    Ony EE will ever support the 5 on 4G network

  • How can i capture 6 differential analog in lines using PFI0 as a clock?

    Alright here's my setup, i've got labVIEW 8.6.1; i'm using a PXI-6259 i've got 7 diff. analog in lines and a parity line sending parallel data into the 6259. I also have a "strobe" line, which is to be used as the clock. When sending the data on the analog lines into the 6259, the strobe will go high when there is valid data, and only when there is valid data. the width of the strobe is 330u seconds with a 170u second low between each pulse. there is a total of 368 pulses. i have the strobe line wired into the 6259 on pin 11 (PFI0). The data lines go valid 15u seconds before the strobe goes active, and remains valid for another 15u seconds after the strobe goes low. I'm trying to capture one sample on the analog-in lines for each strobe, put the values into an array, and translate them into ascii characters based on the data sheet for the piece of equipment i'm emulating. My daqassistant doing the capturing is timing out, and never showing any data out. is it because i'm using a digital trigger with analog diff. inputs? any ideas?
    thanks,
    Kris

    I don't see the connection between your test vi and your actual setup.  If you have equipment sending data and the trigger, your vi only needs to configure one DAQ device.  Your test vi shows and AO and some POs.  Not sure what those are.  Look at the snippet below to see how it should be done with discrete DAQmx functions instead of an express vi.  This way you can see all of the settings.  What are you using for a clock source?  It should be on-board clock.  Make sure your rate is set correctly and your number of samples is set correctly.
    - tbob
    Inventor of the WORM Global

  • I can't move tv show to ipod when used as external drive

    I have been putting itunes purchased tv shows on my 60g ipod as a hard drive untill it stopped working. I drag the show to the ipod icon on the desktop and the plus sign appears then nothing happens. I have 28g free and it's worked fine untill now. I'm just doing this temporarily untill i get a new hard drive for my computer. I only have 13g now. So if I want to buy anything else I have to free up the space and I know that if I just put it on my ipod as a watchable video I can't move it back.
    G3 b&w   Mac OS X (10.4.7)  

    Does this video play in iTunes? How is your iPod configured to sync videos from under its Movies configuration tab in iTunes?
    See this article for more information on syncing videos.
    http://support.apple.com/kb/ht1333
    B-rock

  • X-FI Elite Pro, is the floppy power connector only needed if using the external box?

    I know there is not a lot of chances of getting a reply but I thought I would ask since I just scored the card only for $28 shipped.
    Thanks!

    Hi,
    just thought I'd jump on the band wagon on this one for some advice.
    I have installed a X-FI Elite Pro in my PC running Vista Ultimate (not dual boot) and have some issues.
    . My External box seems dead, the remote will not elicit any lights from it at all. I know the remote is fine because my other PC running Audigy ZS2 Pro's external box goes out in sympathy. Is there an issue with the Entertainment Centre Application, which seems absent from my install. Also When I try to install the app I get the "No IR Devices installed error".
    I understand there are issues with Vista and Drivers.
    2. There are about several different ways to set up for 7. speakers and I am runnoing Gigaworks 7.. The problem I am having here is I'm not getting surround sound. In one setup for speakers each speaker identifies correctly, but in most I do not get sound from rear speakers, and in another I don't get side speakers or rear. It seems they are mapping to front and centres, this also refers to the Sub. Running the Creative Diagnostic reports no errors, yet even it incorrectly identifies the speakers. The system was running fine on my other PC with Audigy ZS2 Pro. How can I resolve this one?
    I really want to give Vista a run before scrapping the whole lot and going back to XP.

  • Can we wrap a RFC as webservice  and use from external java application ?

    Hi Friends ,
                         Our scenario is  call a webservice ( wrapped form of RFC)  from a external  java application  which will pass the input to that webservice and get back the result  .
                          How XI will play a role here ?
                          Can we wrap a rfc as web service  ?
                           Any blogs for that ?
                          Can you please give a brief details about this ?
                          Expecting yoour asap
    Best Regards .,
    V.Rangarajan

    Hi
    Can we wrap a rfc as web service ?
    Yes.
    <i>To use the SAP Web AS 6.40 you need to build a wrapper in the 6.40 system. This is a remote function call (RFC) enabled function module with the same interface or a similar interface that internally calls the required RFC-enabled function module in the old 4.6x system via RFC. The wrapper then can be exposed to the outside world as a Web service. Another option is to use the Integration Broker capabilities for calling Web services in an older system.</i>
    How XI will play a role here ?
    XI will pass the input to the external java application and get back the result to the webservice
    regards
    krishna

  • Can I upgrade from Tiger to snow leopard using an external DVD drive

    I've been trying to upgrade to Snow Leopard from Tiger but keep nothing happens. I keep getting a grey folder with a question mark on it. Can anyone tell me what this means?

    If you have another Mac with Firewire, you can use it's Optical Drive as a big Firewire Optical, put the Install disc in the other Mac, boot the other Mac in to
    Target mode...
    http://support.apple.com/kb/HT1661
    Connect a fw cable, use the Otion key on this one to choose the Install Disc in the other Mac.
    Can I install if I make a bootable copy to my firewire external?
    Yes, especially if you have a small 5 to 9GB Partition, you can use DU to Restore the Install Disc to that.

  • I have a new mac and my old mac had my photos on it how can I get my photos onto iPhoto without using a external drive or flash drive?

    My dad put a new mac in and the old Mac had my photos on it, and I checked iPhoto after it the new computer was plugged in and there was no photos in it, and my dad said that they should be in there but they aren't, so is there a way to get my photos onto the new Mac without the old one and without an external or flash drive? Because a lot of my photos I don't have on my camera because the memory card was full and the pictures that I had already had been on the old mac....
    Thanks!

    Have your dad post de what happened - you need to be at least 13 o se these forums and we need to be able to understand what you are asking
    the basic answer to moving photos is Connect the two Macs together (network, firewire target mode, etc)  or use an external hard drive formatted Mac OS extended (journaled) and drag the iPhoto library intact as a single entity from the old Mac to the pictures folder of the new Mac - launch iPhoto on the new mac and it will open the library and convert it as needed and you will be ready move forward.  but you say you do not have the old computer
    Unless  you have a backup or there is more information the answer is there s no way now
    LN

  • Using an internal sample clock with a digital input

    I am using an encoder to measure angle and velocity. The example that I have started with is here. https://decibel.ni.com/content/docs/DOC-6834. The problem I am having is with the Sample clock, I get a timeout at the DAQmx read. If I remove the sample clock the VI runs fine, but I have no idea of my sample rate. Below is the the problem setup with the Sample clock inline.
    Attachments:
    encoder with timer.JPG ‏50 KB

    Hi there, a couple suggestions: first , this is a post that it is suppose to be on the DAQ board. Second, you are not being clear about the error, try to include the error code, description and its location, is it coming out of the channel node or the timing VI? Also what hardware are you using?
    Now, If you open the example called "Measure Angular Position.vi" from the NI example finder, drill the DAQmx Create Channel, you will see that you are missing a couple terminals for the task configuration, I wonder if this is part of the error.
    Alejandro | Academic Program Engineer | National Instruments

  • Sample Clock from Numerical Position Output of Digital Encoder

    Hey everyone,
    I'm trying to sample a voltage (pressure inside an engine) with my NI USB-6212 against a rotary encoder position (crankshaft angle). For some brief background, I'm using a producer/consumer structure and my rotary encoder has proprietary VIs from the manufacture to interface. It's from US Digital and it's an HD25A. It makes the most sense to use my rotary encoder as a sample clock so I wind up with a sampled point of pressure data for each crankshaft angle. This makes it far easier to average pressure traces together and work with the data.
    I've found quite a few threads on this (links at the end of my post) but they all rely on having a pulse output from the digital encoder which is then wired into a counter input on their board. I don't have a pulse output, my encoder is outputting a numeric value between 0 and my chosen resolution (currently 3600, so 0 to 3599).
    My question is how can I take this changing numerical output and make a sample clock pulse for each time the value changes? Does this need to be turned into a task to use as a sample clock? I'm essentially using the data acquistion program from the example program Cont Acq&Graph Voltage-Ext Clk.vi.
    Thanks in advance for any help you can lend me and my apologies if I missed a prior thread on this topic. My search-fu wasn't able to turn anything up.
    Some relevant links I found, though I couldn't quite make enough sense of them to get the fog to lift:
    http://forums.ni.com/t5/Counter-Timer/How-to-reset-a-counter-on-external-signal-in-LabView/td-p/1521...
    https://decibel.ni.com/content/docs/DOC-12106
    http://ni.lithium.com/t5/Multifunction-DAQ/Rotary-encoder-data-acquired-simultaneously-with-analog-i...

    I don't think there is anyway you are going to make this work like you think you can.  The US digital encoders I have worked with and their VI's were based on reading the current encoder count through a serial port connection.  To do what you want, you are going to need to read the encoder every time the count changes.  At 216 kHz, a serial connection is not going to be able to do that.  Even if it could, you would essentially still have some latency between when the count changed and when the VI would be able to request a reading and get a response that showed the count had changed.
    You need to use an encoder that has a digital pulse output that you could use as a sample clock on a data acquisition card.

  • How can I do a buffered digital acquisition on a single line?

    I am using a NI PCI 6110 DAQ and I need to do a continuous buffered data acquisition (sample rate near or above 5 kS/s). The thing is, the acquisition must be done on a single digital line. Some other lines of the digital port are used for something else (some in write mode, others in read), so they have to remain unaffected by the process.
    It would certainly be better if it could acquire data at the same speed as an analog input (which will be executing at the same time). In fact, it would have been much easier to only add a channel to the AI and I would have got exactly the results I want, but all the AI (4) of the board have already been used .
    The picture I uploaded shows what I'm tryi
    ng to do: I acquire analog data and I want to automatically show the moment a deconnection occured. The purple/pink line, which I added manually, is the one causing me trouble. It shows the voltage (0-5V) of the relay doing the deconnection (that's why it have to be done at the same time than an AI data acquisition).
    Thanks for reading this to the end
    Attachments:
    Graph.jpg ‏55 KB

    Well, you can't get hardware-timed DIO with the 6110, but you can probably use its counters to capture the timestamp you need.
    One method would be to set up a buffered edge-counting task. The analog input's sample clock would be specified as the source signal. This will cause the counter's value to increment at the beginning of each sampling cycle, acting as a measure of time from the start of analog input.
    The falling edge of the relay signal would be the counter's gating signal. For each instance that the relay disconnects, the count value ("time") at that instant will be stored in the counter's buffer for subsequent retrieval.
    Note one small timing subtlety: while the very first sample clock edge puts analog data into the 0th array inde
    x, it will also be incrementing the counter time to 1. This off-by-one deviation will persist.
    There are other variations on this theme, depending on whether you also need to capture re-connection times, or whether there is always one and only one disconnect of interest, etc. You can likely get just the behavior you need using one or both of the on-board counters.
    -Kevin P.

  • Retriggerable buffered counting edge task

    Dear all,
    I have been working on "Retriggerable buffered counting edge task" on a single counter input channel, let me describe what I want to achieve:
    Create a CI to count finite rising edges with external sample clock (eg. Dev1/di/SampleClock) at certain sampling rate, and set CI.edge.Term at one PFI which is hardwired to another digital input channel. Furthermore, I'd like to set "retriggerable start trigger" to this CI by another PFI line.
    It turns out that I can only set "arm start trigger" on this counter input channel, instead of "start trigger" since the error of 200452: attribute not supported in task context showed up at configuring digital edge start trigger. It seems that I can only set "retriggerable start trigger" on counter output task, and use two counters to achieve above, but I was wondering if there is a way to accomplish by single counter. Any suggestion is highly appreciated.
    Solved!
    Go to Solution.

    Dear John,
    I just tried and run into another issue with overflow. The idea is to synchronize this counter with finite DI and to read both buffers out when DI's buffer is filled. Since I am running CI in contineous mode, it seems to be reasonable to run into overflow on buffered CI after a couple of triggers; Error: -200279 when trying to read CI buffer. Is there a way to skip/ignore overflow but still read buffer with size that I specified at attribute of SamplePerChannel? or any better idea of design to achieve what I am trying to do? I was wondering how effective it would be by increasing buffer size to avoid overflow since no known pattern on the trigger signal.
    Really appreciate your help. Thank you.

Maybe you are looking for

  • IWeb link opening in a external (new) browser window.

    Dear members: After making several unsuccessful attempts to find this information I decided to post a questions here to see if anyone has the answer. I have created two web site with several web pages in iWeb but haven't been able to add links to a p

  • DynPage - Runtime error in Portal

    Hi Have the following code in a DynPage application. public void doProcessBeforeOutput() throws PageException { ... other code here IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest(); com.sapportals.portal.security.usermanag

  • MiFi 4510L Is USB just for software?

    I just received a new 4510L and there was a USB cable that came that said right on the bag.  "The USB cable is only for software upgrades."  No real mention in the literature.  Question is if it is connnected, will it charge/draw power off of the com

  • Cannot select Us Europe Asia options on yahoo finance home page

    The web page is finance.yahoo.com Cannot select the US Europe Asia options on this page. The cursor should show a hand with pointing finger when hovering over these areas but does not change from normal cursor shape. This problem first showed up toda

  • Can't install Acrobat X on my Windows 7 ?

    I have bought Indesiign package with AcrobatX. All the other programs are installed but I have problems with AA X