Analog input to modulate triggered sine wave analog output

I'm new to Labview and having trouble getting my app to program correctly.
I would like to use an analog input (AI) to modulate the amplitude of a
100 kHz sine wave and output the results to an AO.  This is a real
time application: the AI will change every few 10's of ms so during one
"cycle" the amplitude will be modulated many times. Plus, the entire AO
will be triggered on and off with a digital input TTL trigger. The
waveform "cycle" will run continuously and so will the AI.
    I've used an example included with Labview to read
the AI and a separate one to generate the sine wave and trigger it on
and off, but cannot combine the two together. I assume what I need to
do is implement a loop properly but when I try I can only trigger the
AO on and off and the AI does nothing or is static. I assume that the
vi just takes one point from the AI and uses that to determine the
amplitude of the sine wave, but doesn't "redraw" the sine fast enough
to respond to the AI changes.
Thanks,
Ethan

Hal,
I do not think I have Labview Realtime (unless it comes standard with the full version of Labview ). Do I need to have that? I have a 6251 DAQ board.
I've enclosed my program- it has the name of the original included program in its file name so you can see that I didn't do much to change it. I made some changes today (to make it non regeneration) but now can't get the AI to read at all. And I have no idea how to modulate the sine amplitude using the AI.
The sine wave works fine and triggers as needed. The one problem is that the sine wave doesn't end at the same point (phase) each trigger period so during the times between triggers the DC level on the AO is variable (which I do not want). Is there a way to end the sine wave at the same phase (at the zero crossing) while still triggering it with a digital input.
Thanks,
Ethan
Attachments:
ERB6-Cont Gen Voltage Wfm-Int Clk-Non Regeneration.vi ‏157 KB

