JSFiddle - React, Tailwind, and code Playground
by sampottinger
HTML
<p><a title="AIN0 to AIN3" rel="gallery-insert-all" href="/sites/default/files/2013/02/AIN.JPG"><img src="http://labjack.com/sites/default/files/imagecache/support_page_third/2013/02/AIN.JPG" alt="" class="imagecache-support_page_third" /></a>
<a title="AIN0 to AIN13" rel="gallery-insert-all" href="/sites/default/files/2013/02/AIN CB37.jpg"><img src="http://labjack.com/sites/default/files/imagecache/support_page_half/2013/02/AIN%20CB37.jpg" alt="" width="364" height="290" /></a>
</p>
<p style="font-size: 14px; line-height: 18px;">Analog Inputs: <strong>14</strong></p>
<p style="font-size: 14px; line-height: 18px;">Voltage Ranges: <strong>±10V, ±1V, ±0.1V, and ±0.01V</strong></p>
@registers(Analog Input Settings):AIN#(0:254),AIN#(0:254)_RANGE,AIN#(0:254)_NEGATIVE_CH,AIN#(0:254)_RESOLUTION_INDEX
<p><em>For example: </em> To read a voltage connected to AIN2, perform a standard read of modbus address 4, and the result would be in the form of a floating point number, like 8.82332V.
</p>
<p>Controls the range/span of the analog inputs. Write range=10 to get a range of ±10V (default), range=1 to get a range of ±1V, range=0.1 to get a range of ±0.1V, or range=0.01 to get a range of ±0.01V. If you write a value in between the valid ranges, the larger range will be used.</p>
<p style="font-size: 13.63636302947998px; line-height: 17.99715805053711px;"><em>For example: </em> It is known that the voltage source connected AIN1 will be 0 to 0.7V, so write 1.0 (or anything >0.1 and <=1.0) to address 40502, and the device will use the ±1V range.</p>
<p style="font-size: 13.63636302947998px; line-height: 17.99715805053711px;">The range parameter is actually controlling the gain of the internal
instrumentation amplifier. The in-amp supports gains of x1, x10, x100, and x1000. If you set range=10, you get gain=x1, and
the analog input range is ±10 volts. If you set range=1, you get gain=x10, and the analog input...