{"id":3951,"date":"2019-02-12T16:10:13","date_gmt":"2019-02-12T16:10:13","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/17-i-o-systems\/snapio_sim\/"},"modified":"2025-11-10T14:12:44","modified_gmt":"2025-11-10T19:12:44","slug":"snapio_sim","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/14-i-o-systems\/snapio_sim\/","title":{"rendered":"snapio_sim"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Simulate snapio devices without needing any hardware for the system.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>snapio_sim<\/strong> &lt;num_device&gt; [time] [fluxucation] [step]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 89.86%;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td style=\"width: 10.79%;\">\n<p>num_device<\/p>\n<\/td>\n<td style=\"width: 169.76%;\">\n<p>Specify the number of brains to simulate.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 10.79%;\">\n<p>fluxuation<\/p>\n<\/td>\n<td style=\"width: 169.76%;\">\n<p>Specify one of the following:<\/p>\n<ul>\n<li>rand to\u00a0use random numbers<\/li>\n<li>step to use stepped values<\/li>\n<li>vars to use CyFlex\u00a0variables<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 10.79%;\">\n<p>time<\/p>\n<\/td>\n<td style=\"width: 169.76%;\">\n<p>Specify the time to sleep between sends in milliseconds.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 10.79%;\">\n<p>step<\/p>\n<\/td>\n<td style=\"width: 169.76%;\">\n<p>If step is specified for fluxuation, specify the amount to step by.<\/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>snapio_sim<\/strong> 2 500 rand<\/p>\n<p>Where: 2 is for the number of brains rand is indicating to use random values 500 is idicating the amount of time between sends.<\/p>\n<p>Note: To use cyflex variables, there must be an ao_attr and\/or a do_attr file ran after the simulator is started. The ao_attr file and the do_attr file should match up with what is specified in the other system&#8217;s ai_attr file and di_attr file on the server side. Once they match up properly, setting ao channel 1 on the simulator side should correspond to ai channel 1 on the server side.<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>To use CyFlex variables, there must be an ao_attr and\/or a do_attr file run after the simulator is started. The ao_attr file and the do_attr file should match up with what is specified in the other system&#8217;s ai_attr file and di_attr file on the server side.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p>&nbsp;<\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Simulate snapio devices without needing any hardware for the system. Enter: snapio_sim &lt;num_device&gt; [time] [fluxucation] [step] Where: num_device Specify the number of brains to simulate. fluxuation Specify one of the following: rand to\u00a0use random numbers step to use stepped values vars to use CyFlex\u00a0variables time Specify the time to sleep between sends in milliseconds. [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1964,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3951","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3951","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=3951"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3951\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1964"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}