Crestron |
public static class CrestronEnvironment
The CrestronEnvironment type exposes the following members.
| Name | Description | |
|---|---|---|
| DevicePlatform | Gets the platform SIMPL#/SIMPL# Pro is running on. | |
| Latitude | Property to set the latitude which is used by the native scheduling engine for the astronomical events. The Set feature is not supported on Server. It will throw a NotSupportedException. This property requires a reboot for it to take into effect. This property is read on startup and could be out of sync if it was changed and the unit was not rebooted. This defaults to 41.000000 North | |
| Longitude | Property to set the longitude which is used by the native scheduling engine for the astronomical events. The Set feature is not supported on Server. It will throw a NotSupportedException. This property requires a reboot for it to take into effect. This property is read on startup and could be out of sync if it was changed and the unit was not rebooted. This defaults to -73.933333 West | |
| NewLine | Gets the newline string defined for this environment. | |
| ProgramCompatibility | Indicates the compatibility of programs for this control system. | |
| RuntimeEnvironment | Gets the runtime environment of the SIMPL# module. | |
| TickCount | Gets the number of milliseconds elapsed since the system started. |
| Name | Description | |
|---|---|---|
| AllowOtherAppsToRun | This is a function that users will be allowed to call in order to be polite to the system and allow other applications to run. | |
| ConvertTSIDToSerialNumber | Method to convert the given TSID to the serial number. This method will only work on firmware versions greater then 1.503.0000. | |
| GetLocalTime | Function to get the current local time of the system. | |
| GetTimeZone | Get current timezone information | |
| GetTimeZone(UInt32) | Get timezone information for the specified timezoneId | |
| GetTimeZoneDetail | Get current timezone detail settings | |
| GetTimeZoneList | Function to get the current timezone list | |
| ScaleWithLimits(Int32, Int32, Int32, Int32, Int32) | Scales a given input value that lies between a given set of input limits to an output value given a set of output limits. This version works on signed integer arguments. | |
| ScaleWithLimits(UInt32, UInt32, UInt32, UInt32, UInt32) | Scales a given input value that lies between a given set of input limits to an output value given a set of output limits. This version works on unsigned integer arguments. | |
| SetDate | Function to change the current date of the system. | |
| SetTime | Function to change the current time of the system. | |
| SetTimeAndDate | Set the system time and date | |
| SetTimeZone | Set local time to the timezone with given timezoneId | |
| Sleep | Function to sleep for the specified time |
| Name | Description | |
|---|---|---|
| EthernetEventHandler | Ethernet Event Handler. Programmer needs to subscribe to this handler for receiving ethernet events. | |
| ProgramStatusEventHandler | Program Event Handler. Programmer needs to subscribe to this handler for receiving program status events. | |
| SystemEventHandler | System Event Handler. Programmer needs to subscribe to this handler for receiving system events. |