How to sync. 50Hz sample rate with 5Hz external digital trigger signal?

Hello there,
I want to sample an analog input at 50Hz, where I further want to use
the 5Hz PPS signal of a GPS receiver as an external trigger/clock
signal for the NI DAQ USB-6008 device. However, I do not want to read
10 samples every 200ms (= 50Hz avg. sample rate), but I want to read 1
sample every 20ms, i.e. with "real" 50Hz.
The "natural" way, it seems would be to use a task that waits for a
rising edge on the ext. trigger input, then reads 10 samples, then
waits for the next trigger edge, and so on.
However, it seems that with this approach I cannot read the data from
the DAQ with real 50Hz, further it seems that every 10 samples the task
needs to be restarted, which takes longer than the 20ms (corresponding
to the 50Hz target sample rate).
I hope the problem description is clear enough....
Thank you in advance for any advice.
Regards,
Oliver

You have to use the counter together with the analog input to achive this. You could configure the counter to generate 10 pulses with 50 Hz whenever the counter sees a rising edge on the inpput of the counter. The output of the counter would be used as the external clock for the analog input.

Similar Messages

  • Converting Units in LabView and specifying sampling rate with Universal Library functions

    Hi,
    I am having trouble converting units in LabView 7.0 and having it write to a file / output on a chart in Nm instead of in volts.  I can't seem to find any straightforward instructions, eventhough it seems like a simple task. 
    Another task that would seem rather simple is changing the sampling rate with the XAIn program from the Universal Library for LabView (this is version 5.40).
    If anyone could help me out, I would greatly appreciate it - I have tried other sources without much luck!
    Thanks
    Jenna

    Are you really needing to change units or do you need to scale the voltages read from your sensors? If it's scaling, it would be trivial to set this up in mAX or with the DAQ Assistant if you were using an NI board. Since you are not, then you could use the Scaling and Mapping Express VI. The y axis of a chart is just a label. You can use the text tool to change it to anything you want.
    I have no idea how to change sample rate for your board. Have you asked the vendor?

  • How to coerce the sampling rate??

    I think I found my problem with sampling rate.
    I'm using a PCI-5122 scope card, and in many of my aquisitions, I'm setting the sample rate to 40MS/s. Apparently, this is not a valid number and the scope reverts to 50 MS/s
    Later when I try to calculate cycles per second based on cycles per sample, I need the actual sample rate, and 40 MS/s ain't it.
    I'm trying to coerce sampling rate.
    please,.

    The digitizer coerces the sample rate because of how the sample clock is derrived from the Reference Clock.  The following information is on page 13 of the specifications:
    http://digital.ni.com/manuals.nsf/websearch/C6B059C1BDD70101862574C8005567F1
    The sample clock is created by dividing down the Reference clock (internal reference clock is 100MS/s) by decimation, and it divides it by N, which is an integer between 2 and 65530.  
    Thus 50MS/s uses a decimation factor of 2, and 33.3MS/s is the next valid sample rate with a decimation factor of 3.  So when you specify a sample rate that is not possible, the driver automatically coerces the requested sample rate up to the next valid rate.  You can obtain the actual sample rate used in an acquisition using the NI-SCOPE property "Actual Sample Rate", or the LabVIEW VI "niScope Sample Rate.vi".  Using this property, you can get the values you need for your calculations.
    I hope this helps!
    Nathan
    Product Support Engineer
    National Instruments

  • Don't know how to sync music on mac with iphone and ipod

    don't know how to sync music on mac with iphone and ipod
    need to also know how to recover original library of ipod as it seems as though
    it has now sync'ed with iphone & lost all my music

    Start HERE

  • Does anyone know how to activate siri with a button on a 2011 Chevy Silverado that has blue tooth.  Also I'd like to know how to sync my iphone contacts with this same truck.

    does anyone know how to activate siri with a button on a 2011 Chevy Silverado that has blue tooth.  Also I'd like to know how to sync my iphone contacts with this same truck.

    Hold down the mute button on the steering wheel until you hear,"Ready" and then say "Voice". That will bring up Siri.

  • How can I continuous​ly streaming data to disk with 1MHz sampling rate with PCI 6110?

    I can only save 3 seconds data with 1MHz sampling rate using PCI 6110. Is it possible to continuously save longer time data (say 1 minute)?
    Many thanks

    if the binary file is big the ASCII file is very very very big.
    1 measurement is coded in a I16 => 2Bytes ( 4bit is not used 611X is 12bit
    card)
    if you use +/-1V range the quantum is (2 * 1V) / 4096 = 0.0004883V or 0.4883
    mV you need to use 8 digits minimum.
    And If your binary file is 1 Mo your ASCII file is 4 Mo.
    You can use this VI for inpiration you need to add the translate I16 to DBl
    to make a real value before saving.
    For Help you can mail inthe newsGroup.
    I'am a french user and my english is not good Sorry..
    Fabien Palencia
    Ingenieur d'etude ICMCB CNRS
    "StephenZhou" a ?crit dans le message de news:
    506500000005000000A5AF0000-1031838699000@exchange.​ni.com...
    > Hi, Fabien Palencia
    >
    > The program is great.
    Do you happen to know how to convert the big
    > binary file to ascii file? Thanks
    [Attachment recup data I16.vi, see below]
    Attachments:
    recup_data_I16.vi ‏57 KB

  • How is Core Audio sample rate set?

    When I play a particular movie in QuickTime, the audio and video are out of sync. The movie plays fine on other computers.
    This Mac Pro (OS 10.6.8) is used exclusively for Pro Tools and Final Cut Pro. The audio hardware is a Pro Tools HD Native card:
    Native card --> Pro Tools Digital I/O boxes --> Lavry D/A converters --> monitors
    The sample rate of the Digital I/O boxes is set by an external master clock, a Lavry Gold A/D converter.
    I opened the DigiDesign Core Audio Manager and it says:
    Connected @ 44.1K, 32 In/32 Out, Buffer Size 512
    Yet the movie is at 48K (I know because I created it in Final Cut Pro), and the external clock is set at 48K. So, I don't know where the 41K in the Digidesign Core Audio Manager came from. This is why I am guessing the problem is sample rate.
    Please help me understand what sets the sample rate.
    Does the application using Core Audio set it?
    If so, how is this made consistent with the sample rate set for the hardware by the external master clock?
    Do I have to be sure I always change the external clock setting to be consistent with the movie being played?
    BTW, I have not had a sync problem when I play video in Final Cut Pro..........it is always in sync. So, I have never worried about how Core Audio works. The sync problem is only with QuickTime.

    You might ask on the GarageBand, Logic or Final Cut forums. There is not much audio traffic here.

  • How to know the sampling rate for NI6624?

    Dears,
    I am trying to measure a transient signal that is a time-vary counter train.  The target frequency is increased from 0 Hz to 50 Hz when the measurement time rises to 1 s from 0 s.  The NI 6624 card and the LabVIEW DAQmx have been adopted.  In the block diagram, the terminal of measurement method “Low Frequency with 1 Counter” is set in “DAQmx Create Channel (CI-Frequency).vi”, and the “Finite Samples” mode is chosen in “DAQmx Timing (Implicit).vi”.  Then the transient signal points (increasing-frequency points) will be got successfully within 1 s.  Now I have a question: how do I estimate the time step “dt” between these data points?  Knowing the default sampling rate of the card seems a better way to help me to define the "dt", and calculates the time stamp at each data point.  If the foregoing concept is true, how the internal sampling rate in NI6624 obtains?  Beside, for the transient counter signal, any way to get the time stamp of data points is also welcome.
    Thanks for anyone comment,
    Adan

    Adan,
    When selecting "Implicit" as the DAQmx Timing type, you are indicating
    that a data point will be taken for every measurement the counter
    performs. When you create a task of type "Low Frequency with 1
    Counter," the counter simply uses the card's internal timebase to
    measure the period between edges of your signal. It then takes this
    period measurement and converts it to a frequency. Therefore, the
    spacing between the samples you read out is simply the inverse of the
    subsequent frequency measurement sample.
    Hope this helps,
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • How to store the sampling rate into the header of the data file?

    I want to store the data parameters such as sampling rate to the data file. Now I am using the Write Labview Measurement File VI, the data is saved, but like the sampling rate this kind of parameter is not in the file. How can I store this parameter?

    If you want the sampling rate to appear in a different location of the header, then it and it's subVIs can be modified to write anyway you want. Right click on the Express VI and slect Open Front Panel. Then you have a VI that can be modified. If you want to use an unmodified Write LabVIEW Measurement File, you could use that, read the whole file back in with one of the file read functions, insert a string with the sampling rate and then write the whole thing back out again. It might be simpler though, to use Write Characters to File to create your own header and then use Write to Spreadsheet File to write the data. There is also the function Export Waveforms to Spreadsheet File on the Waveform>Waveform File I/O. This uses a slightly different format than a .lvm file. It too can be modified if you don't like the default header.

  • The whole audio sync/weird sample rate/drift issue (FCP6)

    I can tell this question is doomed to fail on account of viewing the other unanswered questions on the subject in the forums, but I'll try nonetheless!
    So yeah, importing longer DV clips....audio rate winds up being 'weird' (as in 48003.9kHz instead of 48). Any way of straightening that out that doesn't require a buncha hoops? I've already tried re-exporting it from QT at 48kHz and a few other things. Do I just have to capture in separate chunks instead of one big go?
    I found a doc that says, "In previous versions of Final Cut Pro, the "Sync Adjust Movies Over [n] Minutes" option could be enabled in the preferences, triggering an adjustment in the audio sample rate based on the amount of audio recorded to disk during capture. In Final Cut Pro 4 [and up, I'm guessing] this preference has been replaced by automatic audio rate analysis, specific to DV media..."
    Apparently this rate analysis ain't working as well as it should...or something...
    Anyone?
    Thanks,
    E

    If your footage was shot with the Panasonic dvx100 camera, there is a known audio sync issue. You can install a patch from disc 1 of the FCP install discs inside of the "extras" folder. I've had this problem from time to time and I capture DVCPRO 50, so it's not just a mini DV issue. I usually get an audio rate slightly below 48, like 47.89999 or so. Are you using capture now? I used to get this problem a lot more when using capture now as opposed to log and capture. My solution has always been to always use log and capture and keep clips 15 minutes or shorter. I've tried trashing prefs and all that jazz, swapping out hard drives, but log and capture and shorter clip lengths always seem to clear it up.

  • Low sample rate with NI USB-6008

    Hello,
    We are working on a project collecting data from a hybrid rocket motor for
    University research. We are using a NI USB-6008, which has a sample rate of
    10kHz. We are using 3 channels and getting a sample rate of ~60 samples per
    second. I have attached the VI. Is this slowed by software, or physical
    computer computation speed? This sample rate needs to be much higher. Any help
    is greatly appreciated.
    - Theo
    Attachments:
    Hybrid DAQ_10.vi ‏73 KB

    Hi Rocket 154,
    You’ve already had some
    great responses, but I just wanted to add a little bit. A great starting point
    to writing good code would be the Getting Started with NI-DAQmx: Main Page,
    as well as the shipping examples (In LabVIEW, Help » Find Examples) already
    mentioned.
    If you navigate a bit
    through the links (Basic Programming with NI-DAQmx » Getting Started with NI-DAQmx
    Programming in LabVIEW) you’ll end up with some great resources. I recommend Learn
    10 Functions in NI-DAQmx and Handle 80% of your Data Acquisition Applications.
    It will detail many of the functions you can use and give you a feel for proper
    code style in LabVIEW.
    I hope that helps.
    Mark E.
    Precision DC Product Support Engineer
    National Instruments
    Digital Multimeters (DMMs) and LCR Meters
    Programmable Power Supplies and Source Measure Units

  • [Q] How to set the sampling rate separately?

    Hello,
    I'm using LV5.1 in Windows98 with SCXI-1200.
    I want to set different sampling rate in each input channel.
    I've ever used "AI acquire waveforms.vi" only.
    Anybody can help me?
    Example codes are highly appreciated.
    Regards,
    Hyun-ho Lee
    [email protected]

    The inputs of the SCXI-1200 are multiplexed to a single Analog-to-Digital converter. Because of this, the only difference in sampling rates that are achievable would be integer divisions of a common high frequency. This is functionally identical to acquiring all channels at the highest rate, and decimating (throwing away) data from channels that need lower data rates.

  • How to sync outlook 2007 calendar with Iphone 4?

    How do I sync my outlook 2007 calendar with my iphone 4? It used to happen, now it won't work. Thank you.

    Howdy there Connie,
    If your Outlook 2007 is still not syncing to your phone I would like to recommend the following article to help you troubleshoot the Sync Services between your the two devices, named:
    Troubleshooting Sync Services on Windows with Microsoft Outlook 2003, Outlook 2007, or Outlook 2010
    First backup your data, THEN proceed with the articles troubleshooting step by step until it is resolved:
    Back up your data
    Refer to this Microsoft article for steps to back up the data in your PST file used by Microsoft Outlook 2003 or Microsoft Outlook 2007. This Microsoft article explains where the Microsoft Outlook 2010 data files are located.
    For information about backing up the data in your OST file, contact your Exchange Administrator. Your OST file should be on the server and backed up when the server is backed up.
    Before troubleshooting, it is recommended that you make a copy of your iPhone, iPad, or iPod touch backup in a safe place. For more information about where to find the backup and what information it contains, refer to About backups.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • FMLE won't let me set the sample rate with Blackmagic Decklink Studio 2 (Windows)

    Hi,
    I am trying to set the audio device on FMLE to the Decklink Studio 2's audio inputs. However,
    the sample rate sticks to 44.1k and I can't change it to the 48kHz sample rate that
    the Decklink defaults to (standard for broadcast is 48k).
    Try as I may, it isn't changeable. I seem to remember a similar problem where the
    sample rate defaults to the system audio card (on the motherboard) which is at
    44.1.
      Any ideas on a work-around? The audio from the Decklink is *much* better than
    the built in card.....
    thanks
    jeff

    One thing you might try doing is trashing the preference file in your user directory:
    ~/Library/Preferences/com.apple.compressor.Compressor.plist
    Like repairing permissions, this is a bit of a "catch-all" fix, not something specific to this particular problem.
    Also, have you tried different file types like: TIFF or JPEG, there could be an issue with output from Fireworks. You could use QT Pro to transcode the file. Sometimes that can work to fix funky problems.
    Does the Text Overlay filter work?
    BG

  • Error Msg.: "Inconsistent Audio Sample Rate" with Flip4Mac

    If you're using Flip4Mac to produce WMV files, the latest QT updates will create a conflict with Flip4Mac, which produces the error msg. referenced in the subj. heading above.
    If you're using Flip4Mac, you may want to wait until Telestream resolves the issue before upgrading QT.
    More info is here: http://www.flip4mac.com/knowledge/kb_0070.htm
    and here: http://forum.flip4mac.com/forum/messageview.aspx?catid=10&threadid=270&enterthre ad=y
    MacPro, MBP 17in (2 GB RAM), PB G4 15in, PB G4 12in, iMac G3   Mac OS X (10.4.9)   Loyal to Apple since the Apple ][+

    Just in from flip4mac support:
    The recent release of QuickTime 7.2 created an audio compression error for Flip4Mac WMV Studio, Studio Pro and Studio Pro HD customers. Specifically, when encoding WMV files with Flip4Mac WMV v.2.1.2 using uncompressed audio sources on QuickTime 7.2 systems, customers were receiving "Inconsistent Audio Sample Rate" error and the encode will fail. This problem has been resolved with the beta release of Flip4Mac WMV v2.1.33. If you are using QuickTime 7.2, please upgrade to this release at http://www.flip4mac.com/wmv_beta.htm

Maybe you are looking for

  • Budget in Training and Events

    Hello, I'm trying to configure the budget in training module. I will not have integration with Billing and Materials Management so I only want to create a Budget and have always the budget comparison, this means to compare the budgets created for eac

  • Creating a new site has become more obscure....

    So, on one of our site collections, I needed to activate the publishing features so that some navigation mentions that were available in sp 2007 worked under the new sp 2010 ribbon. That seemed harmless enough. Today, however, a site admin contacted

  • Regarding  Collective Documents

    Dear All,          I have to create One Commercial Invoice with reference to more than one order, how it is possible.Also PO nos are differents.          Also i have to create one order with reference to more than one quotations.          one Invoice

  • Delivery Address for each line item in PO

    Hi Experts, My client has an issue, In a perticular PO print out he is geeting delivery address on each line items? How to resolve it? Meh

  • A short GUI question????

    Hi guys... I am writing a small program that reads a file in .csv format and creates a html file which is used to display the data contained in the .csv file out in the browser. My question is how do you invoke the html file so that you get the html