From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: DAQ for analog modulation technique

good evening sir 

 

I am using NI cRIO-9075 with an analog output module (NI 9263) attached, now i want to output an analog voltage (0 - 5V) with a frequency of 20kH. my question is " how do I modulate this voltage in LabVIEW ". thank  you.

 

regards 

0 Kudos
Message 1 of 3
(1,718 Views)

Hi lista,

 


@lista wrote:

I am using NI cRIO-9075 with an analog output module (NI 9263) attached, now i want to output an analog voltage (0 - 5V) with a frequency of 20kH. my question is " how do I modulate this voltage in LabVIEW ".


You just output your sine wave as you like it to.

I recommend to use the FPGA to be able to output samples at 20kHz. The ScanEngine does not support that frequency/sample rate…

Best regards,
GerdW


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

Hi lista,

 

If you open the Example Finder (LabVIEW > Help Menu > Find Examples...) and then search for "ni 9263", you can find a bunch of examples (some of which are not that relevant - the search seems a bit hit-and-miss to me).

 

I recommend taking a look at the one titled "NI 9263 Getting Started".

9263-gettingstarted.png

The example targets a cRIO-9068, but is clear enough that you could either:

  • Write a copy yourself from scratch, targeting your cRIO-9075
  • Follow the instructions available on the "Information" tab shown to the right of the screenshot above and go to ni.com/info and enter "fpgaex" for instructions transferring to a new target. The link (for your convenience) is here: Moving Examples to a Different FPGA Target

This project demonstrates the use of a RT "Host" VI that has some sliders, and an FPGA VI to output the voltages, along with the necessary communication between the two.

You'd probably want to control the sine wave from the RT system (simpler, but requires a loop rate on the RT equal to your sampling frequency), but you could alternatively send control parameters (amplitude, frequency) to the FPGA and have it do the calculation (allowing a higher frequency).

 

You'd need to additionally find some way to set those sliders on the cRIO - you could run it interactively, you could publish it as a web service, you could use Network Streams or similar to send commands over the network from a PC to the cRIO.

 


GCentral
0 Kudos
Message 3 of 3
(1,655 Views)