13.07.2015 Views

Model 7002Switch System Instruction Manual - Advanced Test ...

Model 7002Switch System Instruction Manual - Advanced Test ...

Model 7002Switch System Instruction Manual - Advanced Test ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IEEE-488 Reference5.14 Sense subsystemsThe sense subsystems are used to read digital input ports. The :SENSe1 Subsystem is used to read the built-in digital input lines.The :SENSe2 through :SENSe11 Subsystems are used to read the inputs of digital cards installed in slots 1 through 10respectively.Table 5-9SENSe command summaryCommand:SENSe[1]:TTL[1]:DATA?:SENSeX:DATA? DescriptionCommand path to read internal input line.Read internal digital input line.Specify slot; X=2 (slot 1) through 11 (slot 10).Read specified input channels for the specified slot.Notes:1. Brackets ([ ]) are used to denote optional character sets. These optional characters do nothave to be included in the program message. Do not use brackets ([ ]) in the program message.2. Angle brackets (< >) are used to indicate parameter type. Do not use angle brackets (< >) inthe program message.3. Upper case characters indicate the short-form version for each command word.4. At least one space is required between a command word and the parameter.:SENSe[1] Subsystem:TTL[1]:DATA?:SENSe[1]:TTL[1]:DATA?Read internal input portShort-formformatsDescription:sens:ttl:data?This command is used to read the single line of the digital input port. After sending this commandand addressing the <strong>Model</strong> 7002 to talk, a value indicating the status of the port will be sentto the computer.A value of “1” indicates that the input port is high (ON), and a value of “0” indicates that theport is low (OFF).Programmingexample10 OUTPUT 707; “:sens:ttl:data?”20 ENTER 707; A$30 PRINT A$40 ENDLine 10 Read the input port.Line 20 Addresses the 7002 to talk.Line 30 Displays the status of the input port (0 or 1).5-99

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!