Transfer 20MHz signal from FPGA to RT

Hi all,
I am a newbie to Labview and FPGA programming... I am using NI PXIe-8133 Controller card and NI-5781 FlexRio card. My task is to take input of 20 MHz external signal and then process it further... I have to transfer that signal from FPGA to RT with the use of FIFO (that is what I understand). I referred the following example and succeeded in transferring a low frequency signal (range of KHz) from FPGA to RT as the sampling rate is in micro seconds.
http://www.ni.com/white-paper/11198/en
But I want to have sampling rate in nanoseconds if I want to take a signal of 20 MHz. How can I achieve that? Is there any alternate method apart from FIFO to achieve that task?
I am a starter in Labview, your help will be appreciated...
Thank you....

Hello Jimmie_A
Thank you very much for your help. The example really helped me to understand the input/out operation.
My application is to take a 20 MHz 'Phase Modulated' signal to FPGA and demodulate it. As a first step i want to take any arbitary signal of Mhz range and examine it if i am getting any phase noise or any other change in attributes.
I tried to give input signal to FPGA transferred it to RT and plotted it. Also from RT i sent the signal again on FPGA out pin to check on Oscilloscope and compare with the given input signal. Now my problem is I can see the signal on the RT signal plotter but I am not getting any signal back on FPGA pin. I have used Two different FIFOs for Target to Host and Host to Target communication.
It will be helpfull for me if you comment on my designed program for the said purpose. Here I have attached the screenshot of RT front panel. Also attached my FPGA and HOST vi files.
Thanks alot....
Attachments:
Host.jpg ‏141 KB
FPGA.vi ‏58 KB
Host.vi ‏400 KB

