{"id":3687,"date":"2019-02-12T16:09:37","date_gmt":"2019-02-12T16:09:37","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/8-smart-instrument-interfaces\/get_asc\/"},"modified":"2025-08-21T13:26:00","modified_gmt":"2025-08-21T18:26:00","slug":"get_asc","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/16-smart-instrument-interfaces\/get_asc\/","title":{"rendered":"get_asc"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Interface with an intelligent instrument to retrieve values and store them in a CyFlex variable, supporting periodic polling via timers and optional event-driven setting of values.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>get_asc<\/strong> &lt;device&gt; &lt;output_label&gt; &lt;timer&gt; &lt;valid_label&gt; &lt;valid_count&gt; [set_label] [evnt] &amp;<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td>\n<p>device<\/p>\n<\/td>\n<td>\n<p>Specify the root name of the device configuration file in the \/specs directory with a &#8216;.cfg&#8217; extension.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>output_label<\/p>\n<\/td>\n<td>\n<p>Specify the variable label where the response result value will be stored.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>timer<\/p>\n<\/td>\n<td>\n<p>Specify the timer value in milliseconds or a &#8216;-&#8216; (dash) for continuous broadcasts.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>valid_label<\/p>\n<\/td>\n<td>\n<p>Specify the CyFlex logical variable label which indicating response validity.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>valid_count<\/p>\n<\/td>\n<td>\n<p>Specify an interval count for validity.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>set_label<\/p>\n<\/td>\n<td>\n<p>Optional. Specify the label of an CyFlex real variable whose value will be used for setting operations.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>evnt<\/p>\n<\/td>\n<td>\n<p>Optional. Specify the event to trigger the &#8216;set&#8217; operation.\u00a0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>get_asc<\/strong> DW DW_temp &#8211; DW_valid 5 DW_set DW_setev &amp;<br \/>\nThis example is for a device called &#8220;DW&#8221; which broadcasts a temperature value. The temperature value will be placed in the variable &#8216;DW_temp&#8217; whenever it is received. The DW_valid flag will remain TRUE unless no broadcast value is received for 5 seconds. If the &#8216;DW_setev&#8217; event is received, the value of the DW_set variable will be sent to the DW device.<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>&nbsp;<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p>See the device configuration file, e.g., cyflex\/specs.def\/DW.cfg.<\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Interface with an intelligent instrument to retrieve values and store them in a CyFlex variable, supporting periodic polling via timers and optional event-driven setting of values. Enter: get_asc &lt;device&gt; &lt;output_label&gt; &lt;timer&gt; &lt;valid_label&gt; &lt;valid_count&gt; [set_label] [evnt] &amp; Where: device Specify the root name of the device configuration file in the \/specs directory with a &#8216;.cfg&#8217; [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1955,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3687","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3687","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=3687"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3687\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1955"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}