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"

Similar Messages

  • 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

  • I am trying to generate a 50kHz sine wave for ten cycles, then aquire this waveform and store it in a file, I am using a PCI-Mio 16E-4 board, has anyone done anything like this?

    I am trying to generate a 50kHz sine wave output on the DAQ card and then simultaneously recieve. I am using a PCI-Mio 16E-4 series board to do this. Has anyone done anything similar. I can generate a 50k wave no problem, and recieve one, but I can not get these vis to run together? Any suggestiosn

    Jrod, yes you should be able to do this, actually there are quite a few example programs come with LabVIEW that handles simultaneous analog input and output, I check the specs of the board you use, the board should be able to handle the sampling/generation rate, but make sure for 50KHz sine wave, you would sample at least twice as fast, preferably ten times the generation rate, then this puts the sampling of the board to thew limit.
    The program you can try is attached here, good luck with the application,
    XD Gao
    Applications Engineering,
    National Instruments
    Attachments:
    Simul_AIAO_Buffer(E-series).vi ‏104 KB

  • 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

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

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

  • How to generating three phase sine wave simutiously with Vistual C++?

    Here I want to generate three phase sinewave at the same time with the phase angel 120 continiously. I can creat a task that contain 3 AOs, and generate 3 same sine wave at the same time. But I can not create 3 individual task which contains one AO channel, and write data to FIFO. Please tell me how to realize it?

    Hello, Rilee,
    Thank you very you very much. But I am still confused. The website I can not open. As you said, I shall create a data array to contain three phase data, for example, sinedata[750], sinedata[0:249] contains first AO, and sinedata[250:499] the second, and the rest is the third. then
    1. send the data for sinedata[0] to sinedata[249], to the board. with DAQmxWriteAnalogF64;
    2. send the data for sinedata[250] to sinedata[499], to the board. with DAQmxWriteAnalogF64;
    3. send the data for sinedata[500] to sinedata[749], to the board. with DAQmxWriteAnalogF64;
    and or so.
    Is all the above description right?
    Here I have several questions:
    1. When shall I send second section sample data? I think it shall be all the first data have been written to the board. And How can I know that all the first section data have been sent to the buffer?
    2. If I call DAQmxWriteAnalogF64 to write the second section data to buffer after the have finished first section data written, will this function affects the wave of the first section data?

  • 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

  • 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

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

  • Generate and record sine wave with GB

    Is there a way to generate and record a sine wave with GB? I need to record a 20khz tone and put it to track. Thanks!

    Thanks. The purpose of this was to 'fool' the horrible compressor/encoder over at Youtube. Inserting a 20khz tone in the mix tricks the compressor and effectively bypasses Youtube's butchering device. What I did was downloaded Audacity (free) for Mac. Audacity has a 'generate tone' capability which can be recorded. I then 'exported' my 20khz tone as a wav file and 'imported' same into my GB mix. Et voila! I can now mix my sine wave tone to the specified 'workaround' levels which I had seen posted on the net. ~King

  • 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

  • Unable to generate single byte character when used TO_SINGLE_BYTE

    Hi All,
    Can anyone help me in getting the output for the below single byte query. When tried it says INVALID NUMBER.
    Step 1 :-
    select RAWTOHEX('2Z') from DUAL; -- 325A
    Step 2:-
    SELECT TO_SINGLE_BYTE(CHR('325A')) FROM DUAL;
    The above query when executed it says "ORA-01722: invalid number".
    I tried using VARCHAR2 instead of CHR it throuws the below exception,
    "ORA-00936: missing expression".
    But the same query if no characters are passed is working fine.
    SELECT TO_SINGLE_BYTE(CHR('3251')) FROM DUAL;
    Thanks,
    Ravi

    TO_SINGLE_BYTE is used to convert multi-byte characters to single-byte characters. '325A' is not a multi-byte character so can't be converted.
    Use HEXTORAW to convert the hex value back to a raw value.

Maybe you are looking for

  • Mini DisplayPort to VGA Adapter won't work on thunderbolt port

    Hello I bought 2 new Macbook Pro 13' , 2.9 Ghz Intel Core i7, with 8 Go 1600Mhz DDR3,  Intel HD Graphics 4000 512 MB, Mac OS X Lion 10.7.4 (11E2617). I have connected a Mini DisplayPort to VGA Adapter in order to show presentations on different LCD p

  • WIndows 7 Won't Install On Lion?

    Hey there, I seem to be having trouble reinstalling Windows 7 after I moved to Lion and need help figuring it out. NOTE: Prior to Lion, I never had trouble installing Windows. Running late 2010 MacBook Pro. 2.4GHz Intel Core 2 Duo, 8 GB RAM. I clean

  • Slow time capsule

    Hi, I have a brand new 2TB time capsule (802.11AC model). I believe I have it set up correctly, and it “works”. It’s just painfully slow, and can’t see all of the attached hard drives. Plus, the drives drop in and out randomly. It has yet to manage a

  • Paragraph Styles not showing up in TOC window

    I am using a template that uses paragraph styles ( when I click on a heading line the corresponding Heading 1 becomes selected in the paragraph styles draw) yet no paragaph headings show up in the TOC window. thanks for any help

  • Things are randomly segfaulting and I can't figure out why! [solved]

    Hi, recently I have been getting random segfaults and corruption. For example, I can't uncompress files, bsdtar gives errors 9/10 times and I can't compile a program. I get weird and random output. Attempt 1: -> Extracting libarchive-2.8.3.tar.gz wit