NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

DaqSystem.SaveScaleAs Method (Scale, String)

  • Updated2023-02-21
  • 1 minute(s) read
DaqSystem.SaveScaleAs Method (Scale, String)
Saves the specified custom scale to Measurement Automation Explorer (MAX) under the specified name.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

public void SaveScaleAs(
	Scale scale,
	string persistedName
)
Public Sub SaveScaleAs ( 
	scale As Scale,
	persistedName As String
)

Parameters

scale
Type: NationalInstruments.DAQmxScale
The scale instance to save.
persistedName
Type: SystemString
The name to use for the saved scale.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

This method sets the Default option for the saved scale and uses an empty string for the scale Author. You can specify your own options and author value by using the SaveScaleAs(Scale, String, String, SaveOptions) overload.

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.

See Also

Log in to get a better experience