kielthecoder / SimplSharpPrimer

A SIMPL# Pro Primer
MIT License
11 stars 2 forks source link

S# Or S#Pro Run In Crestron More Stable? #1

Open zhouji0212 opened 3 years ago

zhouji0212 commented 3 years ago

Dear Kiel: Thanks For Your S#Pro Guid,Can You Tell Me How Program Run Different In S# Or S#Pro? In This Device I Have No Experience.

kielthecoder commented 3 years ago

On the Crestron 3-series, everything is running on .NET (as far as control programming is concerned). If you write your program in SIMPL# Pro, you're providing the whole solution. A lot of the work to communicate with devices is handled by the SIMPL# Pro libraries, but it's up to you to handle the logic end. If you write modules in SIMPL#, you're only providing part of the program: Crestron's logic engine is doing most of the work (running the SIMPL program you uploaded). Many Crestron modules are written this way: SIMPL# at the core to handle device communication, SIMPL+ in the middle, SIMPL module at the top to provide a nice interface to the programmer. Both methods have their advantages, and with the 4-series, you can also write standard C# programs.

If you're completely new to Crestron, I'd recommend taking some of their online training courses at https://www.crestron.com/training to get familiar with the eco-system. You'll need to have a login though. I started writing down my experiments in SIMPL# Pro because I wasn't able to take the class they offered. So most of the time, I'm just figuring something out for myself. Hopefully it helps others, too!

Cheers, Kiel

zhouji0212 commented 3 years ago

Thianks kiel, I wrote some Climate panel drivers in simpl# use 3-Series in smarthome project, simpl# use tcplib and simpl program calls s#. but when simpl program runing somedays It have strang errors about Crestron LogicEngin, i haven't Project experience in s# pro, If Crestron Programs All Run in .Net environment ,I think s# pro Programs More Stable Than Simp+Simple#, Is It real?

kielthecoder commented 3 years ago

I don't think SIMPL# Pro is any more stable than SIMPL/SIMPL+/SIMPL#, but it likely runs faster since there are fewer layers involved. Which error message are you seeing from the LogicEngine?