| gclib 2.0.7 Communications API for Galil controllers and PLCs |

## ◆ GArrayDownload()

void GArrayDownload | ( | string | array_name,
|  | ref List< double > | data,
|  | Int16 | first = `-1`,
|  | Int16 | last = `-1`
| ) |  |

Downloads array data to a pre-dimensioned array in the controller's array table.

Parameters

  array_name | String containing the name of the array to download. Must match the array name used in DM.
  data | A list of doubles, to be downloaded.
  first | The first element of the array for sub-array downloads.
  last | The last element of the array for sub-array downloads.

Wrapper around gclib GArrayDownload(), http://www.galil.com/sw/pub/all/doc/gclib/html/gclib_8h.html#a6ea5ae6d167675e4c27ccfaf2f240f8a The array must already exist on the controller, see DM and LA.

Exceptions

  System.Exception | Will throw an exception if anything other than G_NO_ERROR is received from gclib.