Search the Community

Showing results for tags 'ramping'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 1 result

  1. Hi...  This is kinda simple.. but.. methinks I may have a problem using the wrong Data Type with the REPEAT, UNTIL, END_REPEATE function: I'm trying to create a ramping function at the start of a position stream.  The idea is to start the first point at zero and take 3 seconds to ramp up tp a preset "Percentage" of full amplitude of a changing position curve... Here's the curve in blue:                   Normally, at first start of this curve, there is a rapid rise from zero ... which is too almost too fast.. I would like to bring the curve into operation, slowly... from zero .. Like a Volume Control .. Here, I'm trying to use the REPEAT..UNTIL ...END_REPEAT ...   The plan was to start at zero.. then, each CPU cycle add .0001 to "Num" ... and keep doing that until Num is greater than 3. During this time, Num/3.0 is being used to multiply the position signal.   I'm expecting Num to go from 0.0  to  3.0 in 3000 CPU cycles  ..                  But... It doesn't .. instead it instantly (or, perhaps takes just a few CPU cycles) jumps to 3.0 :                            Anyone out there know of a better way ro ramp a signal from zero to full in a set time? Thanks much... Regards, Michael