Section 6: SCPI command reference Model 2461 Interactive SourceMeter® Instrument Reference Manual6-38 2461-901-01 A/November 2015Example:DIG:READ? Assume lines 2, 4, and 6 are set high whenthe I/O port is read.Output:42This is binary 101010Also seeDigital I/O bit weighting (on page 3-95)Digital I/O port configuration (on page 3-87):DIGital:WRITe This command writes to all digital I/O lines.Type Affected by Where saved Default valueCommand only Not applicable Not applicable Not applicableUsage:DIGital:WRITe The value to write to the port (0 to 63)DetailsThis function writes to the digital I/O port by setting the binary state of each digital line from an integerequivalent value.The binary representation of the value indicates the output pattern to be written to the I/O port. Forexample, a value of 63 has a binary equivalent of 111111 (all lines are set high); a data value of 42has a binary equivalent of 101010 (lines 2, 4, and 6 are set high, and the other 3 lines are set low).An instrument reset does not affect the present states of the digital I/O lines.All six lines must be configured as digital control lines. If not, this command generates an error.Example:DIG:WRIT 63 Sets digital I/O lines 1 through 6 high (binary111111).Also seeDigital I/O bit weighting (on page 3-95)Digital I/O port configuration (on page 3-87)