07-04-2018 01:23 AM
Hi,
I want to generate a roughly 200mV 50Hz sine wave on one of the channels of the myRIO audio output. I want to use the FPGA on the myRIO to save CPU space. I am struggling to find a solution. I have attached my main.vi. I am also brand new to labVIEW.
Regards
Solved! Go to Solution.
07-04-2018 01:45 AM - edited 07-04-2018 01:45 AM
Hi AKid,
is that VI meant to run on the FPGA? Are you sure all those functions/ExpressVIs are allowed for FPGA programming?
Did you compile this VI for FPGA? Did you get any error messages while trying so?
I am also brand new to labVIEW.
Did you notice those learning resources offered in the header of this LabVIEW board?
I suggest 3 steps:
1. Learn LabVIEW basics.
2. Learn LabVIEW-RealTime basics.
3. Learn LabVIEW-FPGA basics.
(This may sound harsh, but is good advice from own experience.)
07-06-2018 03:31 PM
Hi AKid,
It's probably best to put this on the RT or the host computer.
Is there a reason you want this done on the FPGA? That's used for simple and fast computation usually because there is such limited space on the chip.
Best
David
07-06-2018 03:35 PM - edited 07-06-2018 03:36 PM
07-10-2018 08:38 PM
Hi Guys,
Thanks for the advice. I did the FPGA module at ni learn and got what I needed to know. I have another question.
So I can generate my sine wave on the fpga and in the host VI, I can change my amplitude and frequency through the front panel in real time, however, when I make this host VI a sub VI to use in my main.vi, as attached below, it doesn't change the variables in real time. What am I doing wrong? Regards
07-11-2018 12:50 AM - edited 07-11-2018 12:51 AM
Hi AKid,
I did the FPGA module at ni learn and got what I needed to know.
Did you also take the (core) LabVIEW basics course?
What am I doing wrong?
THINK DATAFLOW!
Your "subVI" has a loop (minor fail) and waits for user input (big fail).
As the subVI does NOT open its frontpanel the input can never occur! Moreover you are using a headless RIO device: there is no display to show any frontpanels…
Simple solution: integrate to code of your subVI in the MainVI.