News:

  • September 27, 2026, 06:21:36 PM

Login with username, password and session length

Author Topic: BRX Local I/O  (Read 8287 times)

ddubs2248

  • Sr. Member
  • ****
  • Posts: 64
BRX Local I/O
« on: April 04, 2019, 04:20:40 PM »
Is it possible to scale the onboard analog inputs with memory locations (i.e. D0, Custom Heap Item, etc.)?  It does not appear so, but maybe, just maybe it will be there in the future?

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: BRX Local I/O
« Reply #1 on: April 04, 2019, 04:31:20 PM »
That would be nice.
I use either a Math  or Scale function inside of a For/Next loop with the scale factors stored in a custom UDT.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: BRX Local I/O
« Reply #2 on: April 04, 2019, 04:44:44 PM »
SCALE box does great for programmatic scaling (vs. static scaling which is in the configuration).  You can even use MATH or LERP if it's non-linear.  Very, very powerful.

Just stick them in the $tTopOfScan for inputs or $tBottomOfScan for outputs.

ddubs2248

  • Sr. Member
  • ****
  • Posts: 64
Re: BRX Local I/O
« Reply #3 on: April 04, 2019, 04:56:15 PM »
Guess you guys do think through mostly everything!  Good point Franji1!