Similar Messages

  • How to generate 3 phase sine wave to output on ELVIS

    Hi .I need to make a star or delta connected circuit on ELVIS board.2 make this circuit I need 3 wave generator( with 120 phase shift) and one common ground
    and because the ELVIS function generator can only generate one wave I decided to generate countionuos sine wave in Labview.
    Now I can generate 2 continuis sine wave in labview and output them on the analog outputs of ELVIS.Ao-0 and A0-1
    but I dont know what to do for the third signal.the elvis board just has 2 analouge output and when I use  Ao-0 and A0-1 I cant use ELVIS function generator after that.so would u please help me on this problem.how can I output 3 contious sine wave in Elvis.I have attached my VI to this post
    Attachments:
    new.vi ‏38 KB

    Hi, I am also having some problem in generating two signals from two AO. Could you please tell me how to generate two different signals from two AO. I have attached vi which generate square wave from one AO 0. I need the inverted signal in AO 1. 
    Attachments:
    Pulse Width Modulation.vi ‏48 KB

  • What amplitude on power spectrum if analog input is 7.3V,sine,80hz?

    I have an analog input of 7.3V, sine wave at 80 Hz feeding thru PXI-4475 (I have a PXI-1042 Chasis and PXI-8176 Controller and I am programming my application in Lab Windows-CVI). I see a sine wave with an amplitude of 7.3V in the time domain but I see an amplitude of 13.3V at 80Hz in the power spectrum. Should I see 7.3V in power spectrum display? My HP FFT Analyzer showed 7.3V at 80 Hz in power spectrum display. Please help. My email: [email protected] or my phone: 215-897-8766/7370. Thanks in advance.

    There would appear to be a mathematical relationship between the 7.3 V sine wave and the 13.3 V amplitude as follows:
    a) rms value of a sine wave at 7.3 V = 5.1619 V
    b) square that result = 26.645
    c) half the result = 13.32
    The power spectrum should be expressed in terms of voltage squared. The power spectrum should produce a result that is a second order function of the initial amplitude. Are you sure the settings on the HP were for "power" when you read the output of 7.3V? The 13.3 V number appears to be the better of the two.

  • Help needed with generating a sine wave with NI-5640R card

    Hi there,
    I have created a simple programe using the 5640R card, and i am attaching the programe to this question. Using a "sine generation" function/block i am generating a sine wave and outputting to one of the o/p ports and then i am connecting that o/p port to one of the i/p ports using a cable. Then i am plotting what ever i have recieved through the i/p port (this has to be same as what is generated using "sine generator" ). The graph shows that i am not receiving aything from the i/p port, but when i plot the o/p of the "sine generator", i see that the sine generator is generating the sine wave. Please refer to the attached figure and please tell me what mistake i have made in this simple programe.
    Thanks,
    Sandeep.
    Message Edited by sandeep palreddy on 07-08-2007 12:46 PM
    Sandeep Palreddy, Graduate Research Assistance
    The Microwave Remote Sensing Laboratory (MIRSL)
    University of Massachusetts
    151 Holdsworth Way
    Amherst MA 01003-9284
    Attachments:
    figure.doc ‏27 KB
    figure.doc ‏27 KB

    Hi sandeep
    This small segment of code will not work on the NI PCI-5640R.  This module does not support running the FPGA Vis directly.  A Host VI must be run that calls to the FPGA Vis.
    I suggest that you look at the ni5640R Analog Input and Output example that is installed by the NI PCI-5640R software. 
    Jerry
    PS: Make sure that you are using the NI PCI-5640R software version 1.1.

  • How to generate a continuous sine wave for a given amount of time

    I am trying to output a continuous sine wave for a speaker, but I am having difficulty making it continuous rather than looping the signal for a given amount of time, which causes discontinuities. There is a VI in the Labview examples titles Continous Generation, but it produces a square wave. Is there a way to adapt this VI such that the amplitude and frequency can be used as inputs to create a sine wave?

    I found a VI that ships with labview(7.0)called continuous sound output. the output of this is a sine wave or you can change it to whatever you want.
    Sorry cannot help more
    Joe
    Joe.
    "NOTHING IS EVER EASY"

  • Trasnmitting a single sine wave using USRP

    how do i transmit and recieve a single sine wave using USRP...i would really appreciate it if someone posted that example
    i already understand the blocks of the usrp...but do i need to modulate the sine wave signal or i will just send it..i am really confused
    i hope that you may post the example

    Hey Eldokch,
    See step 4 in the following white paper:
    http://www.ni.com/white-paper/13880/en/#toc4
    It uses two examples packaged with the NI-USRP driver, "niUSRP EX Tx Continuous Async.vi" and "niUSRP EX Rx Continuous Async.vi".
    -Jim B
    Applications Engineer, National Instruments
    CLD, CTD

  • 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

  • Analogy output a 5000 Hz sine wave from DAQ 6015

    Dear Friends,
    I am back again. Today I try to use the DAQ 6015 to generate an analogy output sine wave of 5000 Hz, it shows me underflow warning. I think it is because of the limit of the on board buffer size. However, I would like to ask for some advice from your experienced expert if there is any way I can make it.
    Many Thank
    dan 

    Hi Dan
    Just a few questions before I can help you. Are you using LabVIEW, if so which version. Are you using NI-DAQmx driver, again if so which version. When you receive the underflow warning do you also encounter an error code and description of the warning? Would it be possible to post the message and code in your next post.
    You can setup buffer size and sampling rate via LabVIEW. Using the DAQmx API makes this very easy using the DAQmx Timing.vi
    Kindest Regards
    Yatin | NIUK & Ireland

  • LabVIEW FPGA Sine Wave Generator Reset Input Behavior

    I would like to know what the output from the Sine Wave Generator express VI is while the reset input is true, and what happens to the output immediately after the reset input is set false.
    I need to generate a regular sequence of positive half-cycles of a sine wave, with an arbitrary delay between them that is not related to the actual frequency of the sine wave. So my plan is basically to periodically fire a trigger in the fpga software that resets a sine wave generator and directs its output to an analog output until the sine wave goes negative, at which point the analog output is set to 0 until the next trigger.
    Thanks

    Muchas gracias por responder steve.bm
    El problema que tengo es el siguiente, estoy desarrollando un proyecto en el cual uso los conversores DAC y ADC de la  tarjeta FPGA Spartan 3E para lo cual use como base el proyecto que esta subido por la NI que se encuentra en uno de los enlaces que me dejaste,( Lesson 8 - Linking Existing VHDL Code from WebPACK into LabVIEW FPGA) del mismo solo modifique para usar el ADC y el DAC mediante el cual adquiero una señal senosoidal y la tengo que reconstruir, el problema es que como uso un generador de señal de laboratorio al ingresar la frecuencia de muestreo para obtener una buena reconstruccion, la frecuencia se baja lo cual en el proyecto real no podra pasar ya que la frecuencia ya en proyecto final la adquiero de la red electrica publica pero ahora para pruebas estoy con un generador, la verdad no se que pasa porque tiene un retrazo la señal.....
    Te parece si te puedo dejar mi proyecto subido en enlace para que lo revices ??

  • How do I synchronize a pulse output to a sine wave input on a pci-6602 card?

    I have a sine wave from a function generator as the input on the source of a counter. Input frequencies vary from 2-60 kHz. I want to produce a pulse train at a different frequency (10 Hz), but in phase with the sine wave. I have only been using Labview 5.1 for a short time. I am using the PCI-6602 card with a SCB-68 connecting block.

    Hello;
    Unfortunately, you can't connect a analog sinewave to the counter source. Counters only work with digital TTL signal type. To accomplish that task, you will need a MIO board working in sync with the 6602 you already have.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Will PFC power supplies work with SIMULATED sine wave inputs

    Will PFC power supplies work with a SIMULATED sine wave input from a UPS unit?

    Not sure whether you really meant "PPC" and have never heard of a PFC power supply, but if your question is whether a Mac PPC computer will run on a UPS, then the answer is definitely "yes" as my machine has shown twice in the past 12 months and several times in the past on the G5 tower and with a G3 B&W.
    I haven't dragged the old analog scope off the shelf to see what the UPS output really looks like, but I suspect it is no dirtier than the mains power in my neighborhood.

  • How to get a pulse output at the start of a sine wave which is the input?

    i am working on a comparator that generates a pulse for the positive cycle of a sine wave.but i want to get a pulse of shorter duration at the start of a sine wave (using labview) please suggest

    Hello;
    You can synchronize one of the general purpose counters your board have to the analog input operation. By doing that, you can have your analog input starting the counter operation which will generate the desired pulse. Moreover, you can even specify the delay and width of that pulse. For more information on how to synchronize DAQ operations you can refer to an Application Note named "Advanced Synchronization Techniques for Data Acquisition" which can be found at our web site.
    Hope this helps.
    Filipe

  • Synchronizing Analog Output to Counter Input

    Hi!
    I'm really new to LabView. Pls help!
    I'm trying to obtain a set of stimulus signal and response signal from my motor for system identification.
    The stimulus signal will be generated by the Ao0 channel and response signal (quad encoder linear position) will be read into counter0.
    How can I synchronize the stimulus signal and response signal so that the sampling (n samples) for both stimulus and response starts at the same time?
    e.g.
    t=0, stimulus sample 1, response sample 1
    t=1, stimulus sample 2, response sample 2
    t=2000, stimulus sample 2000, response sample 2000 
    I've attached my VI.
    Thanks. 
    Regards,
    Student
    Attachments:
    Acquiring Linear Encoder Samples.vi ‏44 KB

    Hello Htp,
    What do you mean by synchronize? Do you want to start the analog and counter outputs at the same time? If you do, you should have both outputs start with the same digital trigger. For the analog output, you can set up the triggering in the DAQ Assistant in the Task Triggering tab. For the counter output, look at Gen Dig Pulse Train-Continuous-Dig Start.vi found in the Example Finder (Help Menu>>Find Examples). Browse Hardware Input and Output>>DAQmx>>Generating Digital Pulses. Please let me know if you have any questions. Have a great day!
    Sincerely,
    Marni S.

  • Hi, iam facing proble in synchronizing 4 ni 4472 cards input with pxi -6052e analog output. please help me out to sort out this problem

    hi, iam facing problem in synchronizing 4 ni 4472 cards input with pxi -6052e analog output. please help me out to sort out this problem

    Hi achyuth,
    Thank you for posting on the National Instruments forum.
    I am not sure what you are trying to do.  Are you trying to input and output at the
    same time?  Are you just trying to
    synchronize all of your inputs?  Do you
    want them to run off the same clock?  If
    you could, give me some more information so I can understand your problem
    better.
    In the meantime, this might help you:
    PXI Timing,
    Triggering, and Synchronization Capabilities of E-Series Multifunction Data
    Acquisition ...
    PXI Timing and Synchronization
    Thank You,
    Nick F.
    Applications Engineer

  • How to combine the analog input and analog output vi's

    Hi !
    I have a perfectly running triggered analog input acquisition vi. I have a seperate vi for analog output that's running perfectly too. Can someone tell me how to combine these two operations so that I could get a vi that does simulataneous AI and AO without missing triggers. I have tried all the different kinds of configurations suggested by NI support but nothing seems to work. Can someone help ?
    thanks,
    Shiva
    Attachments:
    dac_good.vi ‏77 KB
    adc_good_fw.vi ‏124 KB

    Shiva;
    I'm attaching a good Application Notes that shows how to synchronize multiple DAQ tasks, in Labview.
    Hope this helps.
    Filipe
    Attachments:
    Advanced_Sync_Techniques_for_DAQ.zip ‏166 KB

