01-10-2023 10:41 AM
Dear Community Members,
Hope you are doing well. I am new to using the NI USB-2612 board. I am trying to use it to generate a linear voltage ramp.
I know that this board has two analog outputs, a DAC with 16 bit resolution and an output range of ±10V.
By a simple calculation we can calculate the minimum step increase of the analog output (+10V - (-10V)/2^16 = 305µV).
My question is: how can I control the step size each time to a value that I set, for example 305µV ?
Thank you
01-10-2023 11:14 AM
01-12-2023 08:18 AM
First of all,
Thank you for your answer.
The problem is that I have to control the increment time of each point and I can't do it
Amities
01-12-2023 10:14 AM
01-12-2023 10:35 AM
@meiz wrote:
Dear Community Members,
Hope you are doing well. I am new to using the NI USB-2612 board. I am trying to use it to generate a linear voltage ramp.
I know that this board has two analog outputs, a DAC with 16 bit resolution and an output range of ±10V.
By a simple calculation we can calculate the minimum step increase of the analog output (+10V - (-10V)/2^16 = 305µV).
My question is: how can I control the step size each time to a value that I set, for example 305µV ?
Thank you
I wouldn't worry about the step size, rather figure out the ramp rate (V/s), and generate a linear ramp (array of voltages) to achieve the ramp with a given sampling rate.
Rule of thumb - slower the ramp rate, the finer the ramp (there is a limit beyond which you will see steps)
For example,
You want to generate a linear ramp 0-10V in 1 sec.
Now, the ramp rate becomes 10V/s, and the smoothness of the ramp now depends on how small the steps are in the ramp.
Choosing a higher sampling rate gives you the smallest step size but is limited by the step size.
With a step size of 305uV, to generate the 0-10V ramp with just 1 point at each step, your sweet spot would be a 32.787 kHz sampling rate. Choosing this rate will take the AO DAC through all successive steps from 0V to 10V.