Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom scale

How can i create programmatically a custom scale (not with DAQ assistant) in VisualBasic .NET ?
0 Kudos
Message 1 of 2
(3,553 Views)
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
0 Kudos
Message 2 of 2
(3,553 Views)