LabJack U12 User Manual Download Page 5

1.  Installation 

The LabJack U12 requires a PC running Windows 98SE, ME, 2000, or XP.  To determine your 
operating system version, go to 
 

Start => Settings => Control Panel => System => General

 

 
and make sure the version number is 4.10.2222 or higher (Win98SE=4.10.2222, 
WinME=4.90.3000, Win2000=5.0.2195, WinXP=5.1.XXXX). 
 
It doesn’t matter if the hardware or software is installed first. 

1.1  Hardware Installation 

With the PC on and using the included cable, connect the LabJack U12 to the USB port on the 
PC or USB hub.  The USB cable provides power and communication for the LabJack U12.  The 
status LED should immediately blink 4 times (at about 4 Hz), and then stay off while the 
LabJack enumerates.   
 
Enumeration is the process where the PC’s operating system gathers information from a USB 
device that describes it and it’s capabilities.  The low-level drivers for the LabJack U12 come 
with Windows and enumeration will proceed automatically.  The first time a device is 
enumerated on a particular PC, it can take a minute or two, and Windows might prompt you 
about installing drivers.  Accept all the defaults at the Windows prompts, and reboot the PC if 
asked to do so.  Enumeration occurs whenever the USB cable is connected, and only takes a 
few seconds after the first time. 
 
When enumeration is complete, the LED will blink twice and remain on.  This means Windows 
has enumerated the LabJack properly. 
 
If the LabJack fails to enumerate: 

• 

Make sure you are running Windows OS version 4.10.2222 or higher, 

• 

Try connecting the LabJack to another PC, 

• 

Try connecting a different USB device to the PC, 

• 

Contact LabJack at 

[email protected]

1.2  Software Installation 

Although, the low-level USB drivers for the LabJack are included with Windows, high-level 
drivers are needed to send and receive data.  The included LabJack CD installs the high-level 
drivers, example source code, and example applications. 
 
Close all open applications, especially LabJack related software, and insert the LabJack CD.  If 
autorun is enabled, the installation program should start automatically.  If the installation does 
not start, you will have to manually double-click on LabJackVXXX.exe. 
 
When the LabJack installation is finished, it will start the National Instruments LabVIEW Run-
Time Engine (LVRTE) setup.  The LVRTE is required for the example applications:  LJconfig, 
LJlogger, LJscope, and LJtest.  If prompted to reboot after this installation, go ahead and do so. 
 
 
 
 
 

Summary of Contents for U12

Page 1: ...LabJack U12 User s Guide Revision 1 00 9 21 2001 LabJack Corporation www labjack com support labjack com...

Page 2: ...LabJack Corporation will not be liable for any such damage LabJack U12 Warranty The LabJack U12 comes with a 1 year limited warranty from LabJack Corporation LC covering this product and parts against...

Page 3: ...18 4 Programming Reference 20 4 1 AISample 20 4 2 AIBurst 21 4 3 AIStreamStart 23 4 4 AIStreamRead 25 4 5 AIStreamClear 26 4 6 AOUpdate 26 4 7 BitsToVolts 27 4 8 VoltsToBits 27 4 9 Counter 27 4 10 Dig...

Page 4: ...tage divider circuit 9 Figure 2 5 IO used to detect the state of a switch 11 Figure 3 1 LJconfig 13 Figure 3 2 LJconfig Change Local ID 14 Figure 3 3 LJlogger 14 Figure 3 4 LJlogger Configuration 15 F...

Page 5: ...prompts and reboot the PC if asked to do so Enumeration occurs whenever the USB cable is connected and only takes a few seconds after the first time When enumeration is complete the LED will blink twi...

Page 6: ...To test the installation start LJconfig by selecting Start Programs LabJack LJconfig and make sure 1 LabJack is listed...

Page 7: ...nector provides connections for 16 digital I O lines called D0 D15 It also has connections for ground and 5 volts All connections besides D0 D15 are provided by the 30 screw terminals shown in Figure...

Page 8: ...difference of 20 volts or AI0 could be 10 volts and AI1 could be 10 volts giving a difference of 20 volts Figure 2 2 shows a typical single ended connection measuring the voltage of a battery This sam...

Page 9: ...n Va is connected to AI0 as shown in Figure 2 4 the input bias current of the LabJack affects the voltage divider circuit and if the resistance of R1 and R2 is too large this effect must be accounted...

Page 10: ...e actual number of samples collected and transferred by the LabJack during an AIBurst call is the smallest power of 2 from 64 to 4096 which is at least as big as numSamples The execution time of this...

Page 11: ...used to detect the state of a switch While providing overvoltage short circuit protection the 1 5 k series resistor on each IO pin also limits the output current capability For instance with an output...

Page 12: ...z per pin 2 5 CNT The input connection to the 32 bit counter is made at screw terminal CNT This input has a Schmitt Trigger buffer and the counter is incremented each time the voltage at CNT changes f...

