Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog output ramp

Hi,

I created a program to write analog output and read input.I used Ni USB 7856R, CB 68LPR and CA 1000 for that. Now I want to make the analog output voltage ramp with time . What should I do?

0 Kudos
Message 1 of 4
(2,590 Views)

Your next step is to write code implementing the underlying ramp pattern. BTW, what sort of ramp rate (V/s) are you looking for? Sawtooth? Ramp from 0 or -10? Up to +10? Triangle? Could you post code or snippets instead of pictures of you code next time?

0 Kudos
Message 2 of 4
(2,557 Views)

Hi,

This is basically a feedback loop. I have created the ramp output voltage using shift registers ramping from 0 to +/-10. The analog input reading should be in I16 that means 10v corresponds to 32767 and -10v corresponds to -32767. But the AI graph shows something else. I have also changed the I/O configuration but that is also not working. What I need is for 10V the amplitude should show 32767.

Download All
0 Kudos
Message 3 of 4
(2,547 Views)

I'm not clear why you say the AI Graph (I assume you mean chart) shows something else. It appears to show exactly what you want (or at least what you programmed). A ramp from 0-10.

0 Kudos
Message 4 of 4
(2,536 Views)