示例#1
0
                /// <summary>
                /// Query typically returns the model name and number, but can be used for general information.
                /// </summary>
                /// <returns>Model or information found in INF2 location.</returns>
                public string GetModel()
                {
                    _cmd = "%1INF2 ?\r";
                    GetResponse(_cmd);
                    int index = ProjectorResponse.LastIndexOf("=");

                    ProjectorResponse = ProjectorResponse.Substring(index + 1);
                    return(ProjectorResponse);
                }
示例#2
0
                /// <summary>
                /// Check the lamp hours and lamp status
                /// </summary>
                /// <returns>1) First five digits indicate cumulative lamp hours. 2) Hours are followed by a space, then a 0 indicating the lamp is off or a 1 indicating it is on.
                /// </returns>
                public string GetLampInformation()
                {
                    _cmd = "%1LAMP ?\r";
                    GetResponse(_cmd);
                    int index = ProjectorResponse.LastIndexOf("=");

                    ProjectorResponse = ProjectorResponse.Substring(index + 1);
                    return(ProjectorResponse);
                }
示例#3
0
                /// <summary>
                /// The projector name must be set locally through the projector interface.
                /// </summary>
                /// <returns>Projector name</returns>
                ///
                public string GetProjectorName()
                {
                    _cmd = "%1NAME ?\r";
                    GetResponse(_cmd);
                    int index = ProjectorResponse.LastIndexOf("=");

                    ProjectorResponse = ProjectorResponse.Substring(index + 1);
                    return(ProjectorResponse);
                }
示例#4
0
                /// <summary>
                /// Check which input is currently selected
                /// </summary>
                /// <returns>Input number based on PJLink standard. e.g. 31 could be Digital In 1, HDMI, DVI or DisplayPort.
                /// Check the manufacturer information for your model of projector or display. </returns>
                public string GetInputSelected()
                {
                    _cmd = "%1INPT ?\r";
                    GetResponse(_cmd);
                    int index = ProjectorResponse.LastIndexOf("=");

                    ProjectorResponse = ProjectorResponse.Substring(index + 1);
                    return(ProjectorResponse);
                }