{"id":3941,"date":"2019-02-12T16:10:12","date_gmt":"2019-02-12T16:10:12","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/19-variables-and-computations\/sine\/"},"modified":"2026-05-27T15:55:37","modified_gmt":"2026-05-27T20:55:37","slug":"sine","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/sine\/","title":{"rendered":"sine"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Apply a sine wave to a specified CyFlex variable with a given offset, amplitude, frequency, and duration, updating at the CyFlex fast process interval.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>sine<\/strong> &lt;variable&gt; &lt;offset&gt; &lt;amplitude&gt; &lt;frequency&gt; &lt;duration&gt;<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td>\n<p>variable<\/p>\n<\/td>\n<td>\n<p>Specify the name of the current CyFlex variable to which a sine wave is applied.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>offset<\/p>\n<\/td>\n<td>\n<p>Specify the offset value to superimpose on the sine function in units of the target variable.\u00a0This may also be the label of a variable containing the value of the offset.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>amplitude<\/p>\n<\/td>\n<td>\n<p>Specify the amplitude of sine function in\u00a0units of target variable. This may also be the label of a variable containing the value of the amplitude.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>frequency<\/p>\n<\/td>\n<td>\n<p>Specify the frequency of sine function in hertz. This may also be the label of a variable containing the value of the frequency.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>duration<\/p>\n<\/td>\n<td>\n<p>Specify the duration of time in seconds to apply sine function. This may also be the label of a variable containing the value of the duration. If duration is less than or equal to zero, the sine continues indefinitely until stopped.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>sine<\/strong> gen_sine 10 3 1 10<\/p>\n<p>The above command applies a sine function to the variable gen_sine as follows:<\/p>\n<ul>\n<li>offset of 10<\/li>\n<li>amplitude of +\/- 3<\/li>\n<li>frequency of 1 hz<\/li>\n<li>duration of 10 seconds<\/li>\n<\/ul>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>The sine function is applied for at least the specified duration, plus time to end at the offset if applicable.<\/p>\n<p>Smoothness depends on processor availability and is updated at the CyFlex fast process interval (typically 20 Hz).<\/p>\n<p>The specified variable must be a valid existing CyFlex variable.<\/p>\n<p>This command does not create new variables.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/framp\/\">framp<\/a>, <a href=\"\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/ramp\/\">ramp<\/a><\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Apply a sine wave to a specified CyFlex variable with a given offset, amplitude, frequency, and duration, updating at the CyFlex fast process interval. Enter: sine &lt;variable&gt; &lt;offset&gt; &lt;amplitude&gt; &lt;frequency&gt; &lt;duration&gt; Where: variable Specify the name of the current CyFlex variable to which a sine wave is applied. offset Specify the offset value to [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1948,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3941","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3941"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3941\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1948"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}