gclib  386
Communications API for Galil controllers and PLCs
 All Data Structures Files Functions Variables Typedefs Macros Pages
GReturn GCALL GArrayDownloadFile ( GCon  g,
GCStringIn  file_path 
)

Array download from file.

Downloads a csv file containing array data at file_path. If the arrays don't exist, they will be dimensioned.

Parameters
gConnection's handle.
file_pathNull-terminated string containing the path to the array file.
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 257 of file arrays.c.

References G_BAD_FILE, G_NO_ERROR, H_ArrayAddElement(), H_CreateArrayNode(), H_DownloadArraysFromList(), H_FreeArrays(), and H_InitArrayNode().