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”

SIMPL Tips and Tricks: Logic Wave Delay

SIMPL is an amazing tool to build control system logic with, but it can bite you sometimes in the way it evaluates a solution. Let me be clear: SIMPL is doing the right thing, but we have to train our brain to think around it to get the result we want. Here’s a simple example using the Logic Wave Delay symbol.

Continue reading “SIMPL Tips and Tricks: Logic Wave Delay”

VC-4: Breaking out of the Sandbox

One of the coolest features of the new 4-series platform is Crestron has removed the sandbox environment. We’re now free to use modern tools and languages to develop for their devices! In this post, I’ll walk through how to create a new project in VS2019 for the VC-4.

Continue reading “VC-4: Breaking out of the Sandbox”

VC-4: Part 1

I’d like to write a program that explores VC-4 since it’s the only 4-series platform I’ll have access to for a while. And since VC-4 doesn’t run the logic engine, we get to program the whole thing in SIMPL#! Here’s a rough drawing of how this system will function:

Conceptual drawing of our conference room system
Continue reading “VC-4: Part 1”