06-25-2019 06:03 PM - edited 06-25-2019 06:07 PM
Hello,
I am new to Labview and working with the myRIO and as part of a project, I need to generate a sinusoidal signal at the analog output port of the myRIO.
I am currently working on sending out a sinusoidal signal from the myRIO board to an oscilloscope using the attached VI. I'm controlling the amplitude and frequency of the wave with the attached front panel.
The problem I'm facing is that for any amplitude or frequency value that I give to the waveform, the waveform on the oscilloscope remains the same. For example, the output attached is for when I set an amplitude of 100 and frequency 200 from the front panel, and there is no variation in the oscilloscope waveform when I vary these parameters. I understand that here I am exceeding the output voltage limit of a myRIO (which is 5V), but even when I reduce the amplitude, I receive the same output- a peak to peak voltage of around 15V and frequency around 60Hz.
What might I be doing incorrectly?
I have ruled out oscilloscope errors by verifying the amplitude and frequency of a sine wave generated using a function generator.
06-26-2019 12:47 AM
Hi rsaini,
What might I be doing incorrectly?
You are using an ExpressVI.
And its evil DDT twin.
And you don't take care of that coercion dot…
And you don't care about the "Analog output (1 sample)" label.
You generate a (kind of) waveform with several samples, but try to output them with a function being able to handle just one sample (coercion dot!): that's the "magical" result of using ExpressVIs…
06-26-2019 02:46 PM
Thank you, GerdW. I think I understand the problem.
I read that since the default FPGA personality only allows single sample transfer out of the analog output, I would have to install the High Throughput Add-on to be able to send multiple samples. Would this be the correct approach in my case?