News:

  • July 07, 2026, 01:00:30 AM

Login with username, password and session length

Author Topic: Glimpse behind the curtain...  (Read 10472 times)

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Glimpse behind the curtain...
« on: February 21, 2016, 12:27:03 PM »
Was just doing a bit of testing and thought I'd toss this out for your enjoyment.

In this picture I am running a hardware-based PWM on Y0, which is running at 1000Hz, and is looped to X0. I also use two hardware-based high speed timers to measure both the rising-to-rising and rising-to-falling time of X0. I then use the time values to regenerate the duty cycle from the PWM. I feed the raw input duty cycle into a 1 second (1024ms actually) delay line created using a 1ms interrupt, and then filter the output of the delay line with a 10 second filter, thus creating a FOPDT process simulation. I used the simulated process as the PV of a PID loop, which I auto-tuned and bumped a few times.

May not look like much, but there is a whole bunch of cool on that screen.

And for those who might notice some other 'details' on the screen, don't too excited, we tend to use many temporary things that change before release...like names and versions.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Glimpse behind the curtain...
« Reply #1 on: February 21, 2016, 12:30:33 PM »
...and I neglected to mention that I did the entire thing with five instructions. Five.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Glimpse behind the curtain...
« Reply #2 on: February 21, 2016, 02:41:21 PM »
And continuing the fun...this picture is of a log file of my simulated process I created on the SdCard.

If it wasn't clear, all of this is being done on the new platform...coming soon(ish) to your favorite direct marketer of quality automation products!
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: Glimpse behind the curtain...
« Reply #3 on: February 21, 2016, 06:38:15 PM »
Wow, if that's what you do on your day off, can't wait to see the finished product.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: Glimpse behind the curtain...
« Reply #4 on: February 21, 2016, 07:07:59 PM »
Mostly just goofing off. Since I live 800 feet from the office, I tend to hang around more than I should...not to mention the office's coffee is awesome and available 24/7 at the push of a button. Takes less time to drive here than to make it at the house.

I had just finished adding the PWM hardware and got full path through DmD and the PLC OS, and was just wanting to exercise it a bit. After seeing how easy it was to use and how well it worked, I was sitting here with a dumb grin on my face and nobody to share it with.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3619
  • Darth Ladder
Re: Glimpse behind the curtain...
« Reply #5 on: February 21, 2016, 09:28:13 PM »
...and I neglected to mention that I did the entire thing with five instructions. Five.

Sweet!   8)
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

HB_GUY

  • Full Member
  • ***
  • Posts: 43
Re: Glimpse behind the curtain...
« Reply #6 on: February 22, 2016, 02:00:59 AM »
Very exciting stuff!