LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MIN and MAX of AI Virtual Channel?

I'm trying to understand how the MIN and MAX values within Labview are calculated or if they are accessible (I am coding in .NET but it still works all the same).  For instance, on my UI am using a Linear Scale (customscale) and currently have the user enter in the Slope and Y-Intercept, then the MIN and MAX.  I would prefer that I could code the MIN and MAX values of the channel based on the calculated linear scale, thus eliminating the need for the user to manually enter MIN and MAX on the UI. 

 

For testing purposes I calculated a Slope and Y-intercept of a 0-30mm (units) scale in the attached jpeg.  A correct MIN and MAX value would be 0 (MIN) and 30 (MAX).  I purposely entered in a very high MAX in order to throw a DAQ exception error.

 

minMaxError.jpg 

 

How is the MIN and MAX within the hardware calculated?  Is there an easy way for me to get the value by invoking methods or accessing certain properties?  I suppose its not that big of a deal that the user has to manually enter the MIN and MAX but I would like to automate that part if I can. 

0 Kudos
Message 1 of 2
(3,000 Views)

The MIN and MAX settings are used by the hardware to adjust its scale, so that you can have the best resolution for your measurement. Yes, you can change those values with property nodes or NI DAQmx.

 

God Bless

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7
0 Kudos
Message 2 of 2
(2,964 Views)