Download Computer Interfacing Manual
Transcript
Page 60 · Computer Interfacing Manual TEC:DIO:IN? Synopsis Query the state of a digital input Syntax TEC:DIO:IN? port Details Returns the state of a specific digital input port. Argument port Value 0 1 to max Description Interlock Digital input pin The return value will be zero if in the input is low (or interlock is shorted), 1 if the input is high (or the interlock is open). An unconnected digital input may be high or low, depending on the electrical configuration of the port. See the user’s manual for more details. Only supported on instruments that feature digital input capability. See Also TEC:INMODE TEC:DIO:INMODE Synopsis Set the digital input mode Syntax TEC:DIO:INMODE port, function [,invert] Details Selects the function and invert setting for a specific input port. Input ports can be used as additional interlocks (function 1), or to remotely control the on/off state of the instrument (function 2). The invert setting is used to control if the function is active when the pin is high (invert 0) or when the pin is low (invert 1). Argument port function invert Value 0 1 to max 0 1 2 0 1 Description Interlock input Digital input pin Monitor only (no function) Interlock Output On No logic inversion (function is active high) Inverted logic (function is active low) Only supported on instruments that feature digital input capability. See Also TEC:INMODE TEC:DIO:INMODE? Synopsis Query the digital input mode Syntax TEC:DIO:INMODE? port Details Returns the input mode and invert setting for a specific input port. See TEC:INMODE for a definition of the port argument and function and invert response values. Only supported on instruments that feature digital input capability.