[SENSe:]DIGital:MEMory[:DATA]:FORMat
Syntax
[SENSe:]DIGital:MEMory[:DATA]:FORMat <mode>
[SENSe:]DIGital:MEMory[:DATA]:FORMat?
Description
This command selects the format for data returned by buffered input operations on the 34950A Digital I/O Module. This command applies to the data returned by the [SENSe:]DIGital:MEMory[:DATA]? and [SENSe:]DIGital:MEMory[:DATA]:ALL? commands. Select the "LIST" parameter (default) to return data in comma-separated ASCII format. Select the "BLOCk" format to return data in floating-point IEEE-488.2 Binary Block ("BLOCk") format.
This command applies to the entire mainframe and cannot be selectively used on individual channels or modules. |
Used With:
34950A Digital I/O Module
Parameters
Name |
Type |
Range of Values |
Default Value |
<mode> |
Discrete |
{LIST|BLOCk} |
LIST |
Remarks
The format setting is stored in non-volatile memory, and does not change when power has been off, after a Factory Reset (*RST command), or after an Instrument Preset (SYSTem:PRESet command).
Return Format
The query command returns "LIST" or "BLOC".
Examples
The following program segment enables a buffered read on channel 101 on the module in slot 3 and selects the IEEE-488.2 binary block format.
CONF:DIG:WIDTH
WORD,(@3101) !Width
= 16 bits
DIG:MEM:SAMP:COUN 20,(@3101) !Sample
count = 20
DIG:MEM:FORM BLOC !Format
= Binary block
DIG:MEM:ENAB ON,(@3101) !Enable
buffered read
DIG:MEM:STAR (@3101) !Start
buffered read
<Wait for entire buffered read to complete>
DIG:MEM? 0,2,(@3101) !Read
the first two samples in memory
The following query returns the format currently selected.
DIG:MEM:FORM?
Typical Response: BLOC
See Also
[SENSe:]DIGital:MEMory[:DATA]?