Generating a sine wave using PXI 5441

How to generate a sine wave using PXI 5441 (Arbitrary Waveform Generator)?
Can anybody post a vi that generates a sine wave with frequency at a user defined frequencies.
Thanks in advance.

Hi Venki,
 When using an arbitrary waveform or user-defined
waveform, you provide the actual waveform you want to generate to
the device, so it is easy to also just connect a graph to the waveform
and see what it looks like. Unfortunately, when using standard function generation (which is the method used in this example), you are not providing a signal that is created in software. Because the standard function
generation is happening on the FGEN and not in software, there is
really no way to display the exact signal without measuring
it on a scope or some device. You can, however, simulate the signal in
software such that the parameters which are given to the FGEN functions
are the same parameters that you use to generate a simulated wave. This
would be somewhat complex since you can change parameters such as
frequency and amplitude on-the-fly, and also you would need separate
functions for each of the different signal types available for the
FGEN. You would need to place the software waveform generator in your
inner loop and have a waveform graph connected to it in the loop as
well to display the signal. The main thing to keep in mind is that this
will only be a simulated signal and so it may not exactly match what is
being generated (this also depends on how you program the simulation to
work). Hope this helps,
Daniel S.
National Instruments

Similar Messages

  • Simultaneous updation of sine wave using 2 PXI-6711 cards using RTSI Trigger

    Hi ,
    How to generate continuous sine wave using two pxi-6711 cards at same time without any phase shift using traditional nidaq functions.
    Regards,
    satya

    In LabVIEW, go to Help>>Find Examples. Navigate to Hardware Input and Output>>Traditional DAQ>>Multiple Device. There is an example there called "Two E Series Shared Scan Clock". That example is for analog input, but you should be able to modify it to be for analog output. Basically you will just have to share the scan clock from one board(master) and use it as an 'external' clock for the other board(slave).
    -Alan A.

  • 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

  • How to use pci 6229 to generate a sine wave?

    Dear friends,
    I want to use pci 6229 to continuously generate a sine wave by 5000 sampling rate to output to drive a loudspeaker.
    Does any one can post an example so that I can learn from it?
    Many Thanks
    Probiee

    Dear Denis,
    Thank you for your reply. I have done with this following vi. please see the attachment.
    please give me some feedback with my vi.
    Many Thanks
    Probiee
    Attachments:
    danforum.JPG ‏119 KB

  • 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.

  • 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

  • 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

  • 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

  • How to generate finite cycles of sine wave using daq mx in vc++

    Hi,
    How to generate finite cycles of sine wave or for finite duration in vc++ using hardware timer without any sleepfunction in the code.
    Thanks & Regards,
    satya

    Hello Elizabeth,
    Thanks for the response.
    1) I am using NI 6040E PXI.
    2) I am using NI-DAQMx 8.3
    3) Measurement Studio is 6.0.0.105
    4) Operating system is Windows XP.
    I want to generate sine wave for finite duration previously in traditional daq there was function called wave_op.In which we can mention number of cycles of sine wave we wanted to generate. That function is not available in DAQMx so we have to use sleep function to generate finite period. Any hardware control function to control generation of finite cycles please let me know.
    Thanks & Regards,
    satya

  • Generating a PWM wave using 9263 module.

    Hi,
    I was just trying to generate a SIne-Triangle PWM wave using the 9263 module. But i am still not able to obtain any output from the DAQ port Ao0 . Is it something to do with my configuration using DAQmx. I am attaching my sample program. I am able to generate the PWM but not able to take it out. 
    Expecting a reply soon and thanks in advance.
    Attachments:
    pwmtest.vi ‏27 KB

    Hi PankajllSc,
    From the code you have attached, Daqmx create channel is now set to "analog input". In order to generate the output, you will need to change the setting to analog output.
    Another suggestion would be move the VI outside the while loop as the channel only need to be created once.
    You can also study on how to use DAQmx by browse through the example provided by NI. The example located as follow,
    Help -> Find Examples... -> Hardware Input and Output -> Daqmx -> Analog output
    Hope this help
    Best regards,
    Tui

  • Generate n sine waves and add them together

    Hi
    I'm new to Labview and I want to generate n number of sine waves and add them together to form one signal that can be out put through a DAQ card. Each successive wave frequency will be the multiple of a base wave all will be the same amplitude.
    This to me suggested a For loop with a sig generator  and a passback in it but when I tried this it threw an error because the dt were different.
    Any help will be appreciated.
    Thanks

    Show us what you did.
    LabVIEW Champion . Do more with less code and in less time .

  • Generate two sine waves with time delay

    I have not been using the waveform generation tools so I hope this is an easy one for somebody.  I want to create two sine waves at different frequencies say F1 = 1.00 KHz and a second at F2 = 1.20 KHz.  I know that to combine them into one I can just add them.  Them problem I have is that I want F1 to start first then a few millisecond later have F2 sum into F1.
    T0 = F1
    T0 + Delay = F1 + F2
    Is there a VI capable of a time delay?  Tried to sum individual signals together but seems more difficult because of the waveform cluster format.
    Any help is appreciated,
    Matt
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

    Would the attached VI work for you?
    Attachments:
    Add Delayed Sinewave.vi ‏54 KB

  • Generating single cycle sine wave using pxi5402

    Hi,
    I'm a relatively new user of NI hardware, had some experience with cRIO systems but not PXI
    I've got a PXI chassis with a PXI5402 fgen card, I'm trying to generate a single, double and triple cycle sinewave (user selectable) but have very little experience with creating waveform files, is there a guide to doing this or is there a vi which lets me create a (relatively) custom waveform, I'm using the 'fgen function generator.vi' example and was hoping to build on this, I'd like to be able to continually transmit my waveform or set a specific number of transmissions
    any help appreciated!

    Hi there, 
    I belive that what you are trying to achieve would be best achieved using the arbitrary function mode, unfortunately this isn't supported by the PXI-5402. As it is a  A PXI-5412 would be better suited to this task. 
    That is not to say, however, that this is impossible. I believe you can achieve single cycle generation using list frequency mode. http://zone.ni.com/reference/en-XX/help/370524M-01/siggenhelp/mode_frequency_list/
    This forum post explains a little more: http://forums.ni.com/t5/PXI/PXI-5402-Burst-generation/m-p/2163496
    Although the forum above mentions using multiple frequencies, list mode allows you to set a duration of signal generation allowing you to choose the number of cycles to generate through timing. 
    I recommend modifying the Fgen Sweep Generator.vi example to generate only one frequency for a specified duration. 
    I hope this helps. 
    Tim, CLD, CTD
    National Instruments (UK & Ireland)
    "No problem is insoluble in all conceivable circumstances"

  • Generate Sine wave using NIDAQ

    How can we generate sinewave using NIDAQ library fucntion in VC++.

    Hi,
    There are examples of creating a waveform in VC++ that come with the DAQ driver. They can be found here:
    C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ao
    In this folder you can select from any of the WFM examples, which will all create different types of waveforms on your Analog Output channel. There are descriptions of each example contained at the beginning of the program.
    Good luck, and happy programming!
    George

  • PXI 5411 sin wave burst plus timing

    I have a PXI system with a 5411 ARB card and a 6259 MIO card.
    Here is the issue.
    I need to:
     generate a sin wave pulse at 16MHZ...
    This pulse initiates at T0 plus Tn from a trigger pulse generated by the AO of the 6259 (needs to be as short as 1mS and as long as 3000mS-repeatable and guaranteed)
    This duration of this pulse is Tx (can be as short as 1mS up to 1000mS again repeatable and guarenteed)
    My problem has been that the timing of Tn and Tx is at the mercy of the computer as ranges up to times as great as 1000mS.
    I know there is something simple that I am overlooking... but for the life of me, I have not been able to find it.
    Thanks,
    Paul
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

    Hi Paul,
    I'd like to clarify a couple points in your post to make sure I understand your application correctly.  It sounds like you want to generate a trigger pulse on the 6259 - is this using the counter or analog output?  You also mentioned that you wanted your start trigger and reference trigger to be user-defined, but you are only getting 1000ms accuracy.  This may be occuring because you may be using software timing. 
    It sounds to me like you'd like to use a digital trigger from your 6259 to start your acquisition, then specifying the number of samples to generate to control your Tx time.  I may be missing something that you're trying to do in your application, so please reply with more details on your application if possible. 
    Thanks!
    Daniel L.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Need information on the battery

    Hello. Before i get an electronic like the iPod Touch, i try to gather as much information as i possibly can so i can have everything ready and all of the knoweledge about it so i dont screw it up and so i can use it correctly, im trying not to sound

  • Manual install of Flash Player

    I have a Power PC based Macbook pro running 10.5.1. For some reason my flash player stopped working and now when I try to install it, it tells me the installation failed and that I need to manually install it. They (Firefox I suppose) even provide a

  • NULL output Device creation in SPAD

    Dear Guru's, To Preventing the creation of spool request  for all users.We can assign an output device with the name NULL. It means that no spool requests are created for those users in SAP. Could you please some one let me know, how to create NULL o

  • Error in Dashboard using XML connection

    Hi Experts, I have developed one Dashboard using XML connection  but getting bellow attached error can any one guide me how to solve it. I know that error is related to cross domain.xml please explain the what is cross domain.xml and guide me to solv

  • Technical document template for WebDynpro application

    Dear SDN Community,   Can you please tell me where can I get a Technical Document template for building a WebDynpro(Java) application. Thanks! Surya.