LabJack U12 User Manual Download Page 12

TTL input except for D13-D15, which are Schmitt trigger input.  Each D pin has a 10 M

 resistor 

connected to ground. 

 

DB25 Pinouts: 

1:   D0  

6:   D5  

11:  +5V 

16:  GND 

21:  D11 

2:   D1  

7:   D6  

12:  +5V 

17:  GND 

22:  D12 

3:   D2  

8:   D7  

13:  +5V 

18:  D8  

23:  D13 

4:   D3  

9:   NC  

14:  GND 

19:  D9  

24:  D14 

5:   D4  

10:  +5V 

15:  GND 

20:  D10 

25:  D15 

 
These digital I/O can detect the state of a switch using the same circuit shown in Figure 2-5. 
 

Because the D pins have no overvoltage/short-circuit protection, the user must be 
careful to avoid damage.  The following are examples of things that could damage a D 
pin and/or the entire LabJack: 

 

• 

Shorting a high output to ground (or any potential other than +5V). 

• 

Shorting a low output to a nonzero voltage (such as +5V). 

• 

Exceeding the voltage limits specified in Appendix A. 

 

Software 

The functions AOUpdate or DigitalIO are used to set the direction, set the state, and/or read the 
state, of each D pin.  In addition, DigitalIO also returns the current state of the direction and 
output registers.  Both of these functions take up to 20 ms to execute, providing a maximum 
update rate of at least 50 Hz 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 
from less than 1 volt to greater than 4 volts.  Frequencies up to at least 1 MHz can be counted. 
 

Software 

The functions AOUpdate or Counter are used to reset or read the counter.  If a reset is 
specified, the counter is read first.  Both of these functions take up to 20 ms to execute, 
providing a maximum update rate of at least 50 Hz. 

2.3  CAL – STB 

These terminals are used during testing and calibration.  The CAL terminal is a pre2.5 
volt source and can be used to provide a few milliamps. 

2.4  +5V 

The LabJack has a n5 volt internal power supply.  Power can be drawn from this power 
supply by connecting to the +5V screw-terminals, or the +5V pins on the DB25 connector.  The 
total amount of current that can be drawn from the +5V pins, analog outputs, and digital outputs, 
is 450 mA for most desktop computers and self-powered USB hubs.  Some notebook 
computers and bus-powered hubs will limit this available current to about 50 mA. 

2.5  GND 

The GND connections available at the screw-terminals and DB25 connector provide a common 
ground for all LabJack functions. 
 

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: