You can create an instance of LinearScale, PolynomialScale, TableScale, or RangeMapScale. For one of the constructor arguments, you must provide a string name. After creating the scale, you can use the name you provided when creating channels in order to use the scale. For instance:
Dim MyScale As New LinearScale("MyScale", 1.2, 0.4)
Dim MyTask As New Task("")
MyTask.AIChannels.CreateVoltageChannel("Dev1/ai0","MyChannel", AITerminalConfiguration.Differential,0,10,"MyScale");
Currently, however, there is no way to save the custom scale you created to MAX. It can only be used in the application it was created in.
Let me know if you have any more questions about this.
Tony H.
Measurement Studio