In this post, I'm going to explore the different threading options on 3- and 4-series processors. I find it difficult to keep everything straight when working in different Crestron environments, so hopefully this post will be a good refresher when I need it. What are threads? Threads are an execution path through your program. See … Continue reading Multithreaded Programming
Tag: 3-series
CP3 vs CP4
I wanted to see how much faster the CP4 is versus the CP3, so I wrote a small benchmark program to count prime numbers between 2 and some number. I've added a FINDPRIMES command to the console so I can test a few ways. Here is an example running on a CP3: findprimes 20 2 … Continue reading CP3 vs CP4
Debugging SIMPL# Pro (3-series)
I've run into a problem in my Standard UI program: a button that used to work like a toggle is now toggling on and off immediately. Is it getting called twice? How am I going to track this error down? CrestronConsole.PrintLine Sometimes the easiest form of debugging is what is referred to as "printf statements." … Continue reading Debugging SIMPL# Pro (3-series)
Huddle Room: Part 2
In the previous post, we created a simple Huddle Room system... but the logic is tightly-coupled, it's rigid, and I wouldn't call it a framework. Let's refactor it! There are 3 areas that I think will be easy to immediately refactor: Display controlSwitcher controlRoom vacancy timeout Display control Let's start off by creating a new … Continue reading Huddle Room: Part 2
Huddle Room: Part 1
This series of posts is going to put together some of what we learned in the Simple Sharp Primer and VC-4 posts. For an idea, here is what we're going to build in Part 1: A simple Huddle Room space Let's take a quick inventory of what's in this system: RMC3 is the brain deciding … Continue reading Huddle Room: Part 1