SOURce:DIGital:MEMory:TRACe
Syntax
SOURce:DIGital:MEMory:TRACe <name>, (@<channel>)
SOURce:DIGital:MEMory:TRACe? (@<channel>)
Description
This command assigns a trace to the specified bank on the 34950A Digital I/O Module. The width of the first channel in each bank (i.e., channels 101 and 201) controls the width of the memory operations (64K x 8 Bits, 64K x 16 Bits, or 32K x 32 Bits). Before enabling memory (see SOURce:DIGital:MEMory:ENABle command), you must download a trace to memory (see TRACe[:DATA]:DIGital[:<width>] command) and assign it to the specified bank.
Used With:
34950A Digital I/O Module
Parameters
Name |
Type |
Range of Values |
Default Value |
<name> |
ASCII String |
A trace name consisting of up to 12 characters. The first character must be a letter (A-Z), but the remaining 11 characters can be letters, numbers (0-9), or an underscore ( _ ). Blank spaces are not allowed. The name must be unique to the specified channel (bank). |
This is a required parameter |
<channel> |
Numeric |
One channel in the form (@sccc). |
This is a required parameter |
Remarks
Each bank has its own memory (64K bytes each) for use in buffered output transfers. You can download up to 32 traces into each bank. Use the TRACe:DELete[:NAME] command to delete traces from memory.
If you change the width of a bank (see CONFigure:DIGital:WIDTh command), all traces in memory are cleared.
A Factory Reset (*RST command), Instrument Preset (SYSTem:PRESet command), and Card Reset (SYSTem:CPON command) deletes the trace from memory and removes all trace name associations. In addition, storing the instrument state (*SAV command) will delete the trace from memory and remove all trace name associations.
Return Format
The query command reads the trace name currently assigned to the specified channel. If the specified channel has no trace name assigned, a null string ( " " ) is returned.
Examples
The following program segment downloads a "walking ones" pattern and assigns it to channel 101 on the module in slot 3.
SOUR:DIG:DATA:WORD
#HFFFF,(@3101) !Set
initial output pattern
SOUR:DIG:MEM:NCYC 3,(@3101) !Output
complete trace 3 times
TRAC:DIG:FUNC (@3101),WONES,PATTERN_1,32 !Download
"walking ones" pattern
SOUR:DIG:MEM:TRAC PATTERN_1,(@3101) !Assign
trace to channel 101
SOUR:DIG:MEM:ENAB ON,(@3101) !Enable
memory on channel 101
SOUR:DIG:MEM:START (@3101) !Trigger
memory output
The following query returns the trace name currently assigned to channel 101 on the module in slot 3 (the quotes are also returned).
SOUR:DIG:MEM:TRAC? (@3101)
Typical Response: "PATTERN_1"
See Also
SOURce:DIGital:MEMory:ABORt
SOURce:DIGital:MEMory:NCYCles
TRACe[:DATA]:DIGital[:<width>]