Agilent Technologies U2300A Series User manual

Agilent Technologies
Agilent U2300A Series
USB Multifunction DAQ
Devices VEE Application
Program
Quick Reference Guide

II U2300A Quick Reference Guide
Safety Symbols
The following symbols indicate the precautions taken to maintain safe operation
of the instrument.
Regulatory Markings
Direct current
Warning
The CE mark shows that the product complies with all the
relevant European Legal Directives (if accompanied by a
year, it
signifies when the design was proven).
The CSA mark is a registered trademark of the Canadian
Standards Association. A CSA mark with the indicators "C"
and "US" means that the product is certified for both the
U.S. and Canadian markets, to the applicable American and
Canadian standards.
The UL Mark is a registered trademark of Underwriters Lab-
oratories Inc. UL listing mark with the indicators "C" and
"US” indicates the product compliance with both Canadian
and U.S. requirements.
The C-tick mark is a registered trademark of the Spectrum
Management Agency of Australia. This signifies compli-
ance with the Australian EMC Framework regulations
under the terms of the Radio Communications Act of 1992.

U2300A Quick Reference Guide III
General Safety Information
WARNING
• Do not use the device if it is damaged. Before you use the device,
inspect the case. Look for cracks or missing plastic. Do not operate
the device around explosive gas, vapor, or dust.
• Do not apply more than the rated voltage (as marked on the device)
between terminals, or between terminal and external ground.
• Always use the device with the cables provided.
• Observe all markings on the device before connecting to the device.
• Turn off the device and application system power before connecting
to the I/O terminals.
• When servicing the device, use only specified replacement parts.
• Do not operate the device with the removable cover removed or
loosened.
• Do not connect any cables and terminal block prior to performing
self-test process.
• Use only the power adapter supplied by the manufacturer to avoid any
unexpected hazards.
CAUTION
• Do not load the output terminals above the specified current limits.
Applying excessive voltage or overloading the device will cause
irreversible damage to the circuitry.
• Applying excessive voltage or overloading the input terminal will
damage the device permanently.
• If the device is used in a manner not specified by the manufacturer, the
protection provided by the device may be impaired.
• Always use dry cloth to clean the device. Do not use ethyl alcohol or
any other volatile liquid to clean the device.
•Do not permit any blockage of the ventilation holes of the device.

IV U2300A Quick Reference Guide
Environmental Conditions
This instrument is designed for indoor use and in an area with low condensation.
The table below shows the general environmental requirements for this
instrument.
Environmental conditions Requirements
Operating temperature 0 °C to 55 °C
Operating humidity 15% to 85% at 40 °C RH (non-condensing)
Storage temperature –20 °C to 70 °C
CAUTION
The U2300A complies with the following safety and EMC requirements.
•IEC 61010-1:2001/EN 61010-1:2001 (2nd Edition)
•USA: UL61010-1: 2004
•Canada: CSA C22.2 No.61010-1:2004
•IEC/EN 61326-1 1998
•CISPR 11: 1990/EN55011:1991, Class A, Group 1
•CANADA: ICES-001: 1998
•Australia/New Zealand: AS/NZS 2064.1

U2300A Quick Reference Guide 1
Contents
Introduction 2
Analog Input (U2300_AI.vee) 3
Analog Output (U2300_AO.vee) 13
Digital Input/Output (U2300_DIO.vee) 26
Counter (U2300_CNT.vee) 35
Temperature Monitoring Application (U2300_TempMonitor.vee) 43
Simple Test Application (U2300 Auto Prog Tool.vee) 49
Appendix 59

2 U2300A Quick Reference Guide
Introduction
This document will describe the functionality of each of the
application. These applications consist of the following:
1U2300_AI.vee — Analog input application
2U2300_AO.vee — Analog output application
3U2300_DIO.vee — Digital input/output application
4U2300_CNT.vee — General purpose counter application
5U2300_TempMonitor.vee — A temperature monitoring
application that uses functions from "Simple
U2300_AI.vee" and "Simple U2300_AO.vee".
6U2300 Auto Prog Tool.vee — A simple test application that
uses functions from "Simple U2300_AI.vee" and "Simple
U2300_DIO.vee".
7User- Defined Functions/Libraries

U2300A Quick Reference Guide 3
Analog Input (U2300_AI.vee)
This is a standalone application that provides control over
the analog input of the U2300A Series DAQ devices. The
user can control up to a maximum of six units of DAQ
within the cardcage or via any USB port. Users can monitor
the input data on all the analog input channels. The program
will show the enabled channels and it can show up to six
graphs on the screen for the monitored data. Users can
switch to view different channels and also display either a
continuous waveform or a scatter diagram.

4 U2300A Quick Reference Guide
The main workspace is where all the main routine of the
program is located. Once the program started, it will import
the "kernel32.dll" file that will enable the program to read
and write to initialize the files. It will then automatically
detect any DAQ that is connected to the pc individually or
in a cardcage. If it detects a cardcage, it will display the
identification. It will also display all the DAQ that are either
in the cardcage or on another USB port.

