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.
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 3 5 7 11 13 17 19
Found 8 primes in 00:00:00.0005093
After testing each number between 2 and 20, the program found 8 that are prime, and it took 509.3 microseconds from start to finish.
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?
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!
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:
