EasyManuals Logo

LabJack U3 User Manual

LabJack U3
120 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #49 background imageLoading...
Page #49 background image
ConnectionType – Enter the constant for the type of connection to use in the
only USB is supported for this function.
pAddresses – Must pass a pointer to a buffer with at least 128 elements.
pAddresses – Array contains IP addresses of any found devices. The function
.2.2 OpenLabJack()
for USB, and then Ethernet, a different handle will be returned
nnot
clude the header file. The strings should contain the constant name as indicated in the header
the S version of open is the same
r (const char *pDeviceType, const char *pConnectionType, …).
search. Currently,
pSerialNumbers – Must pass a pointer to a buffer with at least 128 elements.
pIDs – Must pass a pointer to a buffer with at least 128 elements.
Outputs:
pNumFound – Returns the number of devices found, and thus the number of
valid elements in the return arrays.
pSerialNumbers – Array contains serial numbers of any found devices.
pIDs – Array contains local IDs of any found devices.
DoubleToStringAddress() is useful to convert these to string notation.
4
Call OpenLabJack() before communicating with a device. This function can be called multiple
times, however, once a LabJack is open, it remains open until your application ends (or the DLL
is unloaded). If OpenLabJack is called repeatedly with the same parameters, thus requesting
the same type of connection to the same LabJack, the driver will simply return the same
LJ_HANDLE every time. Internally, nothing else happens. This includes when the device is
reset, or disconnected. Once the device is reconnected, the driver will maintain the same
handle. If an open call is made
for each connection type and both connections will be open.
OpenLabJackS() is a special version of open where DeviceType and ConnectionType are
strings rather than longs. This is useful for passing string constants in languages that ca
in
file (such as “LJ_dtU3” and ”LJ_ctUSB”). The declaration for
as below except fo
Declaration:
LJ_ERROR _stdcall OpenLabJack ( long DeviceType,
scription:
long ConnectionType,
const char *pAddress,
long FirstFound,
LJ_HANDLE *pHandle)
Parameter De
ror.
Inputs:
DeviceType – to open. Constants are in the labjackud.h
file.
ConnectionTy he constant for the type of connection, USB or
Ethernet.
pAddress – For USB, pass the local ID or serial number of the desired LabJack.
For Ethernet pass the IP address of the desired LabJack. If FirstFound is true,
s ignored.
and ConnectionType parameters are
ignored and the driver opens the first LabJack found with the specified
nnected.
pported with USB. If a USB device is not found, it will try
Ethernet but with the given Address.
Returns: LabJack errorcodes or 0 for no er
The type of LabJack
pe – Enter t
Address i
FirstFound – If true, then the Address
DeviceType. Generally only recommended when a single LabJack is co
Currently only su
49

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the LabJack U3 and is the answer not in the manual?

LabJack U3 Specifications

General IconGeneral
Analog Outputs2
Analog Output Resolution10 bits
Digital I/O20
Counter/Timers2
InterfaceUSB
Operating Voltage5 V
ManufacturerLabJack Corporation
Analog Inputs16
Analog Input Resolution12-bit
Max Sample Rate50 kHz