Similar Messages

  • Transfering signal from Host to FPGA

    Hi:
    I am new to labview FPGA. I am trying to set
    up a transmitter by using Ni 5640r for my project.
    Right now i can only generate OFDM signal from labview itself.
    After that I try to program FPGA but when I use oscilloscope to catch the
    signal, I failed.
    I think I may have trouble on transfering signal from Host to FPGA.
    Can somebody help me with that problem?
    Thanks
    Austin
    Attachments:
    PCP-OFDM.zip ‏1785 KB

    Hello,
    If you want to transfer data from the host to the FPGA you need to create a FIFO with the type set to ‘Host to Target – DMA’. When you then use it in the FPGA VI the only selection you can do is to read it. When you set the type to ‘Target to Host- DMA’ you can only write to it.
    Regards,
    Jimmie Adolph
    Systems Engineer Manager, National Instruments Northern Region
    Bring Me The Horizon - Sempiternal

  • Is it possible to get 2-ch signals from TDS2012 oscilloscope at the same time with LabVIEW "7.0"?

    Hi, everyone.
    I've been trying to get the signals from 2-ch of Tektronix TDS2012 oscilloscope at the same time using IVI connection with LabVIEW "7.0"
    I've already searched this developer zone for the answer.
    I've tried the famous example: "IviScope - Acq Dual Wfm Edge Triggered.vi"
    and it gave me the error message like:
    Error -1074110451 occurred at IviScope Initialize With Options.vi
    Possible reason(s):
    Driver Status:  (Hex 0xBFFA600D) Primary Error: (Hex 0xBFFA600D) The Config Server module is not present on the system.
    I think I've installed all~ the required softwares for IVI. For example, ICP 2.2, IVI engine 2.0.46, and tktds1k2k ivi (instrument driver for tds2012, in fact this one is for LabVIEW "7.1"... :-P)
    TDS2012 and my computer is connected through HPIB(GPIB) and it is shown on the MAX (a GPIB instrument as well as an IVI hardware asset)
    I've tried GPIB connection but it gives me asynchronous signals...
    Is it possible to get 2 signals at the same time with LabVIEW 7.0(not 7.1 or higher) by any means?
    What in the earth is the "Config Server" in this case?
    I don't need to sticking to IVI and any method to achieve my goal will be welcome.
    Could anyone give me the hint for this problem, plz?

    I think your problem is that the instrument specific driver is version 7.1 and you are using the class driver with 7.0. You can create your own 7.0 driver by downloading the LabWindows driver and using the Import CVI Instrument Driver under the Tools>Instrumentation menu.
    Since you don't seem to have a good reason to use IVI, why don't you try the native LabVIEW driver at http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=E3B19B3E9139659CE034080020E748.... I believe you have all of the functions to setup each channel and then when you trigger the scope, both channels will be captured. You would then transfer each waveform separately. The data is always read sequentially but that's not important as long as both channels are triggered at the same time.

  • Most efficient data transfer between RT and FPGA

    This post is related to THIS post about DMA overhead.
    I am currently investigating themost efficient way to transfer a set of variables to a FPGA target for out application.  We have been using DMA FIFOs for communications in both directions (to and from FPGA) but I'm recently questioning whether this is the most efficient approach.
    Our application must communicate several parameters (around 120 different variables in total) to the FPGA.  Approximately 16 of these are critical meaning that they must be sent every iteration of our RT control loop.  The others are also important but can be sent at a slightly slower rate without jeopardising the integrity of our system.  Until now we have sent these 16 critical parameters plus ONE non-critical parameter over a DMA to the FPGA card.  Each 32-bit value sent incorporates an ID which allows the FPGA to demultiplex to the appropriate global variables on the FPGA.  Thus over time (we run a 20kHz control loop on the RT system - we have a complete set of paramaters sent @ approx. 200Hz).  The DMA transfers are currently a relatively large factor in limiting the execution speed of our RT loop.  Of the 50us available per time-slot running at 20kHz approximately 12-20us of these are the DMA transfers to and from the FPGA target.  Our FPGA loop is running at 8MHz.
    According to NI the most efficient way to transfer data to a FPGA target is via DMA.  While this may in general be true, I have found that for SMALL amounts of data, DMA is not terribly efficient in terms of speed.  Below is a screenshot of a benchmark program I have been using to test the efficiency of different types of transfer to the FPGA.  In the test I create a 32MB data set (Except for the FXP values which are only present for comparison - they have no pertinence to this issue at the moment) which is sent to the FPGA over DMA in differing sized blocks (with the number of DMA writes times the array size being constant).  We thus move from a single really large DMA transfer to a multitude of extremely small transfers and monitor the time taken for each mode and data type.  The FPGA sends a response to the DMA transfers so that we can be sure that when reading the response DMA that ALL of the data has actually arrived on the FPGA target and is not simply buffered by the system.
    We see that the minimum round-time for the DMA Write and subsequent DMA read for confirmation is approximately 30us.  When sending less than 800 Bytes, this time is essentially constant per packet.  Only when we start sending more than 800 Bytes at a time do we see an increase in the time taken per packet.  A packet of 1 Byte and a packet of 800 Bytes take approxiamtely the SAME time to transfer.  Our application is sending 64 Bytes of critical information to the FPGA target each time meaning that we are clearly in the "less efficient" region of DMA transfers.
    If we compare the times taken when communication over FP controls we see that irrespective of how many controls we write at a time, the overall throughput is constant with a timing of 2.7us for 80 Bytes.  For a small dedicated set of parameters, the usage of front panel controls seems to be significantly faster than sending per DMA.  Once we need to send more than 800 Bytes, the DMA starts to become rapidly more efficient.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

    So to continue:
    For small data sets the usage of FP controls may be faster than DMAs.  OK.  But we're always told that each and every FP control takes up resources, so how much more expensive is the varsion with FP controls over the DMA.
    According to the resource usage guide for the card I'm using (HERE) the following is true:
    DMA (1023 Elements, I32, no Arbitration) : 604 Flip-Flops 733 LUT 1 Block RAM
    1x I32 FP Control: 52 Flip-Flops 32 LUTs 0 Block RAM
    So the comparison would seem to yield the following result (for 16 elements).
    DMA : 604 FLip-Flops 733 LUT 1 Block RAM
    FP : 832 FLip-Flops 512 LUT 0 Block RAM
    We require more FLip-Flops, less LUTs and no Block RAM.  It's a swings and roundabouts scenario.  Depending on which resources are actually limited on the target, one version or the other may be preferred.
    However, upon thinking further I realised something else.  When we use the DMA, it is purely a communications channel.  Upon arrival, we unpack the values and store them into global variables in order to make the values available within the FPGA program.  We also multiplex other values in the DMA so we can't simply arrange the code to be fed directly from the DMA which would negate the need for the globals at all.  The FP controls, however, ARE already persistent data storage values and assuming we pass the values along a wire into subVIs, we don't need additional globals in this scenario.  So the burning question is "How expensive are globals?".  The PDF linked to above does not explicitly mention the difference in cost between FP controls and globals so I'll have to assume they're similar.  This of course massively changes the conclusion arrived to earlier.
    The comparison now becomes:
    DMA + Globals : 1436 Flip-Flops 1245 LUTs 1 Block RAM
    FP : 832 FLip-Flops 512 LUT 0 Block RAM
    This seems very surprising to me.  I'm suspiscious of my own conclusion here.  Can someone with more knowledge of the resource requirements differences between Globals and FP controls weigh in?  If this is really the case, we need to re-think our approach to communications between RT and FPGA to most likely employ a hybrid approach.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • DMA transfer on Interupt from Counter on NI6602

    I try to use DMA transfer on Interupt from Counters on the NI6602
    In addition to the programm there are some external input/outputs on the NI 6602 Card connected:
    Most important are:
    Counter 0 is working as an A,B,Z X4 Encoder, so the value represents the position of a antenna, and is reseted after every turn around.
    Well this whole thing is in hardware counting, so it should be ok.
    I need to get the value of the encoder on specific places of the antenna. Allways when, i trigger the transmitter of the radarsystem with a (gated) PRF-Signal generated by counter 2 on the NI 6602.
    So i give this signal as gate into counter 1.
    On counter 1 i activate the DMA and DMA_INT, and also the global interrupt r
    egister.
    I also create an array, to store encoder data in it with the ISR, just to avoid some direct printf.
    However i print the results later.
    So this results are looking like once the interupt has been detected, it will not detect any new one, because just the same data is there till the encoder changes.
    So one question is, how to reset the interupt, so a new one will be recognized?
    I will have about 3000 Interupts per second.
    source is attached
    Thanks a lot
    Mario Behn
    Attachments:
    main.cpp ‏15 KB

    dear Steven_T:
            the registers are In my enclosure ,if you have some ideas,please reply me  first time.thank you !
    Attachments:
    PCI6602.pdf ‏818 KB

  • TTL signals from motor outputs

    I'm currently using a stepper motor with a MID-7604 drive and a PCI-7344 controller. I would like to output TTL signals from the drive at certain motor positions, but do not have an encoder (which is required for breakpoint signals). Is it possible to `construct' a TTL type signal using the low-level motion functions in LabView, and then output them through a motor axis that is not currently being used?

    Hello,
    Depending on the type of output that you want to generate (single pulse or pulse train) you could use the Digital IO port of the motion controller with the Set IO Port MOMO.flx function to toggle DIO lines or you could use the Configure PWM Output.flx function to generate a pulse train.  The downside is that this will be software timed based on the current position as determined by the controller.
    There is not any way to manually modify the motion control signals that are generated by the controller.  That is all handled by the FPGA of the controller.
    Regards,
    Scott R.
    Applications Engineer
    National Instruments

  • How can i transfer my music from one account to another on a different computer?

    So i have an itunes account on dell laptop and i share that account with other famliy members. I recently bought a mac pro and wanted to create a new account that way i can use icloud, is there any possible way to transfer everything from my old library to my new one or will i lose everything i had on my phone and ipods? Or is it possible to have one account but multiple icloud accounts?

    lisafromwindermere wrote:
    I want to start my own account separate from my parents. Can I transfer my music from one account to another? If so, how?
    Lisa,
    Just get copies of the song files and add them to your iTunes library.  With the exception of any DRM-protected files (purchased before mid-2009 and never upgraded) they will play fine, even though they are technically associated with the original account.

  • Transfer cost price from free of charge item to main item but not for VPRS

    Hi,
    I want to transfer cost price from free of charge item to main item but not for VPRS but for a new Z contidion type.
    For CO-PA proposes. Can you help me with This?
    Catarina Alves

    hi,
    transfer of cost from sub item to main item is configured in the delivery to billing copy control for the main item. go to VTFL  > select the required item cateogry > here at the bottom you will find a check box Cummulate cost. Tick it.
    Not really what you meant COPA purposes. But the pricing conditions are mapped to COPA value fields at KE4I transaction.
    regards
    sadhu kishore

  • How do I transfer photos/videos from my Iphone 5 to my Macbook Air. I can do so with my Iphone 4s but not with my Iphone 5

    How do I transfer photos/videos from my Iphone 5 to my Macbook Air. I can do so using my Iphone 4s but not with my Iphone 5

    See this User Hint: https://discussions.apple.com/docs/DOC-3141

  • How do I transfer a rental from my iphone 5 to my laptop??

    How do I transfer a rental from my iphone 5 to my laptop?

    Sorry, but you cannot. If you rent a movie or show on your iPhone, you can only watch it on your iPhone. If you want to watch the movie/show on your laptop, you'll have to rent it again.
    Regards.

  • How do I transfer purchased songs from my iphone 4g to my macbook pc?

    How do I transfer purchased songs from my iphone 4g to my macbook pc music library in itunes?

    Use the Transfer Purchases command in the iTunes File menu.
    (58188)

  • How can I transfer Voice Memos from my iPhone to my computer?

    Dear Iphone users,
    I have a very nice Iphone. I know how to transfer the pictures on my Iphone to my computer but I do not know how to transfer my "audios" (from the "dictaphone" function in French). How can I do that ?
    Thank you very much

    iTunes automatically syncs voice memos to your iTunes library when you connect iPhone to your computer. This lets you listen to voice memos on your computer and provides a backup if you delete them from iPhone.
    Voice memos are synced to the Voice Memos playlist. iTunes creates the playlist if it doesn’t exist. When you sync voice memos to iTunes, they remain in the Voice Memos application until you delete them. If you delete a voice memo on iPhone, it isn’t deleted from the Voice Memos playlist in iTunes. However, if you delete a voice memo from iTunes, it is deleted from iPhone the next time you sync with iTunes.
    You can sync the iTunes Voice Memos playlist to the iPod application on iPhone using the Music pane in iTunes.
    Sync the Voice Memos playlist to iPhone:
    1. Connect iPhone to your computer.
    2. In iTunes, select iPhone in the sidebar.
    3. Select the Music tab.
    4. Select the “Include voice memos” checkbox and click Apply.

  • How do I transfer voice memos from my iPhone to iTunes?

    How do I transfer voice memos from my iPhone5 to iTunes?

    In the Sync settings area of iTunes when the phone is connected, you check the Music area, and check off Voice Memos too. I'm not sure right now what the exact verbiage is but it is where you check off what music you want to sync.

  • How do you transfer voice memos from your phone to your macbook? I don't want voice memos from my computer to go to my phone. It's so easy with other PC's.

    how do you transfer voice memos from your phone to your macbook? I don't want voice memos from my computer to go to my phone. It's so easy with other PC's.

    Hi King Arthur 2000,
    Voice memos can be shared back to a computer in a number of different ways, described in this article -
    Share a voice memo - Voice Memos - iPhone Basics - Apple Support
    http://support.apple.com/kb/TI227
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How do you transfer voice memos from your phone to computer

    How do you transfer voice memos from your phone to computer

    Is it possible to transfer a voice memo to my computer and then convert that to text that can be printed?
    Here is my problem. I study harbor seals and have always taken hand written notes that then must be typed into the computer when I get home from an observation. Is there any way I can dictate what I see to a voice memo and then have that translated to text. If there is which would do it best an iphone or ipad (I have neither, just a tracphone for an emergency).
    Perhaps this is asking too much from the technology available but it would be a great help if I could do this.
    Thanks for any help you can give!

Maybe you are looking for