| gclib 386 Communications API for Galil controllers and PLCs |

All Data Structures Files Functions Variables Typedefs Macros Pages

GReturn GCALL GArrayUploadFile | ( | GCon | g,
|  | GCStringIn | file_path,
|  | GCStringIn | names
| ) |  |

Array upload to file.

Uploads the entire controller array table or a subset and saves the data as a csv file specified by `file_path`.

Parameters

  g | Connection's handle.
  file_path | Null-terminated string containing the path to the array file, file will be overwritten if it exists.
  names | Null-terminated string containing the arrays to upload, delimited with space. "" or null uploads all arrays listed in LA.

Returns
  The success status or error code of the function. See gclib_errors.h for possible values.

See x_arrays.cpp for an example.

Definition at line 332 of file arrays.c.

References G_NO_ERROR, GCmdT(), H_FreeArrays(), H_InitArrayNode(), H_UploadArrayToList(), and H_WriteArrayCsv().