SaveScaleAs(Scale, string, string, SaveOptions)
- Updated2026-02-05
- 1 minute(s) read
Saves the specified custom scale to Measurement & Automation Explorer (MAX) under the specified name and with specified author and options values.
Syntax
Namespace: NationalInstruments.DAQmx
public void SaveScaleAs(Scale scale, string persistedName, string author, SaveOptions options)
Remarks
If you do not assign a value to the saved scale, NI-DAQmx uses the name currently assigned to the scale.
Visit the DAQmx Professional Developer Tools Web site for more information and examples of programmatically saving custom scales.
Parameters
| Name | Type | Description |
|---|---|---|
| scale | Scale | The scale instance to save. |
| persistedName | string | The name to use for the saved scale. |
| author | string | A user-specified string that represents the name to store with the scale. For example, scales created with the DAQ Assistant have the string "DAQ Assistant" as their author. You may pass Empty. |
| options | SaveOptions | One or more flags indicating various save options. |
Exceptions
| Type | Description |
|---|---|
| NationalInstruments.DAQmx.DaqException | The NI-DAQmx driver returned an error. |