Page 13: ...code for LJlogger and LJscope is installed in the examples directory 3 1 LJconfig Every LabJack has a local ID and serial number The local ID is a value between 0 and 255 that can be changed by the u...

Page 14: ...ger sends and receives data in command response mode It is capable of saving data to disk writing data to an HTML page on the Internet and performing various actions including email on trigger events...

Page 15: ...ectory where data and configuration files will be written Data File Name Determines the name of the data file to which data will be written New data is appended to the end of this file Data File Write...

Page 16: ...Figure 3 5 LJlogger Internet Configuration Figure 3 6 LJlogger HTML Configuration...

Page 17: ...output Trigger 4 If it has been 300 seconds since LJlogger started set D13 to an output Trigger 5 When the PC s clock is at 15 minute intervals the status LED will be turned off and an email will be...

Page 18: ...ope 3 4 LJtest LJtest runs a sequence of tests on the LabJack itself Users will generally leave Test Fixture Installed unselected and execute the tests with nothing connected to the LabJack except the...

Page 19: ...Figure 3 9 LJtest...

Page 20: ...tErrorString to get a description of the error idnum Functions with this input take either a local ID serial number or 1 A local ID or serial number will specify a specific LabJack while 1 means the f...

Page 21: ...with channelsPacked and gainsPacked The OCX has a function FourPack which will convert 4 elements to a packed value The packed value is determined as element 0 element 1 2 8 element 2 2 16 element 3 2...

Page 22: ...ast numChannels elements Gain commands are 0 1 1 2 7 20 This amplification is only available for differential channels scanRate Scans acquired per second A scan is a reading from every channel 1 2 or...

Page 23: ...nBits 4 22 to determine this parameter The voltages and stateIOout arrays are represented as strings Floating point data is returned as 13 characters per number XXXX XXXXXXXX and integers are returned...

Page 24: ...ns acquired per second A scan is a reading from every channel 1 2 or 4 The sample rate scanRate numChannels must be between 200 and 1200 disableCal If 0 voltages returned will be raw readings that are...

Page 25: ...s are returned Send filled with zeros stateIOout Pointer to a 4096 element array where IO states are returned Send filled with zeros Outputs voltages Pointer to a 4096 by 4 array where voltage reading...

Page 26: ...ng resetCounter unsigned long count float analogOut0 float analogOut1 Parameter Description Returns LabJack errorcodes or 0 for no error Inputs idnum Local ID serial number or 1 for first found demo S...

Page 27: ...t s 12 bit 0 4095 binary representation Bits 4096 Volts Gain Vmax 2 Vmax where Vmax 10 for SE 20 for Diff Declaration long __cdecl VoltsToBits long chnum long chgain float volts long bits Parameter De...

Page 28: ...trisIO long stateD long stateIO long updateDigital long outputD Parameter Description Returns LabJack errorcodes or 0 for no error Inputs idnum Local ID serial number or 1 for first found demo Send 0...

Page 29: ...cessor Execution time for this function is 20 milliseconds or less Declaration float __cdecl GetFirmwareVersion long idnum Parameter Description Returns Version number of the LabJack firmware or 0 for...

Page 30: ...alIDList Pointer to a 127 element array Send filled with zeros powerList Pointer to a 127 element array Send filled with zeros calMatrix Pointer to a 127 by 20 element array Send filled with zeros Out...

Page 31: ...Returns LabJack errorcodes or 0 for no error Inputs idnum Local ID serial number or 1 for first found Outputs idnum Returns the local ID or 1 if no LabJack is found 4 18 Reset Causes the LabJack to re...

Page 32: ...ill reset on timeout activeDn If 0 Dn will be set to stateDn upon timeout stateDn Timeout state of Dn 0 low 0 high Outputs idnum Returns the local ID or 1 if no LabJack is found 4 20 ReadMem Reads 4 b...

Page 33: ...no error Inputs idnum Local ID serial number or 1 for first found unlocked If 0 addresses 0 511 are unlocked for writing address Starting address for writing 0 8188 data3 Byte for address data2 Byte f...

Page 34: ...written Otherwise just a read is performed stateIOin Output states for IO0 IO3 4 23 FourPack ActiveX only This function is only in the OCX and is used to convert a 4 element array into an integer The...

Page 35: ...0 10 volts Maximum Input Range AIx to GND 40 40 volts Input Current 4 Vin 10 volts 70 1 A Vin 0 volts 11 7 A Vin 10 volts 93 5 A Resolution C R and Stream 12 bits Burst 5 11 bits Offset G 1 to 20 1 G...

Page 36: ...at no load 7 The IO lines each have a 1500 ohm series resistor 9 CNT is a Schmitt Trigger input 8 These lines have no series resistor It is up to the user to make sure the maximum voltages and current...

Reviews: