Acquiring a sine wave of 1KHz riding on a DC and Detecting its peak value through compact rio

Dear LabView Programmers,
We are trying to acquire a sine wave input through cRIO-9004 using I/O module cRIO-9215 which is a 16-bit ADC.
We are able to acquire sine wave below 100Hz faithfully but not higher frequencies, the higher frequencies(1Khz) get distorted. How to acquire this sine wave of 1Khz faithfully through the above mentioned hardware.
Regards
LabView Lovers  

Using LabVIEW 8.0, you will need to place the data from the 9215 into a dmaFIFO buffer, such that you do not need to poll the 9215.  It is the polled or the interrupt process that reduces the sample rate. 
Hope this helps. 
Preston Johnson
Principal Sales Engineer
Condition Monitoring Systems
Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
National Instruments
[email protected]
www.ni.com/mcm
www.ni.com/soundandvibration
www.ni.com/biganalogdata
512-683-5444

Similar Messages

  • Acquire sine wave

    Hello,
    I'm trying to acquire a sine
    wave from my com1 via rs232. I don't have a DAQ, and that's where it's
    causing problems. I have a sine wave of around 200 hz going through an
    rs 232 cable into my computer. The frequency will shift between 0 and
    200 hz. I pretty much have tried looking everywhere but all of the
    solutions seem more complicated than they should be. I'm using LabVIEW
    8.2.1.
    I will upload my VI so you can see. In the end, I want to
    replace the "simulate sine wave" with the acutal sine wave coming from
    the RS232. It's an analog sine wave.
    Attachments:
    qcm.vi ‏98 KB

    I might be confusing analog and digital. My english is very bad especially when it's technical, and yes I have absolutely no academic background in either subjects.
    The signal coming in is in the form of a sine wave, and the sine wave is coming from 2 oscilators, which are oscillating at 9.2 megahertz and are powered by 9v batteries. One of the oscillator wires travels through a crystal which causes the frequency to shift. Then both of the wires go to a mixer, and the frequency coming out is the frequency difference between the sine waves. This frequency will always be between 200 hertz and 0. I have that connected to an rs232 which is connected to my computer.
    I can convert the signal to TTL if it comes down to it. I'd just rather not.

  • How to measure relative phase of several sine wave inputs

    I'm using a USB-6229 to acquire 10 sine waves, and I would like to output their rms amplitudes and relative phases.  The rms amplitude is not a problem, but I wasn't sure how to go about determining the phase of one signal relative to another.  Do I need to use the Frequency Response analysis step?  Thanks.

    Hi,
    There are some functions you can use to measure the relative phase. You can either measure the phase of every signal related to another one using like you said: a frequency response function step. Using one of these to functions might do the job: “Frequency Response, Express VI” or “Frequency Response Function (Mag-Phase).vi, if you are working in LabVIEW. The first one of these functions "Frequency Response" is also found in signal express and is the one I think you are refering to.
    Although this functions is use for a stimulus response approach they will give you the relative phase of Y with respect to X, “Typically, time signal X is the stimulus, and time signal Y is the response of the system.  in signal express your options is the frequency response step.
    I would also like to point you to some references that might serve you as reference when doing spectrum analysis: An Overview of Frequency-Domain Measurements and FFT Analysis.
    Message Edited by Jaime F on 02-06-2008 11:42 AM
    Jaime Hoffiz
    National Instruments
    Product Expert
    Digital Multimeters and LCR Meters
    Attachments:
    frf.png ‏37 KB

  • Generating a 6X Sine Wave using an absolute encoder

    How do I get an Analog Signal Generation Synchronized to six times the frequency of an absolute nine bit parallel encoders output with adjustable phase relation. I am using a PXI-6533, a PXI-6711 and have available a PXI-6070E.
    Now the long version of the problem. I have a 9-bit absolute encoder connected to a motor shaft (up to 420Hz). From the encoders 9-bit (0-511) parallel signal I need to create a synchronized 6X sine wave (up to 2500Hzwith an adjustable phase relation. Picture an electronic timing chain. For every cycle of the encoder, I need to produce six full sine wave cycles with a variable tuned phase shift. I have LabView 7 w/RT.
    I have tried to use the Update Clock (PFI5) to step through a buf
    fer but it seems to drop an update every so often. I also have tried to monitor the bit-0 line to determine freq. and scaled the update rate accordingly but the phase shifts all over the place. Does anyone have any ideas on the matter ? I would really appreciate it! Thanx….Phil

    Phil,
    Another different option to solve your application would be to use the new LabVIEW FPGA module and the 7831R reconfigurable I/O hardware. Using these tools you can configure the FPGA on the board to generate the sine wave based on the 9-bit parallel input. The most simple setup would be to have a lookup table in the FPGA that has a corresponding output value to each of the 512 possible input values. This 512 sample table would contain 6 cycles of a sine wave. Every time the parallel input changes the analog output value would be updated accordingly from the lookup table. This setup would also allow to easily add a phas
    e shift of the output by shifting the point in the lookup table you are reading by a known constant.
    Christian L
    NICS
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Outputting sine wave to motor -- While loop placement?

    I'm having trouble creating a basic Labview program to drive a motor with a sine wave. I'd like to output one sine wave at a time to my motor and look at the response to eventually get a Bode plot. I'm using the Sine waveform VI and I've got a PXI-7358 controller card.
    I'm having trouble figuring out what goes in the while loop. I'd like to output, for example, a 10Hz sine wave to my motor. But when I create a VI as shown below (& attached), my output waveform frequency is nowhere near my input frequency. When I type 10Hz I get no movement out. At 10.01 Hz input the motor oscillates at a few Hz, and at 10.1Hz input the motor oscillates wildly. I don't think it's a problem with my motor or my PID settings, because even when I eliminate the motor commands altogether (second figure below), I get the same unpredictable relation between the frequency I type in and the Waveform graph.
    It seems that the output waveform depends on some sort of difference between the while loop execution rate and the PXI-7358 command generation rate. It seems to me that the Sine Waveform.vi should be outside the while loop, but in that case the Load Position.flx only seems to grab one position. Is there a good way to have direct control over output frequency of the sine wave?
    Attachments:
    one_axis_move11.vi ‏20 KB
    one_axis_move12.vi ‏12 KB

    matthewg,
      Dennis is right, let’s keep this to one forum since it is the same topic of discussion, and I will address some of the issues with your code there.
    Chris_G
    Sr Test Engineer
    Medtronic, Inc.

  • Sin wave generation for R series FPGA

    Dear All,
    I am generating sin Wave with (FPGA Sin Wave Generation Express vi) from Rseries FPGA Target.Frequency range is from 1500Hz to 3000Hz.Frequency and Amplitude parameters are coming from Host .Wave is going to an AO.The wave is not displaying in my Host with the set parameters as required.
    What am I doing wrong??
    Certified LabVIEW Architect
    Certified TestStand Developer

    Hi,
    I am using NI 9263 4x AO.the problem was with the FPGA Express vi Parameters used the example sin wave Generation from the FPGA fundamental folder and modified the Host parameters to meet our requirement and it worked fine.
    Thanks
    Certified LabVIEW Architect
    Certified TestStand Developer

  • How do I simulate sine waves up and down several triangular waveforms?

    I need to simulate a number of sine waves at about 10 or 20 Hz and run these up and down a number of triangular waves. I am using the "Simulate Signal" box which generates the sine waves but am not sure what or how to connect to this to "ramp" the sinusoidal waves up and down triangular waves. The triangular waves would run at about 1 Hz.
    thanks
    Martin

    Martin,
    It seems as if you could use a second "Simulate Signal" VI, set it for a triangle pattern at your desired frequency, and then add the resulting waveform to the sine waveform. If I run that in a loop, I get a nice ramping sine wave (see attached image).
    Hope it helps,
    John
    Attachments:
    triangle_sine.png ‏8 KB

  • Creating a Sine Wave Chart with Continue if True

    Hello, 
    I want to create a simple sine wave chart using a while loop and using the continue if true mode. I want to use a Not icon to accomplish this. I also need to have a stop button that a user can press to terminate the process. I have attached my initial sine wave chart using the stop if true and my attempt at accomplising the continue if true. 
    Thanks for any help! 
     

    It sounds like you want the loop to continue if the stop button is NOT pushed.  Does this give you a hint about how to write your program?

  • Capturing min and max of a func. generated sine wave

    I need to identify (in real time) the min and max values of a continuous sine wave (whose amplitude may vary). I need to capture the value of each min and max and the time of each such occurrence.

    If the sine wave is in the form of a waveform data type, then all you have to use is the Waveform Min Max function. This does all that you want including returning the time values. There's even an example under Help>Fundamentals>Waveforms>Waveform Operations.

  • How do i measure the frequency of a sine wave using a field point counter module

    I need to measure the frequency of the sine wave using field point. is it possible and if yes how. do i need to convert the sine wave signal to square wave. Please let me know.

    It probably would be easiest to convert the sine wave to a square wave with a simple external circuit and then use a counter module to measure the frequency. There is a shipping example in LabVIEW that shows how to measure frequency with a FieldPoint Counter module.
    JRA

  • Please help simulation synchroniz​ing dual sin wave using PLL labVIEW

    Hello,
    Please I want a simulation based on Lab view for synchronizing generators, as we know that the generator will generate a sin wave.
    If anyone can help me with this idea the simulation can be done using to input sin waves and synchronized with each other using PLL (phase lock loop), note that the generators will be synchronized if the frequency, phase angle and voltages are equal ( synchronized). Please if somebody has simulation based on this idea to help me with it.
    THANK YOU A LOT.
    I will appreciate it.

    Iam new on LV. what i want a simulation to synchronize two generators, the two generators will generate sin waves this sin waves will be compared to achieve synchronization its better to use PLL but i have no idea where to use it in this such simulation.
    The below attachment will discuss more what i want but it it can be editted instead of using two generators from outside is to put to sin wave and prove that when this two sin wave are not equal so synchronization faild and vice versa.
    no need for the DAQ it can be replaced by an oscilscope to see the two sine waves that are synchronized, any one can help me by this simulation  i will bs very thankful for him.
    THANK YOU ANYWAY  
    Attachments:
    paralleling.jpg ‏145 KB

  • Measure Every Peak Value Sine Wave

    Hi 
    I have a sine wave that has an average peak to peak value of 1.2V. The sine wave has a dc offset of around 2.5V. Each cycle in the sine wave varies in width. 
    I can feed the signal into the express vi to tell me the maximum Positive pulse peak value and minimum negative peak value. 
    Unfortunatly i would like to measure the Maximum and Minimum Positive Pulse Peak value and Maximum and Minimum negative peak values. 
    Im a little bit lost on how to do this. 
    the frequency of the signal is around 10-20 hz. 
    If i could get the Postivie peak value for every cycle and negative peak value of every cycles stored in two seperate 1d Array i could then search the 1d array for maximum and minimum. Problem is i am unsure how to find each indiviaul peak value. 
    i have attached my code. I am using at 9229 to monitor the signal. I am sampling at 10000 samples per second and recording about 2 seconds of data.
    Thanks 
    Attachments:
    Sine Wave Hystersist Calculator.vi ‏88 KB

    I tried using the you put into the VI and unfortunatly it doesnt work. Im using a 20hz sine wave. I have set my threshold to be the dc offset of the signal so around 2.5V but this changes by around 20mv each time. 
    I have uses an Max and Min array function. It chucks out the highes Peak amplitude but the lowest peak amplitude is incorrect. It counts that there is over 2000 pulses, but that is impossible as there is only 20 high pulses. 
    Any more ideas or help would be great. 
    Attachments:
    Sine Wave Hystersis Calculator.ldj (1).vi ‏109 KB

  • Acquire sine wave from DAQ

    Hi
    I am using DAQ to acquire sine wave from function generator to determine the fringes, phase and wavelength.
    How can I build this VI?
    Thank you

    Mostly like the phase is being reported
    from 0 to 180 or 0 to -180.  There is a VI to unwrap the phase.
    I took a look at your code and I am a
    bit confused about what you are trying to do. 
    Right now it looks like you are gathering 100k samples at a sampling frequency
    of 200k in a finite acquisition.
    In your code, each iteration of the For
    loop takes 100k samples and finds the number of peaks.  The Extract Single Tone Information.vi finds
    the tone with the largest amplitude in the 100k samples and returns the
    amplitude and phase.  The phase in this
    case returns the absolute (start) phase of your detected sine tone, that can
    also be viewed as the phase relative the beginning of your signal (in this case
    the beginning of the 100k samples).
    On the next iteration, the code takes a
    new set of 100k samples and calculates the same information (again the phase is
    based on the start of this new set of 100k samples).
    What is your ultimate goal?  To continuously acquire data, find peaks and their
    phase relative to the first sample collected? To acquire a finite set of data,
    and find the phase of each peak relative to the first sample?  Get the relative phase between two different
    peaks?  What are you using the phase
    information for?  Are you using the phase
    to count the number of cycles?  What kind
    of signal is coming from your signal generator?
    To compare the phase to the first sample
    you will need to use some comparison vi’s as mentioned in another post.  Shift registers can be used to keep a “running”
    total of the phase from the first sample.
    Jared T.

  • Simultaneous analog output 1k sine wave and data acquisition

    Although many topics of simultaneous analog output and input can be found in NI Developer Zone, I have not found a case similar to my project. I'm trying to generate a 1kHz sine wave by using the analog output of NI DAQPad-6070E, and acquire one channel input signal simultaneously. I found most of the examples can not work properly above 100Hz. Any suggestions are welcome. Thank you.
    Jian

    I have sucessfully solve the problem when I observed the increase of
    scan backlog number. Simply increase the buffer size of AI/AO and you
    can make the 1kHz sine wave output and data acquired properly.
    On Tue, 3 Feb 2004 09:03:07 -0600 (CST), jujian wrote:
    >Although many topics of simultaneous analog output and input can be
    >found in NI Developer Zone, I have not found a case similar to my
    >project. I'm trying to generate a 1kHz sine wave by using the analog
    >output of NI DAQPad-6070E, and acquire one channel input signal
    >simultaneously. I found most of the examples can not work properly
    >above 100Hz. Any suggestions are welcome. Thank you.
    >
    >Jian

  • My Sine Wave File sounds different in Logic than iTunes

    I am working on creating musical compositions with embedded sine wave patterns (which I am generating in a foriegn application). These sine waves are designed to entrain the brain to different frequencies to facilitate in stimulating meditative states of consciousness in the listener.
    Unfortunately, when I import my sine wave audio file (in .wav format) Logic changes it and the rhythm is frequency is twice as fast! When I play the file in iTunes it sounds just the way I generated it, but when I import it into Logic through the audio bin or simply drag and drop onto the arrange window, it sounds different and cannot work for the precise control I require for my compositions.
    Does any one have any idea why this is happening or what I can do to import my audio file without changing it?
    Thank you so much for any ideas/assistance,
    Devlin Dewitt Donnelly

    Hi DD Smooth,
    you should check sample rate settings on your original audio files and make them match the sample rate settings on your logic project prior to importing them. Sounds like you are generating 48khz .wav files in your foreign app and Logic must be set to 44.1khz by default. Or the other way around
    Message was edited by: Imol

Maybe you are looking for

  • How do I use a specific host directory in the ftp setup?

    I am reestablishing links in CS4 to my websites after an upgrade from Vista to 7. I use Go Daddy and the subdirectory capability. I had a difficult time setting up the ftp connection and saw in another posting that the Host directory should be left b

  • Why doesn't my new ipad 2 work?

    I have just purchased an ipad2 and it has just arrived. I turned it on and followed the instructions: download iTunes. what do I don next?! I have turned it on and it is just a black screen with iTunes' and the iTunes logo on it with the iPad cable..

  • SAP R/3 4.7E IDES Installation

    Hi,     I have NW 2004 and NW 2004s DVDs. Recently i downloaded R/3 4.7E IDES " .RAR"  files from net. Can anyone help, how to install IDES system for R/3 4.7E. It is very urgent...please...if possible send screen shots Regards Ram

  • Applescript error 600

    I keep getting an Applescript error -600.........application isn't running.  When I click on "ok" Cocktail opens and runs pilot.  The script is then gone but eventually comes back.  Is there any way to stop this error from appearing? Thanks for helpi

  • Iphone syncing with Outlook Express Address Book, Outlook is the default!

    I used Express years ago and honestly don't know how the code transfered to my new computer (10 months old). Outlook synced contacts fine the first time, but since loading the newest verison of itunes the ihpone won't even give me the option to sync