User Tools

Site Tools


en-us_commands:reference:ianalogreadf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en-us_commands:reference:ianalogreadf [2026/09/07 23:35] – 바깥 편집 127.0.0.1en-us_commands:reference:ianalogreadf [2026/10/25 08:40] (current) – external edit 127.0.0.1
Line 10: Line 10:
  
 ^ Command ^ Arguments ^ Return Value ^ Operation ^ ^ Command ^ Arguments ^ Return Value ^ Operation ^
-| ''IanalogReadf(ch, min, max)'' | ''uint8_t ch'' — Analog input pin or channel to read\\ ''float min'' — Minimum ''int32_t'' conversion result\\ ''float max'' — Maximum ''int32_t'' conversion result | ''float'' | Converts the analog input value to the specified floating-point range. |+| ''IanalogReadf(ch, min, max)'' | ''uint8_t ch'' — Analog input pin or channel to read\\ ''float min'' — Lower bound of the floating-point output range\\ ''float max'' — Upper bound of the floating-point output range | ''float'' | Converts the analog input value to the specified floating-point range. |
  
  
Line 30: Line 30:
  
   * ''min'' and ''max'' define the conversion range of the return value, not the actual electrical input range of the sensor.   * ''min'' and ''max'' define the conversion range of the return value, not the actual electrical input range of the sensor.
-  * Range limiting by ''Iscale()'' or ''Iscalef()'' keeps the result between the two specified output endpoints. +  * ''Iscalef()'' limits the result to the specified output range. 
-  * Setting ''min'' greater than ''max'' reverses the output range. Example: ''IanalogRead(A0, 100, 0)''.+  * Setting ''min'' greater than ''max'' reverses the output range. Example: ''IanalogReadf(A0, 100.0F, 0.0F)''.
   * MPINO and MPAINO have different raw ADC ranges. Always use ''ch'' appropriate to the selected board.   * MPINO and MPAINO have different raw ADC ranges. Always use ''ch'' appropriate to the selected board.
   * Set the MPAINO analog input module's DIP switches and wiring to match the actual input type.   * Set the MPAINO analog input module's DIP switches and wiring to match the actual input type.
   * This command performs only linear range conversion. Sensor error compensation, open-circuit detection or 4~20mA software Cut requires separate processing.   * This command performs only linear range conversion. Sensor error compensation, open-circuit detection or 4~20mA software Cut requires separate processing.
 +
 +===== Built-in Commands in the Same Category =====
 +
 +  * [[:en-us_commands:reference:ianalogread|IanalogRead() reference]]
  
 [[:en-us_commands:builtin|← Built-in Command List]] [[:en-us_commands:builtin|← Built-in Command List]]
  
en-us_commands/reference/ianalogreadf.1788791733.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki