Hi there,
I hope you will be able to help me out with a relatively simple task, i.e ramp voltage generation.
I should control a slope in ms (10-150 ms) of the ramp signal as well. The initial value is always zero. The maximum varies, I need to control it from the front panel. And I should be able to achieve the same maximum value with different slopes in ms. So I reckon calculation of the ramping slope won’t be helpful. Well the voltage reaches its maximum value, it should be constant. And after that I resetting this signal back to zero (manually from the front panel). So I don’t need a saw tooth generator, but a simple ramp generator.
I know about the ramp_pattern.vi but by using the “ramp by samples” mode I could not achieved the desired results. Either in terms of the maximum ramping value, or the slope in ms.
I’ve done some research over the forum as well, but could not a suitable solution for me.
https://forums.ni.com/t5/LabVIEW/staircase-ramp/m-p/3157979
The example from this thread is quite similar to what I am trying to achieve, but at the same time, I don’t need this stairs pattern. But could not work through how to simplify the presented code.
https://forums.ni.com/t5/LabVIEW/creating-ramp-and-constant-in-combination/m-p/206980
Similar situation, but in this case I could achieve the slope and the maximum ramp signal voltage at the same time.
Hardware:
cRIO 9068 and an NI 9263 AO (AO0 node in the attached code – STL freq meas.vi – STL freq meas.vi).
This AO control code is part of my acquisition code (controlling the voltage and measuring other parameters at the same time). It works in the scan mode with a sample rate of 5 ms.
A lot of other threads focus mainly on DAQ boards or still unsolved…so, if somebody has a clue to do this simple task, will highly appreciate any suggestions. Have a good one.