LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a sine wave at myRIO analog output

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. 

Download All
0 Kudos
Message 1 of 3
(3,269 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(3,236 Views)

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?

0 Kudos
Message 3 of 3
(3,227 Views)