Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Using myRIO analog output (C/AO0) and analog input (C/AI0)

Hi everyone. I'm working on myRIO. I want to apply a simulate signal of triangle (-1V  to +1V) to my sensor through analog output (C/AO0). Then, I want to check the applied signal using analog input (C/AI0) display on waveform chart. The problem is, I don't get the triangle (-1V to +1V) signal back, I only get 1 value only. The VI as attach below. Is there any ways to get the desire result. I really need help on this. I have try to work on this for almost 2 weeks and try to search every where but none really help. TQ

0 Kudos
Message 1 of 2
(2,546 Views)

The input for analog output says (1 sample) so it's going to output one point (probably the first point in the waveform. On a compact RIO what you'd want to do is to transfer the whole waveform through a Host-To-FPGA stream. There's some pretty good examples here:https://www.ni.com/en/support/documentation/supplemental/09/ni-compactrio-waveform-reference-library...

 

There is probably an easier way to do that with the myRIO though but I'm not familiar enough to know what example to point you to.

0 Kudos
Message 2 of 2
(2,511 Views)