Maybe you are looking for

  • Playing a video on the video out of my imac... it's possible ?

    Hello , it's possible sending a video on my iMAc video port that is connected to a LCD videoprojector ? I'd like to keep using my iMac while showing some video. I need some programs to do that ? thanks for help

  • I am getting error in an top of Base navigation page while signon....

    Java Exception: java.lang.UnsupportedClassVersionError: Bad version number in .class file: finding basic class PeopleSoft.PeopleCode.Name (2,727) PT_FAV.AddToFav.OnExecute Name:getPTISSID PCPC:12703 Statement:248 Called from:PT_FAV.AddToFav.OnExecute

  • Value Mapping  Transport Problem

    Hi All, I hv some value Mapping Values  in my XI Devvelopment system while i am transporting these values to the XI Quality System  all Development values are able to transport but,some values are duplicating.aferter that In  XI Production System new

  • Dividing multiple counts

    Hello everyone, I am trying to divide one count by another. I have pasted the part of the query I am struggling with below (sorry about the confusing aliases). count(distinct p.processno)/(select COUNT(distinct oa.noteid) as "Count" from W2PROCESSdch

  • New features of Forms 6i

    Hi, we want to migrate to Forms 6i, so want to know what's new in Forms 6i, New features of Forms 6i would be very helpful for giving presentation to management. Thnax Mehul null