Simulate the sine wave using LabVIEW FPGA with NOR-myRIO and display in real time

Hello

I'm relatively new to LabVIEW FPGA. I am trying to test (and later apply) controllers high speed on myRIO.

At this point, I'm trying to simulate the sine wave from 1 to 10 kHz using Sinewave generator VI express. I also intend to display the sine wave on the time real (RT) using FIFO. However, I had a bit of trouble to understaing various synchronization parameters.

1. how to encode information about the sampling frequency generating sine wave? (The side FPGA vi requires only the frequency of the signal and possibly phase and does not rate update lines)

2. how to estimate the number of items in a FIFO? (that is, the relationship between the rate of updates to loop (RT), the signal frequency, sampling frequency and the number of items in the FIFO)

It would be great if we could share a very simple program (side host and target) that did something similar.

Thank you

MILIN

Milot,

I think the problem is the type of data in your FIFO. Your FIFO is configured to use a data type of I16. The problem is the number, it displays only ever will be-1, 0 or 1. To resolve this problem, you must send the sine wave as a fixed point data and convert it to a double on the side of the RT. This should significantly improve your resolution.

Tags: NI Products

Similar Questions

  • The sine wave generation

    Hi guys,.

    Sorry I have a very simple problem. But it seems that I am too new to LabVIEW... and / or have no idea. I've tried a few things but nothing worked propperly.

    I need to generate a sine wave with the following of the flexible parameters.

    f = 0.02 Hz... 10 Hz

    Range = 0... 500

    Offset of 1500

    I would like to see a cursor moving and get off after the sine wave. The parameters should be changed at any time that the generation of the sine wave inside a While loop. If that would work I intend to integrate that in the code I wrote for an Arduino, Makerhub, slavery... The values already referring...

    I tried allmost all the generation of singnal live that I could find but nothing has worked. Calendar completely proven on a waiting insid the while...

    Frequencies below 1 Hz is the fast cursor again... WTF...

    A sinusoidal 1 Hz signal should make the cursor up and down 1 times per second... or am I totally wrong.

    Ah... Perhaps another question. If possible, I want to count the period. For example, after 4 times of the sine wave stop all programs.

    Any help apprechiated... I work with LabVIEW 2012SP1

    First of all, please understand this waveform generating function works. You specify a waveform (amplitude, frequency, etc.) and whenever you call the function, it returns all the wave specified points.

    You can set the number of points with the #s of the info of sampling pole control. As you put the function in a loop, each itaration gives you #s number of points (1000 in your case). You always get a sine wave on your cursor because each iteration returns a different set of 1000 points (this is because of the method, the function calculates the waveform).

    The easiest way to create a sine wave is using the sinus (mathematics, primary, Tigonometric, sine) function. You must use the iteration of the I of the loop counter so that the entry of the sine function. Note that the entry is in radians.

    With a little math, you can easily produce and display a sinusoid at 1 Hz.

    Kind regards

    Adam Boros

  • Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.

    Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.

    You have placed your beam to insert at the end of your text on page 13 and then apply Insert menu: Page Break? In the v5.6.2, Pages I just add a new page to a section of four pages to this approach.

  • I am new to the ethernet communication using labview. I don't have any material. I have two laptop, I need to send and receive data through these 2 portable by using labview. Kindly help me on this.

    I am new to the ethernet communication using labview. I don't have any material. I have two laptop, I need to send and receive data through these 2 portable by using labview. Kindly help me on this.

    Dennis has already said: for a direct PC - PC connection, you need a cross over cable. If you connect through a router or a switch, you use a standard cable.

  • I can't open the RAW files from my Nikon D800 (i.e. NEF files).  I use a Mac with Photoshop CS5 and El Capitan 10.11.2 version running.  I get a message "could not complete your request because the file appears to be a model of camera that is n

    I can't open the RAW files from my Nikon D800 (i.e. NEF files).  I use a Mac with Photoshop CS5 and El Capitan 10.11.2 version running.  I get a message that "could not complete your request because the file appears to be a model of camera that is not supported by the installed version of Camera Raw. Please visit the Camera Raw help documentation for more information. "Yet the Nikon D800 is on the list of supported devices.  Can anyone help?

    And temporarily disable the Gatekeeper by allowing downloads from anywhere, or your installer will be marked as 'damaged' because that CS5 is out before Gatekeeper and is not "signed" that is not approved.

  • I use a PC with Windows 10 and Lightroom 6.1.1. When in the develop Module of Lightroom freezes when I try to edit the next picture after correcting the first.

    I use a PC with Windows 10 and Lightroom 6.1.1.  As soon as I want to move from a photo retouched to another in the develop Module, Lightroom freezes.  Can you help me?

    Hi Petra,

    > Try disabling the option of GPU in the Lightroom > edit > Preferences > Performance tab

    > Update your graphics card driver

    Hope this helps

    ~ Assani

  • I wish that the tabs colorful. is it possible with Firefox? And or each new topic have a different color tab.

    I wish that the tabs colorful. is it possible with Firefox? And or each new topic have a different color tab.

    The ColorfulTabs extension can be useful for you.

  • Can I customize the desktop icons using my own photos / / photos? And how?

    Can I customize the desktop icons using my own photos / / photos? And how?

    * original title - customize the stock icons? And how? *

    Take the pix you want to use and convert to ICO file type.

    Image Converter online free
    http://www.coolutils.com/online/image-converter/

    Place the pix that results in a Windows folder. Right click on a shortcut. Properties | Change icon and navigate to the folder and select the ICO pix you want to use.

    If the original size of the pix is too big for what it work, you can make them smaller before changing to an ICO with this free tool, unless you already have a program for resizing.

    PIX Resizer
    http://BlueFive.pair.com/PixResizer.htm

  • The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP by David Powers

    The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP by David powers:

    This book would help me learn more about Spry and Ajax and how applications may be lodged with them, if I have my e-commerce site works on a compiled C code cart (ShopSite) but supports scripts PHP server-side or is - this only for shopping carts based on PHP itself (like X-Cart)?

    I'm not sure. Someone please let me know if I can buy this book. Thank you.

    ahsenabro wrote:
    > 1. What I need to be a developer/programmer to learn from this book or
    > can a savvy entrepreneur can also get some gems out of it and direct sound
    > programmer?

    You don't need no prior knowledge of PHP or Ajax, but you must
    know the basics of HTML and CSS. As I say in the introduction, "You."
    don't need to be an expert, but do not have a curious mind.
    It teaches the basics of web site design, or he's trying to list
    each unique feature in Dreamweaver CS3. There are many other books
    to fill this gap. However, by working through this book, you will gain a
    in-depth knowledge of the most important features of Dreamweaver.

    > 2. I am interested in buying this book especially to implement cool Ajax/Spry
    > stuff on my e-commerce site. I wonder about PHP, because the content of the book
    > mentions making a PHP site. Now I realize this book isn't on purchases
    > carts, but the Ajax/Spry stuff can be implemented on e-commerce sites, right?

    The book provides detailed coverage of the features of Spry 1.4
    Dreamweaver CS3, which can be applied to any site. With minor
    adjustment, you can also use Spry 1.6. It is important to realize,
    However, the features of Spry/Ajax in Dreamweaver CS3 * cover of no
    asynchronous requests to the server. The ability to communicate
    asynchronously with the server has been added in Spry 1.6. If it has
    the asynchronous server calls and answers you are looking for, your
    programmer will need to dig into the documentation for Spry 1.6 on the
    Adobe Labs site and manually code it.

    The Spry features covered in the book are Spry, Spry UI widgets effects
    (menu accordion, tabbed and folding panels), Spry
    Widgets of validation and Spry XML data sets.

    > I just want to know if I can learn and implement Ajax/Spry apps on my
    > HTML/CSS-based simple pages, on a server that allows PHP scripts on the server side
    > but the pages themselves are not with the .php extension. This book is still going
    > apply?

    Yes. All Spry techniques can be used on any web page. This is not
    you have to be a PHP one.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Problem of using IE 8 with Hyperion Planning and workspace

    Has anyone tried using IE 8 with Hyperion Planning and workspace? I found that sometimes it has the error message and cannot allow users to log out.

    Hello
    We tried IE8 with system 11. It simply doesn't get it. IE8 is not officially supported yet. And over the years, I have learned this lesson: never use a new browser, unless it is officially in charge.
    You can find a page very useful here in this link to see what is currently supported for your release.
    http://www.Oracle.com/technology/products/bi/Hyperion-supported-platforms.html

    Alp

  • I have the model of macbook air 2016 with i5 Professor and 8 GB ram... since it's the fastest ssd, but I have not seen all speeds up to now, I want to say is bcz I need to have usb 3.0 USB key or hard drive to see the speed of the ssd to usb 2.0 will work

    I have the model of macbook air 2016 with i5 Professor and 8 GB ram... since it's the fastest ssd, but I have not seen all speeds up to now, I want to say is bcz I need to have usb 3.0 USB key or hard drive to see the speed of the ssd to usb 2.0 will work

    What do you mean, your message is not clear.

  • Can bookmarks be portable to multiple computers? Is it an option to connect and use my favorites with multiple computers and locations? Thank you

    Can bookmarks be portable to multiple computers? Is it an option to connect and use my favorites with multiple computers and locations? Thank you

    https://support.Mozilla.com/en-us/KB/what-Firefox-sync

  • Display in real time with a delayed recording LV6.1

    Hi, I need help with LabView 6.1

    I have a hardware module FieldPoint where I read 8 channels for thermocouple. I want to display the value of the thermocouples in real time (or as close as I can manage) all saving the values in a CSV file at discrete time intervals (every 10 seconds). I am able to display the values in real-time, but the recorder real-time records, produce a lot too much data. I'm able to delay the recording interval, but in bulk then display in real time!

    The following example shows a method I've tried. The delay time in the loop of logging seems to delay the entire program. I also tried to use the loop of the logging of a sequence (using a simple delay of 'Wait') structure and a structure of matter (with a counter and only do the loop of logging real when the counter gets to 1). I tried to configure synchronous display without success.

    I'm having no luck and wonder if someone could point me in the right direction?

    Ah, the benefits of time.

    I think that I managed to create a solution for me using a different tact. Instead of using individual meters of delay, I used a "trigger time" approach as demonstrated in this thread;

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=286988&query.ID=6280650#M286988

    Currently, it is limited because it will allow only a delay of 59 seconds between the readings, but this should be relatively easy to solve. The solution works continuously update the display with a slight delay to help cope aging computers, and then the button "Log Data" is selected writing worksheet function is called second pushed together as selected. Quite a simple and elegant solution I think.

  • In version 13.0 is selected the option "when Firefox starts to show my windows and tabs from last time", but I always get default page of Firefox.

    Even thought is selected the option ' when Firefox starts to show my windows and tabs from last time "I always have the default page of Firefox.

    Hi Goldie_,

    I guess you don't watch this page when you closed Firefox last time. Also that you are not in private, correct navigation mode? Looks like it is maybe a problem with Firefox being able to save your file pref.js. You should try the steps listed in the preferences section that won't save trouble. Try and let me know how it goes.

    Hope this helps!

  • Acquiring temp with NI 9214 using labview fpga

    Hello

    I'm a student, very new to labview and data acquisition. I had problems with a thermocouple type T of wiring to a NI 9214 module and writing a program labview FPGA to acquire temperatures. I've been struggling with this and for a long time to research on the web without success.

    Please find attached the code that I work with. I was told to use the value obtained from the CJC and converted using the formula I found here ( http://zone.ni.com/reference/en-XX/help/370984T-01/criodevicehelp/9214_converting/ ) and arrays of conductor thermocouple type T to find the temperature, but I didn't get anything that makes sense.

    Please can someone help me?

    Jeremiah

    Hi Jeremiah,.

    You use this 9214 in cRIO chassis? If Yes, which model?

    Regarding the conversion of the data, you have to take care to recover the data from the side host (you'll need a separate VI) and taking care of converting it. When you mention that you don't get what makes sense, what exactly read / do you expect?

    I strongly suggest you open and tinkering with the example of the host/FPGA shipping screw to the 9214 (NI 9214 Get Started.lvproj, found in the program NIUninstaller Instruments\LabVIEW 2013\examples\CompactRIO\Module Specific\NI 9214\NI 9214 Getting Started). It should allow you to have a good knowledge in understanding the relationship between the host and the screw of the FPGA.

    I hope this helps!

Maybe you are looking for

  • iCloud works not for 30 minutes now

    Nothing about the State of the site, but can not to emails on my Mac or via a browser. Anyone got this?

  • Change the location of the bookmarks

    I would like to change the location of my favorites. In the past, I managed by typing in "subject: config ' and then enter a name, preferably new"browser.bookmarks.file"with a value of my new location of the bookmark file. With the 3.6.13 version, it

  • 11.4 iTunes on Mac not recognizing iPhone 4S more

    Hello. It's my first post here, so really, really hoping that someone can help me! My 2 year old somehow managed to make a hard reset of my iPhone and all that he deleted accordingly. Went to do a backup on my Mac iTunes restore as I always do, howev

  • How to open PDF from a dvd

    My laptop is a HP Pavilion dv6.  How can I access a pdf of a lesson (s) purchased dvd guitar? It is said when I insert dvd my computor will show me how.  I put in the latest version of Adobe Acrobat, which is the program required that he said, but th

  • Alignment failed messages

    HP OfficeJet 6500, 7109 has with Windows 7 computer Message on the printer that says "load paper" when there is paper left.  I click OK.  He goes into a mode of realignment of 7 minutes. Then I get a message saying "alignment failed" I press OK and p