Chapter 5
S Mode Functions
© National Instruments Corp.
5-55
GPIB-232CT User Manual
trg - Trigger Selected Device(s) *
Type
:
Bus Management function
Syntax:
tr
g alist
<CR>
Purpose:
You
use
trg
to trigger the specified devices. The instructions
for each GPIB device explain when you should trigger them
and what effect the trigger has.
Remarks:
The
argument
alist
is a list of
addrs
separated by commas
or spaces.
addrs
are device addresses that specify the GPIB
addresses you wish to trigger.
A device address consists of a primary address and an
optional secondary address. The secondary address is
separated from the primary address by a plus sign (
+
).
Only the lower five bits of each address are significant. These
bits can be in the range from 0 through 30 for both the
primary and the secondary addresses. Therefore, the binary
value 01100010 (decimal 98) is interpreted as decimal 2.
The following examples all specify a primary address of 0 and
a secondary address of 2. The listen address is 32, the talk
address is 64, and the secondary address is 2 or 98, which are
equivalent.
0+2
or
0+98
or
32+98
or
0+\x62
If you call
trg
without an argument, the EARG error is
posted.
If this is the first function you call that requires GPIB
Controller capability, and you have not disabled System
Controller capability with
rsc
, the GPIB-232CT sends
Interface Clear (IFC) to make itself CIC. It also asserts
Remote Enable.
If you passed control to some other GPIB device, control must
be passed back to you or you must send IFC to make yourself
CIC before making this call. Otherwise, the ECIC error will
be posted.