DAQmxSaveScale

NI-DAQmx C Functions

DAQmxSaveScale

int32 DAQmxSaveScale (const char scaleName[], const char saveAs[], const char author[], uInt32 options);

Purpose

Saves the specified custom scale to MAX.

Visit the DAQmx Professional Developer Tools website for more information and examples of programmatically saving global channels.

Parameters

Input
Name Type Description
scaleName const char [] Name of the custom scale to save.
saveAs const char [] Name to save the custom scale as. If you pass an empty string ("") or NULL, the name currently assigned to the scale is used.
author const char [] Name to store with the custom scale.
options uInt32 Use this parameter to set certain options. You can combine options with the bitwise-OR operator ('|') to set multiple options. Pass a value of zero if no options need to be set.
Value Description
DAQmx_Val_Save_Overwrite Overwrite a custom scale of the same name if one is already saved in MAX. If you do not set this flag and a custom scale of the same name is already saved in MAX, the function returns an error.
DAQmx_Val_Save_AllowInteractiveEditing Allow the custom scale to be edited in the DAQ Assistant.
DAQmx_Val_Save_AllowInteractiveDeletion Allow the custom scale to be deleted through MAX.

Return Value

Name Type Description
status int32 The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.