4.2.4 eAddGoGet()
i p s a GoOne() and returns all the
sults via the same arrays.
“*a” are arrays, and all must be initialized with at least a number
This funct
re
on asses multiple requests via arrays, then execute
The parameters that start with
of elements equal to NumRequests.
Declaration:
LJ_ERROR _stdcall eAddGoGet ( LJ_HANDLE Handle,
long NumReque
sts,
long *aIOTypes,
uble *aValues,
long *ax1s,
n:
long *aChannels,
do
long *aRequestErrors,
long *GoError,
long *aResultErrors)
Parameter Descriptio
eturns: LabJack errorcodes or 0 for no error.
• An array which is the list of Channels.
is the list of x1s.
utputs:
aValues – An array which is the list of Values read.
the list of errorcodes from each
• GoError – The rned by the GoOne() call.
• aResultErrors is the list of errorcodes from each GetResult().
.2.5 AddRequest()
o be performed on the next call to Go() or GoOne().
ddRequest() is called on a particular Handle, all previous data is erased and cannot be
retrieved b n d again. This is on a device by
device bas s le while a device is busy
performing
AddReque ) handle passed and only for
t thread. For example, if a request is ferent devices, and then
u t to Go() will cause the first
evice to e c the original request.
R
Inputs:
• Handle – Handle returned by OpenLabJack().
• NumRequests – This is the number of requests that will be made, and thus the
number of results that will be returned. All the arrays must be initialized with at
least this many elements.
• aIOTypes – An array which is the list of IOTypes.
aChannels –
• aValues – An array which is the list of Values to write.
• ax1s – An array which
O
•
• aRequestErrors – An array which is
AddRequest().
errorcode retu
– An array which
4
Adds an item to the list of requests t
When A
y a y of the Get functions until a Go function is calle
is, o you can call AddRequest() with a different hand
its I/O.
st( only clears the request and result lists on the devic
added to each of two dif
e
the curren
a new req
es is added to the first device but not the second, a call
xe ute the new request and the second device to execute
d
51