snapio_sim

Purpose:

Simulate snapio devices without needing any hardware for the system.

Enter:

snapio_sim <num_device> <time> [fluxucation] [step]

Where:

num_device

Specify the number of brains to simulate.

fluxuation

Specify one of the following:

  • rand to use random numbers
  • step
  • vars to use CyFlex variables

time

Specify the time to sleep between sends in milliseconds.

step

If step is specified for fluxuation, specify the amount to step by.

Example:

snapio_sim 2 500 rand

Where: 2 is for the number of brains rand is indicating to use random values 500 is idicating the amount of time between sends.

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’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.

Notes:

 

See Also: