没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Crestron® SIMPL+® Software
Programming Guide
Crestron Electronics, Inc.
Original Instructions
The U.S. English version of this document is the original instructions.
All other languages are a translation of the original instructions.
Crestron product development software is licensed to Crestron dealers and Crestron Service Providers (CSPs)
under a limited nonexclusive, nontransferable Software Development Tools License Agreement. Crestron
product operating system software is licensed to Crestron dealers, CSPs, and end-users under a separate End-
User License Agreement. Both of these Agreements can be found on the Crestron website at
www.crestron.com/legal/software_license_agreement.
The product warranty can be found at www.crestron.com/warranty.
The specific patents that cover Crestron products are listed at www.crestron.com/legal/patents.
Certain Crestron products contain open source software. For specific information, visit
www.crestron.com/opensource.
Crestron, the Crestron logo, 3-Series Control System, Crestron Toolbox, and SIMPL+ are either trademarks or
registered trademarks of Crestron Electronics, Inc. in the United States and/or other countries. Other
trademarks, registered trademarks, and trade names may be used in this document to refer to either the
entities claiming the marks and names or their products. Crestron disclaims any proprietary interest in the
marks and names of others. Crestron is not responsible for errors in typography or photography.
©2020 Crestron Electronics, Inc.
Contents
Introduction 1
What is SIMPL+? 1
For Whom is this Guide Intended? 1
Using SIMPL vs. SIMPL+ 1
What is Needed to Use SIMPL+? 2
Where Can I Get More Information? 2
Writing Your First SIMPL+ Program 3
Making it Work 4
The Structure of a SIMPL+ Program 7
Compiler Directives 7
Include Libraries 8
Variable Declarations 9
Inputs, Outputs, and Parameters 9
Variables 10
Structures 11
User-Defined Functions 11
Event Functions 12
Push and Release Events 12
Change Events 13
Compound Events 13
The Global Event 14
Function Main 14
Working with Data (Variables) 16
Input/Output Types 16
Digital Inputs/Outputs 16
Analog Inputs/Outputs 16
String Inputs/Outputs and Buffer Inputs 17
Signal Scope 17
All About Variables 19
Integers 19
Strings 21
Variable Scope 22
Arrays 23
Operators, Expressions, and Statements 25
Operators 25
Arithmetic Operators 25
Bitwise Operators 25
Programming Guide — Doc. 5789B Contents • i
Relational Operators 25
Expressions 26
Statements 26
Controlling Program Flow: Branching 28
if-else 28
switch-case 30
Controlling Program Flow: Loops 32
for Loops 32
while and do-until Loops 33
Exiting from Loops Early 35
Using System Functions 36
User Defined Functions 37
Function Definitions 37
Defining Local Variables In Functions 39
Passing Variables to Functions as Arguments 40
ByRef, ByVal, and ReadOnlyByRef 41
Functions That Return Values 42
Function Libraries 44
Removable Media Functions 45
CheckForDisk and WaitForNewDisk 45
Reading and Writing Data 46
Working with Time 49
Delay 49
Pulse 49
Wait Events 50
Working with Strings 52
BUFFER_INPUT 52
Removing Data From Buffers 53
Understanding Processing Order 56
How SIMPL+ and SIMPL Interact 56
Forcing a Task Switch 56
Debugging 57
Compiler Errors 57
Run-time Errors 57
Debugging with Print() 58
ii • Contents Programming Guide — Doc. 5789B
iii • Contents Programming Guide — Doc. 5789B
剩余64页未读,继续阅读
资源评论
zhaokai3000
- 粉丝: 10
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Arduino Nano的红外循迹小车源码(高分课设).zip
- 将MS SQL数据库表里的数据内容生成SQL执行语句
- 基于MATLAB的钢板表面缺陷检测系统
- MS SQL里生成行政区域县区信息表和相应数据
- delphi实现DBGrid全选和反选功能
- 25C11F41-2B2A-4D1A-AAA8-7C654526B129.pdf
- Android Studio Jellyfish(android-studio-2023.3.1.18-cros.deb)
- MVC+EF框架+EasyUI实现权限管理源码程序
- python第66-75天,Day66-75.rar
- python后端服务project-of-tornado.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功