NI 9269 + cRio: sine generation

Hi folks.
I want to generate a sine with variable frequency and amplitude.
I am working with a cRio 9033, a tension output module NI 9269 and labview 14 in Scan Interface mode, therefore I can not use the DAQ Assistant .
I tried to use the Simulate Signal, but after 5 Hz and any amplitude the output signal is not correct.
Does anyone can show me how to do it? Thanks
Attachments:
Sine cRio.PNG ‏32 KB

Hi,
You should use the Sine Waveform.VI to generate the sine wave and later move every single point to the output channel in every iteration, for instance, of a timed loop.
http://zone.ni.com/reference/en-XX/help/371361J-01/lvwave/sine_waveform/
http://forums.ni.com/t5/Real-Time-Measurement-and/Outputting-waveform-using-NI-9269-on-cRIO-9114/td-...
Have a nice day.

Similar Messages

  • Sine generation through crio 9022

    hi...........
    i am generating sine wave using simulation function. i am able to see waveforms in labview front panel but not in oscilloscope.

    Hey pa1990,
    Can you elaborate on what exactly it is you are trying to do, what you've tried, and what is not currenty working?  The more information you can provide the easier it is for us to help you.
    Thanks!
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

  • SIne generation with fpga

    Hi,
    I am working on a large project on labview FPGA but I'm a beginner in FPGA methods. The first step is to generate a sine wave in "real time" through one of the output of the PXI card.
    I chose to use a LUT, but I don't really know if it is the best way. My problem is that my output signal is not a sine and I dont know why.
    I joined a printscreen of my diagram. The "waveform" memory contains 1024 points and the hardware I use is a flexrio PXIe 7965R with a 5781 module
    If someone have an idea
    P.S: sorry for my poor english
    Attachments:
    sine.JPG ‏54 KB

    Hello,
    Why do you espect reading a sinus if you only read values of many adresses of Memory Item?
    The 5781 is Baseband Transceiver Adapter Module for NI FlexRIO not a module.
    I suggest you to take a look at this link : Generate sinus in FPGA
    You also can use this function :
    Regards,
    Jérémy C.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Generate sine waveform (myRio)

    What is the best way to generate a 1khz sine signal on one of the analog outputs of the myRio device? I tried a timed loop and the Point by Point Sine Generation VI similar to the Electret Microphone demo or this post: http://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/frequency-matching-problem-with-myrio/m-p/2... by Sammy_K. But the resolution is a problem. The frequency is not very accurate and with a dt of 100 uS and a 1Mhz Clock I only get 10 samples per period. A dt of 10 is too much load for the processor (the deivce does not respond anymore and needs to be restarted). Is there a better way of generating a 1khz sine output or do I need to do this within the FPGA somehow?
    Solved!
    Go to Solution.

    Hey JulianR,
    The thing to keep in mind is that each time you call the Analog Write express VI you write one data point to the analog output on the myRIO.  The rate at which data is output is determined by the rate at which you loop runs.  You can use a timed loop in LabVIEW to write analog output values at a relativly fixed loop rate and vary the value to generate a sine wave output.
    I put together an example of doing just this (but using the value to set a PWM duty cycle rather than analog output) in this thread.  You'd basically need to replace the PWM express VI with the Analog Output Express VI.
    Finally as Marc67 mentioned you could implement the sine wave output in LabVIEW FPGA which would give you more control and let you use faster output frequencies.  I'd start with the timed loop method and move to FPGA if you need faster output rates.
    Let us know if you have more questions for us.
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

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

  • Setting up Analog Output in PCI6025E

    I have a PCI6025E board that I would like to setup such that it outputs a sawtooth data.
    I used a Sawtooth function signal generator (range 0-4V), which I connected to AO Continuous Gen. I want to output this to pin DAC0Out, which I set up in MAX as a channel called test.
    For testing, I also set up an analog input channel, using Differential mode (using ACH0 and ACH8). I connected the pin from DAC0Out to ACH0 and AOGND to ACH8.
    When I tested the results using MAX, I couldn't get a signal, and MAX shows constant 5 V output. When I use a Probe on the waveform data, it shows the sawtooth signal.
    Can anyone give me a suggestion how to fix this problem? I have tried the Labview example Continuous Sine Generation and set it
    up to test, but I can't get any results out of it as well.
    I'm using this setup because I needed a signal generator capable of outputting a sawtooth signal, as well as trying to measure any possible losses through cables and the DAQ board.
    Thanks in advance
    elton

    Hello elton,
    At first glace it looks like you have everything set up correctly. To replicate your situation, I modified the �Simul AIAO Buffer(E-Series).vi� example with a 0-4 v sawtooth signal. I am including copies of this modified example both with and without the input line. They both ran fine, and the copy without the input line tested great with a virtual channel in MAX. If these files don�t address your particular situation, or if you have any other questions, feel free to post a copy of your program and I would be happy to take a look.
    Have a nice day!
    Robert M
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments
    Attachments:
    Sawtooth_(with_input).vi ‏105 KB
    Sawtooth_(wo_input).vi ‏57 KB

  • Help in LabVIEW +ni 5640R

    Hi,
    I am Sreenivasulu.
    I have started working on NI-5640R LabVIEW card.I am able to do simulations using
    labview8.2. But I am unable to interact with NI-5640R to get the
    output through output ports.I studied the manual given by NI. But I am confused fully
    with the procedure and i did not understand.I tried the example projects ni5640R,but I
    failed.
    So please tell me the procedure to be followed, how the ni5640R card ADC and DAC
    working(how to give I/P to ADC and how to get the O/P from DAC),and how to interface
    host(my PC)and Target(ni5640R) using VIs.
    Please tell me that how the signal flows(inter connection between)through the parts of
    VI(both in HOST and FPGA modules).
    Final my goal is i need to generate modulated(AM,FM,FSk,BPSK,QPSK Etc) signal with Fc
    21.4MHz for providing as a input to other module(RAD-2,Pentaland).
    plz tell me  can i get this by using  LabVIEWmathscript or modulation tool kit Etc.
    I am using LabVIEW 8.2 and card NI-5640R(PCI based) v 1.1
               Thanking you so much sir.
    Thanks & regards,
    Sreenivasulu.O

    Hi Sreenivasulu:
    The example of the Getting Started Guide (manual), that probably you made has an updated version from April 2007 ( http://www.ni.com/pdf/manuals/371621b.pdf ).  This example is only designed to acquire a signal and visualize it, but it doesn't generate any signal through the output ports (read this very carefully cuz this are the basics which have to be totally understood).  You can try the Input Output example, which acquires and generates two independent signals.  I think the generated signal is a QAM which is totally unrelated to the input signal. You can also try the Frequency Translation or Sine Generation example.  Put special attention to the Local and DMA FIFOS, which transfer data between input and output (at FPGA level) and between FPGA and HOST respectively.
    I also recommend a lot reading in this forum all the posts related with the probelms that other people had, and the possible solutions tha the comrades recommend.  Most of the time are common problems between 5640r users.  Good comprehension of the theory behind ADCs, DACs and FIFOS is also recommendable. Also there are some cool tutorials an videos in the NI's FPGA website, try them to understand the concepts.
    OK, I'll try to explain how the dataflow works (as i have understood)
    1) Analog data comes through the input and is converted by the ADC.
    2) Digital data can be:
    Manipulated at FPGA level: Once manipulated, the digital data is transported to the DAC (with the Local FIFO) .  The DAC converts the binary data to an analog signal, which then can be read throug the AO port
    Transmited to the host to be manipulated or seen in the HOST (with the DMA FIFO
    I hope this helps you
    Cheers!

  • How to make a precise 0 to 60Hz vco in fpga?

    When using the express sine generation in fpga, lets say 50Hz, the frequency is round-off to some mHz .
    So correct 50001 mHz generation is not possible with the express sine generator.
    What is the best way to solve this?
    My goal is to precisely generate frequencies from 0 to 60Hz in millihertz steps. Like a VCO or voltage controlled generator does.
    The frequency should be addapted hundred times a second from the host. Like a sweep function.
    Have program a realtime simulator for powerplants written in C++.I translates the RT sim to NI components and software (Labview).
    My rt pxi turbine simulator for simulating grid incidents was succesfully used in a nuclear plant in 2006. Look at http://sine.ni.com/cs/app/doc/p/id/cs-755

    Hi,
    I think that the examples below can be usefull for you. More advanced functionality is used than Express Vi's.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=E142BB6B6CB2097EE034080020E74861&p_node=201268&p_source=External
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=E129B7EFAFD918AAE034080020E74861&p_node=DZ52000_US&p_source=External
    Regards.
    JorisV

  • Sine, Square & Sawtooth sweep generation with variable duty cycle/rise time & fall time

    Dear All !
    I request and need some candid advices on the subject issue keeping in view the following notes:
    1) I am a novice in LabView.
    2) I was an average Electronics Engineering graduate who graduated about 9 years ago and since then I have not been involved in Electronics Engineering.
    I have undertaken a task or generation of Sine, Square and Saw Tooth wave forms. All these waveforms are to be frequency swept form 1 Hz to 100 kHz. The amplitude of all these waveforms should be able to be adjusted. The duty cycle of Square Wave should also be adjustable (or better be able to be swept). Likewise the rise time and fall time of sawtooth wave should also be adjustable (or better be able to be swept).
    I am considering  other options as well but wanna try it on LabView.
    I wish to ask that is it possible to execute this task in Labview 7.0? If possible then considering the para 1 & 2 above, is it possible for me to finish this task in 15-20 days if I work on this for about 3 hours a day? If not then what can be reasonable estimate?
    I will be extremely grateful if you people can offer advice on whole project or part(s) of it.
    Thanking you in advance and requesting urgent response(s).
    Solved!
    Go to Solution.

    Check this thread.
    I did some similar coding, it might be usefull to you.
    http://forums.ni.com/ni/board/message?board.id=170​&thread.id=493477&view=by_date_ascending&page=1
    I am using ver 9.0 though.
    If you work 3hr /day for 2 weeks you might as well finish book basics 1& 2 and than can do whan you need in a breeze, couple of hours.
    Good luck

  • 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

  • Varying ON time pulse train generation using NI cRIO-9073 and NI 9401 module

    Hi,
              I am a beginner to the Labview environment.  Am using NI cRIO-9073 and NI 9401 module; and NI Labview 2013. I want to generate 64 pulses, wherein the ON time of the pulses are varying as shown below. The Pulses need to have a constant period of about 34µs. The pulses should have a constant amplitude anywhere from 5 to 10V. I am trying to do the same in FPGA interface mode but failing to do so. Please advise me..... Please also suggest pdf and video resources to learn Labview programming.
    Pulse ON Time
    18 µs
    19 µs
    20 µs
    21 µs
    22 µs
    23 µs
    24 µs
    25 µs
    26 µs
    27 µs
    28 µs
    29 µs
    30 µs
    31 µs
    32 µs
    33 µs
    33 µs
    32 µs
    31 µs
    30 µs
    29 µs
    28 µs
    27 µs
    26 µs
    25 µs
    24 µs
    23 µs
    22 µs
    21 µs
    20 µs
    19 µs
    18 µs
    17 µs
    16 µs
    15 µs
    14 µs
    13 µs
    12 µs
    11 µs
    10 µs
    09 µs
    08 µs
    07 µs
    06 µs
    05 µs
    04 µs
    03 µs
    02 µs
    02 µs
    03 µs
    04 µs
    05 µs
    06 µs
    07 µs
    08 µs
    09 µs
    10 µs
    11 µs
    12 µs
    13 µs
    14 µs
    15 µs
    16 µs
    17 µs

    t81,
    It is possible to make frequency measurements with either the 9422 or the 9425 but each will have its own limitations in the range of frequency it will be able to accurately measure.  
    A few things to know:  
    1. What are the frequency ranges for each sensor (tach and MFM)? More than just knowing Hz/kHz will be helpful.
    2. To what accuracy do you need to measure these signals?
    The 9422 supports a specialty digital configuration counter input that can be configured for frequency measurement (see link)
    http://zone.ni.com/reference/en-XX/help/372603F-01​/riohelprt/crio-9422_rt/
    The specialty mode is only available when using Scan Interface mode, not with FPGA.  
    But the max clock rate in the specifications for the 9422 is 4kHz so this may not be sufficient for the tachometer.  I believe this is the max rate at which the module will update its state no matter how fast the underlying software (RT controller) is running.
    The 9425 has a higher clock rate (~140kHz) but doesn't support the specialty digital mode mentioned above.  It is also a software timed only device but this shouldn't be a problem if you use FPGA.
    Dan

  • Digital sine waveform generation

    I am trying to use LabView to generate a digital sine wave with a NI USB-6259 and am not sure how.

    Hi
    To generate a sine wave coming out or your multifunction DAQ M-Series device (6259) it will be easiest using the "simulate signal" VI wired to a DAQ assistant.
    When you plug in your M-series DAQ device then you should be able to see it appear in the tree diagram on the left hand side of your measurement and automation (MAX) screen. This is where you can configure the hardware to the settings you would like and confirm it is connected correctly.
    On the block diagram in labview select express>>input>>simulate signal from the functions palette. This will bring up a configuration dialoge box to select your frequency, amplitude etc. Next place a DAQ assistant express VI on the block diagram, this can be found in the same menu as the simulate signal.
    This VI will also bring up some configuration boxes, you will need to select, generate signals, analog output, voltage. Next select your device which should be listed. This will bring you into a configuration screen so here you can set up just what you need. click ok and you will be left with two boxes, wire them together and run your program.
    You should now have a sine wave coming out of the outputs to your USB device so just wire to these.
    I hope this is OK, if you are looking for a more customizable task based program, what kind out outputs are you looking for and on how many channels?
    Best regards
    Graham Green
    Technical Marketing Engineer
    National instruments UK & Ireland

  • Labview code for generation of pulses like radar pulses inputting sine waves

    dear sir,
    kindly send me labview block diagram as simple as possible who could convert

    This is a duplicate post. Please refer to this link for further
    information.
    In order to maintain the
    forums in an orderly manner and to keep problem solutions and information in a
    consolidated fashion easily searchable by customers, duplicate posts are often
    linked. Best of luck in future applications.
    Jared T.

  • Signal Generation through pt by pt Signal

    Hello,
    I am acquiring signal through serial port, to analyze the signal, i am using pt bt pt signal analysis.
    In order to work on it, i used sine wave pt pt signal generation. But remained un successful in generating sine wave through it.
    Kindly guide me how could i generate sine wave using pt by pt.
    Thanks

    Hi Intelligent,
    it's not a good idea to start asking by using PNs, I will ignore them in the future!
    You wrote:
    I already read the help and tried to solve the issue but after not receiving the satisfied results, i posted on the group. As its written in the help that the frequency is in Hz, but the value you have selected for the frequency is 0.01. So its un understandable, also the dependentence of time factor.
    - What are "unsatisfying results"?
    - Yes, the frequency is given in Hz and I chose 0.01Hz for sake of showing an example...
    - "Dependence of time factor" is explained in the context help. Did you really read the help? Or do you have problems to understand the simple math formula provided in the help? All the parameters of SineWavePtByPt are used in that formula...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do I Fix DDS Generated Sine Wave That Produces a Periodic Square Wave?

    Hello,
    I'm an undergraduate researcher with almost no experience dealing with FPGA semantics and other National Instruments hardware in general.  Part of my project revolves around creating a sine wave signal via the FPGA on an sbRIO-9632 that is output via the board's analog I/O pins, and I found it convenient to adapt the code provided by the National Instruments tutorials (http://zone.ni.com/devzone/cda/epd/p/id/6066) to have it run on an sbRIO FPGA.  The problem I'm encountering right now is that the actual output I'm seeing is a square wave as opposed to the smooth sine wave that was expected, and I've exhausted all my ideas on possible ways to debug this issue.  Can anyone please give me feedback if they've seen this problem before or offer other suggestions on fixing this?
    I'm currently running LabVIEW 2009 with the appropriate real-time and FPGA modules on a 64-bit Windows 7 machine.  Again, the hardware is an sbRIO-9632 complete with analog I/O.  I appreciate it everyone!

    I am also having this issue and have not been able to find a solution in the forums. I am somewhat of a rookie so pardon me if I seem ignorant in any way. I am working on a graduate project where I need to produce some sine waves and I am getting more of a square wave when I output it and measure on the scope. The program I am running is quite simple at the moment to attempt to discover any errors by process of elimination. I have the sine wave generator in a while loop outputting to an AO port. I am using the cRIO 9022 with the 9269 AO module. I will attach screen shots of my code and my oscope image
    Attachments:
    sine wave.jpg ‏76 KB
    code for project.PNG ‏169 KB

Maybe you are looking for