Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

set range of knob

Hi,

I'm pretty new to Measurement Studio, and am facing problem setting range for knob.

 

Softwares used:

Measuement Studio : 8.1

Microsoft Visual Studio 2005

Language : c#

 

Problem:

I want to programatically set the range value. I understand the default value is from 0 to 10, but my applications demands me to set from 0 to x (max value will be determined by application)

 

Any help will be greatly appreciated.

 

Thanks,

Manu

0 Kudos
Message 1 of 3
(3,715 Views)

Hi Manu,

 

You can use the range property on the knob to set it programatacially.

 

To set the range from minimum_value to maximum_value on knob1 you can use : 

knob1.Range = new Range(minimum_value, maximum_value);

Thanks,
Mohammed Haseeb|Measurement Studio|National Instruments
0 Kudos
Message 2 of 3
(3,688 Views)
Thanks a lot... it works
0 Kudos
Message 3 of 3
(3,677 Views)