Writes a string, specified by name.
LJM_ERROR_RETURN LJM_eWriteNameString(
int Handle,
const char * Name,
const char * String)
LJM errorcodes or 0 for no error.
See also LJM_eReadNameString. This is a convenience function that uses LJM_eNames. Only for use with Modbus register(s) listed as type LJM_STRING (98). More code examples coming soon.
[C/C++] Change the device name.
int LJMError; // LJM_STRING_ALLOCATION_SIZE is 50 char newName[LJM_STRING_ALLOCATION_SIZE] = "My Favorite DAQ Device"; // handle comes from LJM_Open() LJMError = LJM_eWriteNameString(handle, "DEVICE_NAME_DEFAULT", newName); if (LJMError != LJME_NOERROR) { // Deal with error }