12-30-2014 10:44 AM
Greetings,
I am looking for a very basic tutorial on programing the FPGA on the myRIO.
Most of what I see does not go into the focused detail like your other 'getting
started' tutorials using myRIO. I want to create some digital logic (clock
signals) and A/D function and I need more precise timing and higher speed than
the RT system offers.
An alternative to a tutorial would be a simple FPGA program that starts with
the 'myRIO Custom FPGA Project' (located in the 'LabVIEW myRIO 2013' start
screen that outputs a 10khz square wave. Once I see how that is done I think I
can find my way to a solution.
Thank you!
Frank
Solved! Go to Solution.
12-30-2014 11:42 AM
Check through this: http://www.ni.com/white-paper/3027/en/
It talks about creating waves with the RIO architecture. It should be a good starting point.
12-30-2014 02:11 PM
Thank you! I'm sure the answers are there but I'm getting confused by the seemingly over wellming amout of information. What I could use to get started is just a simple example of modifing the "myRio FPGA example" to output a simple clock signal on DIOx.
Thank you again!
12-30-2014 02:27 PM - edited 12-30-2014 02:37 PM
If that's all you're looking for, you'd just have to add something like this to the example's FPGA VI diagram:
If you're looking for help with things like this, the Example Finder (under help in LabVIEW) is a great place to start. There are quite a few FPGA Module examples that cover these things. Maybe start by searching for PWM (Pulse Width Modulation).
12-31-2014 11:35 AM
Hi T-Rex,
Thank you for your help. I built the loop as you showed and I get an error when I compile. Can you explain what I am missing.
Frank
01-01-2015 11:07 PM
Try starting a program from scratch. That error makes it sound like you've got more than just the loop they gave you.
Use just that loop and see if the error still exists. Do you understand how the feedback node works to see what they put together?
01-02-2015 09:10 AM
Yeah, that error just means that ConnectorA/DIO0 is in use somewhere else... which you don't want. You can change that IO constant to anything else in your application that is not in use, and it should work.
01-02-2015 10:39 AM
Thank you nataftw and T-Rex for your time and patience! I started a program from scratch and I launched my first FPGA program. Now on to the less challenging step of building some code for my project!