1256 User Manual Publication No. 980855 Rev. A
Digital Module Operation 7-14
EADS North America Test and Services
Reading Data from a
Synchronous Input
Port
Once the data transfer is complete, each of the synchronous input
ports may be read. The DIGITAL:SYNCHRONOUS:DATA? query
is used to read data from the synchronous input ports.
The following examples illustrate the use of this query.
Reads all of the data from port 4 of module 7:
DIG:SYNC:DATA?
(@7(4))
The reply to this query consists of a series of numeric values, each
separated by a comma. For example, the following reply could be
returned. This indicates that seven data bytes were stored by the
module from port 4:
255,0,128,93,66,17,23
Reads all of the data from port 11 of the module whose name is
“digio”. The name must have been defined using the
MODULE:DEFINE command:
DIG:SYNC:DATA? (@digio(11))
The number of points stored in the port memory for a synchronous
input port may be read using the
DIGITAL:SYNCHRONOUS:INDEX? query. This query will return
the number of data points stored for the specified port(s). One
numeric reply is returned for each port specified in the query.
If multiple ports are specified, then multiple numeric values are
returned. In this case, each number is separated from the next by
a comma. Examples are shown below.
Reads the index for port 4 of module 7:
DIG:SYNC:INDEX?
(@7(4))
Reads the index for each of the ports 3, 4, and 5 on module 7.
DIGITAL:SYNC:INDEX? (@7(3:5))
The reply will be similar to:
123,14,79
This reply indicates that there are 123 bytes stored in port 3, 14
bytes stored in port 4, and 79 bytes stored in port 5.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com