U2300A Quick Reference Guide 5
The detailed view of "InstrAutoDetect" is as shown below. It
employs the "visa32.dll" to detect the DAQ that are
connected to the pc.
The program will then initialize all the program variables
and establish communication with the instrument. It will
obtain the serial and model number. It also checks for the
maximum sampling rate and also how many analog input
channels the attached unit has.

6 U2300A Quick Reference Guide
Once it has established the connection, the "Analog Input
Channel Settings" screen will appear. This will enable the
user to select the type of monitoring they want to perform,
whether it is continuous mode, single shot mode or polling
mode. The program will ask for the sampling rate they want
to read the data. The user can set the triggering method and
settings. Click the "Channel Editor" to configure which
channel to run, otherwise the program cannot proceed.

U2300A Quick Reference Guide 7
The channel editor will show the channels available
depending on the attached model. Users can select each
channel and set the mode, signal type, polarity, range and
also the polynomial factor to be used for that channel. The
settings can be saved to a Windows configuration settings
file or "ini" files.

8 U2300A Quick Reference Guide
The monitoring screen will display the channel status,
whether it is set to differential, RSE or NRSE. The user may
select to view the graph for the enabled channels. A
maximum of six graphs can be shown on the screen at any
one time. The user may switch to look at the data at other
channels by clicking the drop- down list next to each graph.
By default, the program will display a waveform unless the
user specify it to display an X- Y scatter diagram. Data can
be saved to a "csv" (comma separated value) file
.

U2300A Quick Reference Guide 9
Channel status will show in bright red for the selected
channels, dark red for the corresponding low- differential
input and gray for disabled channels.

10 U2300A Quick Reference Guide
A list of all the userfunctions in the "U2300_AI.vee"
application is as given;
No Userfunction Description
1 A_InitErrorRecord () Initializes the error handling variable record (loc_Error). Used for the functions
that only sets the DAQ.
2 A_InitOutputRecord () Initializes the error handling variable of 6 records (loc_Output). Used for the
functions that queries the DAQ.
3 A_InitSngOutputRecord() Initializes the error handling variable of 1 record (loc_Output). Used for the
functions that queries the DAQ.
4 Channel_Editor () Used as an internal function to allow users to select channels, set the
monitoring mode, reference ground, etc. Uses the .NET datagrid function.
Allows user to save and load the settings.
5 Channel_Popup (row) Called by Channel_Editor()
6 Channel_Setting () Internal function to let user sets the sampling rate, monitoring mode, trigger
settings, etc.
7 datagridView_MouseUp () Used by .NET datagrid
8 Disp_OneGraph () -->
Disp_SixGraphs ()
Internal function to display the analog input data in graphical form. Able to
display from one channel to six channels. User able to choose different
channels to observe.
9 Disp_OneSChart () -->
Disp_SixSCharts ()
Display the data in a strip chart format.
10 Disp_OneScatter () -->
Disp_FourScatters ()
Display the data in a scatter diagram.
11 EnumerateVisaAddresses () Function that uses "visa32.dll" to detect all instruments that are connected to
the pc.
12 Extract_ChanLoc (B) Internal function to extract the channel data from an array.
13 FileSaving () Function that handles data file creation.
14 Get_BitBipData (Data, Bit, Rng) Function that converts the bipolar data (byte) to decimal format for 12/16 bits.
15 Get_BitUniData (Data, Bit, Rng) Function that converts the unipolar data (byte) to decimal format for 12/16
bits.
16 HandleVisaReturnCode () Function that handles error codes generated by "visa32.dll" while searching
for instruments.
17 INI_Read (File, Section, Keyword) Function that reads from "INI" file. Makes use of kernel32.dll.

U2300A Quick Reference Guide 11
18 INI_Write (File, Section, Keyword,
IniString)
Function that writes to "INI" file. Makes use of kernel32.dll
19 InstrAutoDetect () Function that automatically detects any instrument that is connected to the pc
via GPIB, USB or LAN interface.
20 InstrInterfaceType (str) Function that distinguish between a GPIB or USB interface.
21 InstSearch_MsgBox () Function that displays a message "Please wait… Searching for instrument"
22 LED_Display (BK1, BK2, BK3, BK4) Internal function to display selected channels. Maximum channels = 64
Selected channel = Color "Warning Red"
Unselected channel = Color "Dark Red"
Disabled channel = Color "Dark Grey"
23 PopUpMesgBox (mesg) Multipurpose display message box.
24 Select_Display (BK1, BK2, BK3,
BK4)
Panel to allow user to display the channels they want to view while monitoring
takes place. Maximum channels = 64. Separated into 4 inputs of 16 channels
each.
25 String_IndexChar (string,char) Finds the all the indices of the char in the string. Returns array of indices. If
char doesn't exist in the string, this function returns -1. Limited to 100 indices.
26 U2300_AI_Init () This function must be called first to establish communication with the U2300
unit(s). It obtains the model and serial number and detects the numbers of
channels and the maximum sampling rate.
27 U2300_AI_InitVar () This is called by U2300_AI_Init() function. It initializes all the variables used in
this application.
28 U2300_AI_Manual () This function holds the main controls to the analog input application.
29 U2300_ConvertData (Select, Data,
ChanPos)
Converts the data to the scaling that is input via the "Xth_Poly()" function.
30 U2300_Delay (X) Common function for setting delay in seconds.
31 U2300_DigitizeUSB1~6 () Activate the U2300 "Digitize" function for each individual USB devices.
32 U2300_GetModel () Get the model of the attached U2300.
33 U2300_GetSerial () Get the serial number of the attached U2300.
34 U2300_GetWavCompUSB1~6 () Get the status of the availability of the waveform data for "digitize" mode.
35 U2300_GetWavDataUSB1~6 () Get the analog input data from the attached U2300 (Binary format).
36 U2300_Init () Perform a "Reset" and "Clear" the event registry and error queues of the
U2300. Dynamically sets the interface address for the USB devices.

12 U2300A Quick Reference Guide
37 U2300_RunUSB1~6 () Activate the U2300 "Run" function.
38 U2300_ScanChan (Select, Chan) Sets the channels for scanning on selected DAQ.
39 U2300_SetAnTrgCond (Select, Inp) Sets the analog trigger condition on selected DAQ.
40 U2300_SetAnTrgHTrh (Select, Inp) Sets the analog trigger high threshold value on selected DAQ.
41 U2300_SetAnTrgLTrh (Select, Inp) Sets the analog trigger low threshold value on selected DAQ.
42 U2300_SetAnTrgSour (Select, Inp) Sets the analog trigger source selection on selected DAQ.
43 U2300_SetChPolarity (Select, Pol,
Chan)
Sets the channel polarity to bipolar or unipolar on selected DAQ.
44 U2300_SetChRange (Select,
Range, Chan)
Sets the channel range on selected DAQ.
45 U2300_SetChType (Select, Stype,
Chan)
Sets the reference ground for the channel on selected DAQ.
46 U2300_SetDigPol (Select, Inp) Sets the polarity of the external digital trigger on selected DAQ.
47 U2300_SetSampRate (Select,
MaxSamp, Chs, Inp)
Sets the sampling rate for the unit on selected DAQ.
48 U2300_SetTrgDCount (Select, Inp) Sets the counter value for delay trigger mode on selected DAQ.
49 U2300_SetTrgSour (Select, Inp) Sets the A/D trigger control source on selected DAQ.
50 U2300_SetTrgType (Select, Inp) Sets the U2300 trigger mode on selected DAQ.
51 U2300_SetWavePoint (Select, Inp) Sets the number of points for the waveform on selected DAQ.
52 U2300_StopUSB1~6 () Activate the U2300 "Stop" function.
53 U2300_TranslateData (Select,
NoOfChans, ChanPos, data)
Converts the data from binary to decimal. Splits any interleave data from
multiple channels.
54 Xth_Poly () Internal function that allows user to change the scaling factor.

U2300A Quick Reference Guide 13
Analog Output (U2300_AO.vee)
This is a standalone application that provides control over
the analog output of the U2300A Series DAQ devices. The
user can control up to a maximum of six units of DAQ
within the cardcage or via any USB ports. Users can output
dc voltages, standard waveforms and user- defined waveforms
for analog output channel 201 and 202. The application will
automatically detect the DAQ when it is connected to the pc
via USB port.
The program will initialize all the program variables and
establish communication with the instrument. It will obtain
the serial and model number. It also checks if the attached
U2300A Series DAQ devices support analog output. The
following sequence is that it waits for the user to select DC
voltage generation, standard waveform generation or DC step
generation.

14 U2300A Quick Reference Guide
The main workspace is where all the main routine of the
program is located. Once the program starts, it will import
the "kernel32.dll" file that will enable the program to read
and write to initialize the files. It then proceeds to
automatically detect for any DAQ that is connected to the pc
individually or in a cardcage.
Once the DAQ selection is made, the program will initialize
all the DAQ and get its model and serial number.

U2300A Quick Reference Guide 15
If no error is detected in the process, it will prompt the
U2300_AO_Select dialog box for the user to select their
choice of operation.
“DC Voltage" selection allows the user to simultaneously
output voltage at channel 201 and 202 of any DAQ unit
connected to the pc.

16 U2300A Quick Reference Guide
The "Analog DC Manual" control is made up from multiple
user objects running in their own thread.
Other manuals for U2300A Series
2
Table of contents
Other Agilent Technologies Storage manuals
Popular Storage manuals by other brands

IBM
IBM TotalStorage IP Storage 200i 110 installation guide

Verbatim
Verbatim Store 'n' Go 95138 datasheet

Digital Electronics Corporation
Digital Electronics Corporation PS-3650A series installation guide

Panasonic
Panasonic JU-253-T Service manual

Western Co
Western Co Leonardo Off-Grid user manual

Kingston Technology
Kingston Technology DataTraveler 2000 installation guide